I am triggering an event sub processes from Task Listener (I want those sub processes to be executed only once. The reason why I used task listener is that I want to pass task Id to the sub process.) . However the task listeners/sub processes are getting executed twice. ie. Add work trace / Create task sub processes are executed at time of creation of the user task as well as upon approval of the user tasks.
- I have used task.processEngineServices.runtimeService.setVariable () to trigger the sub process. Because
task.execution.setVariable() is not triggering the event sub process.
Attached are the bpmn workflow file and post man curl to trigger that workflow. Please help me.
workflow.bpmn (21.2 KB)
postman-curl.txt (485 Bytes)