cancel
Showing results for 
Search instead for 
Did you mean: 

How to configure a global execution listener for a process

schikkal
Champ in-the-making
Champ in-the-making
The org.activiti.engine.delegate.ExecutionListener tracks the process/activity execution events only when this listener is added to each activity listeners. 

I would like to add one single configuration (preferably from outside process definition, at runtime service level) so that it can get all the  process execution events which I can use to trace the process execution.  Is it possible to configure a single  global execution listener per process instance in either process definition or through process engine APIs?

Regards,
-Srinivasan
4 REPLIES 4

jbarrez
Star Contributor
Star Contributor
That would require some 'low-level' Activiti hacking: the BPMNParse should be changed, such that it can add a listener to every process definition.

This is already done for the history, so you can check the code there how it is done.

wir33658
Champ in-the-making
Champ in-the-making
I don't get the answer. Can you point it out more clear ? Thanks.

jbarrez
Star Contributor
Star Contributor
A BpmnParseListener allows you to hook something in during the parsing of the process xml file.

History is implemented that way: a global listeners listens is hooked in on several types of process steps, and produces history information accordingly.

psychesphere
Champ in-the-making
Champ in-the-making
thank you..