Wiring up global listeners and boundary events

Hi, I have the following use case. We have a number of process definitions through which we create a number of human tasks. We need to implement some logic around task lifecycle state such as create / complete and delete. We have implemented the listeners and are wiring up the listeners to the task individually. Is there an easy way to assign listeners to all tasks?

Also, for deleting a task, we are using conditional boundary event which is again attached to a specific task. How can we globally wire up the conditional boundary event to all tasks in our processes?

Thanks

Hi @maheshsubramanian,

you can add your listener implementation in a process engine plugin: camunda-bpm-examples/process-engine-plugin/bpmn-parse-listener-on-user-task at master · camunda/camunda-bpm-examples · GitHub.

Hope this helps, Ingo