cancel
Showing results for 
Search instead for 
Did you mean: 

Event Handlers Vs ExecutionListener

davanna
Champ in-the-making
Champ in-the-making
I was going through the documentation and wanted to know the difference between the EventListeners and ExecutionListeners
http://activiti.org/userguide/index.html#eventDispatcherListener and http://activiti.org/userguide/index.html#executionListeners.

Both serve the same purpose but have different interfaces. The eventHandler has onEvent() and  isFailOnException() whereas executionListener has notify(). Any reasons of having two different artifacts here. The same applies for taskListener which has notify() method.

Thanks
2 REPLIES 2

trademak
Star Contributor
Star Contributor
Hi,

Execution listeners are meant to listen to a limited set of process execution actions like start, end and take. So you can add some specific logic before a service task or user task is started or ended. Event listeners allow you to listen to a large set of events that are thrown from the Activiti Engine. These events are lower level events like entity created and job executed etc.

Best regards,

davanna
Champ in-the-making
Champ in-the-making
Thanks for the reply. Appreciate it.
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.