Quantcast
Channel: PTC Community: Message List - Windchill
Viewing all articles
Browse latest Browse all 8876

How to create a subscription to object events into a worklow ?

$
0
0

I would like to automatically create a subscription to object events inside a workflow, using java code.

looking into the windchill class documentation, I found that I should probably be using the following code :

wt.notify.NotificationHelper.manager.createObjectSubscription (wt.notify.NotificationSubscription, wt.notify.NotifySubscriptionRecipient, wt.notify.Notifiable, java.util.Hashmap<String, wt.fc.WTStringMap>, boolean)

but I found no explanation on how to get or build the parameters for this function.

 

I made some tries to create and initialise a wt.notify.NotificationSubscription object, a wt.notify.NotifySubscriptionRecipient object and a java.util.Hashmap<String, wt.fc.WTStringMap> object.

I used a cast on my primaryBusinessObject to get a wt.notify.Notifiable object.

But all without a lot of success.

Does somebody have a small working code example that would show how to use this createObjectSubscription function ?

     Thanks in advance.


Viewing all articles
Browse latest Browse all 8876

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>