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.