Hi,
I am trying to to initialize some process local variables when my userTask's start. The easiest was I have found t do this is to attach a TaskListener to each userTask in the process definition, and then in the notify method of the listener, I can create my local variables via:
delegate.createVariableLocal("EVENT_ID","1234576")
This seems to work ok however I have to define the same listener for each userTask Definition.
Is there a way to add a task listener to all userTask's for a given process at runtime?
I've seen the api for adding a ActivitiEventListener at runtime, however with these, I seem to lose the ability to set local variables unless I'm missing something.
Any help appreciated..