Could you join the event handler and the list of events you register on?
I don't get your comment "Human task is ready also after execution, so my event is triggered twice."
Normally, a task is READY when connectors "IN" are finished, then the task is visible for a user. What do you mean by "also after execution"? Did you get a READY event when the last connector "OUT" is executed? Or when the user clicks on the SUBMIT button?
By the way, if for an event, you get an event TWICE (except the Assign/ Unassign event), then you can open a ticket on the support
Note: for the second event, do you have a way to determine this is the second event? Something changes in the task of do you just received the call twice, immediately?
In most cases, a job is considered to be "READY" if all of the connectors "IN" have been completed; at this point, the work becomes visible to the user. To clarify, what do you mean when you say "also after execution"? Have you received a READY event after the execution of the last connector's "OUT" command? Or when the user submits the form by clicking the button labeled "SUBMIT"?
If, during the course of an event, you receive the same event TWICE (with the exception of the Assign/Unassign event), then you can submit a request for assistance using the support portal.
That what I thing. Check the event.getType() (unfortunately, this is a String and not an enum) : they must be different, and you should have different values.
Bonitasoft empowers development teams with Bonita, the open-source and extensible platform to solve the most demanding process automation use cases. The Bonita platform accelerates delivery of complex applications with clear separation between capabilities for visual programming and for coding. Bonita integrates with existing solutions, orchestrates heterogeneous systems, and provides deep visibility into processes across the organization.