AnsweredAssumed Answered

TaskListener assignment event

Question asked by fspampinato on May 26, 2016
Latest reply on Jun 3, 2016 by jbarrez

I have a question about the order in which TaskListener assignment event it's fired.

The documentation says:

<blockquote><b>assignment</b>: occurs when the task is assigned to somebody. Note: when process execution arrives in a userTask, first an assignment event will be fired, before the create event is fired. This might seem an unnatural order, but the reason is pragmatic: when receiving the create event, we usually want to inspect all properties of the task including the assignee.</blockquote>

I've written a small test case and it seems that the order in which the events are fired is:

- <b>create</b>
- <b>assignment</b>
- <b>complete</b>

I've attached my test case.

What is the correct order of user task events?

Thanks, Francesco.