Add execution listeners via BpmnParseListener

I noticed that ScopeImpl::addExecutionListener has been deprecated some time ago but is still used in the CDI extension as well as in example applications.

Is there an alternative way to add generic execution listeners that should possible be called for all process definitions or is it save to use these methods in the long run?

Hi @bentrm,

The ScopeImpl#addExecutionListener exists due to historical reasons. This method was replace by the CoreModelElement#addListener method. In this context, there are other methods that were replaced analogously.

I updated the BPMN ParseListener example here. There you can also see, which methods you should use.

Hope that helps!


1 Like

Thank you very much, that is very helpful. No idea how I overlooked the new methods, there actually hard to miss… :unamused: