cancel
Showing results for 
Search instead for 
Did you mean: 

Callback after all 'on create' task listeners done before assignment event

dorz
Champ in-the-making
Champ in-the-making
We have an issue that we integrate activiti engine with our existing system. We're searching for a solution to call method from our system after all listeners on event "create task" done their job but before event "assignment".

We need this because we need completed list of candidates (which could be changed with listeners "on create event") and we set who is assignee in activiti, so after our actions the event "assignment" is fired.

How could we achieve this?
5 REPLIES 5

trademak
Star Contributor
Star Contributor
The "create" event is fired after all assignment values have been set, so isn't that what you are looking for?

Best regards,

dorz
Champ in-the-making
Champ in-the-making
But you can change candidates with listeners "on create", so I need list of candidates after all listeners complete execution.

jbarrez
Star Contributor
Star Contributor
Then no, it's not possible. If you own the listeners on create that change assignment, you surely can handle this in the next listener, no?

dorz
Champ in-the-making
Champ in-the-making
Ok, I thought already about this, but how can I register automatically(programmatically) listener on all task for all deployed processes as the last listener?

jbarrez
Star Contributor
Star Contributor
You can do that using a BpmnParseHandler, and add the listener at the end of the other listeners.