More general question: Where to find the documentation about the sequence of listeners?
As you can see from the logic of the javascript code inside both listeners the "create" event has to be handeled prior to the "assignment" event. So I was wondering how that is managed by camunda.
Thanks to your help I learned about the task lifecycle which defines the transitions / events for task listeners.
It does not follow the task lifecycle where the "create" event is the very first event of all. So it tt looks like a contradiction between the documentation [1] and the task lifecycle. What do you think?
[1] https://docs.camunda.org/manual/7.4/user-guide/process-engine/delegation-code/#task-listener