According to Camunda’s doc (https://docs.camunda.org/manual/latest/user-guide/process-applications/process-application-event-listeners/) a “global” event handler (ExecutionListener or TaskListener) can be added to the
Nonetheless, I have not been able to find a way to add a similar (“global”) event handler at runtime. This feature was present in Activiti using the method
addEventListener of the engine’s
RuntimeService (https://www.activiti.org/javadocs/org/activiti/engine/RuntimeService.html#addEventListener-org.activiti.engine.delegate.event.ActivitiEventListener-) but is no longer present in Camunda’s
How could I add a “global” event handler at runtime?
ProcessApplication to which the event handlers will be added can not be modified since I want to add the handlers from a different library.
Thank you all,