Listeners

cancel
Showing results for 
Search instead for 
Did you mean: 
dverdier
Member II

Listeners

Hello my friends! 

I don't know how to implement the listeners. I don't find the interface org.activiti.engine that it is always named in the forum.

Any help it is welcome.

Cheers, 

Diego

3 Replies
paul_roth
Established Member

Re: Listeners

Have you tried having a look at the section in the documentation called "Event Handlers" at the following URL - Activiti User Guide?  This section describes how to implement Listeners for all the different types of events provided by Activiti.

dverdier
Member II

Re: Listeners

Hello Paul, 

Thanks for the answer. We are using Activiti 6.0, we implemented everything in the kickstarter app. 

We dont know where to implement the java classes of the task handlers. Our solution is to do a new script task after the user task.

Thanks

hari
Established Member

Re: Listeners

Your class must implement TaskListener interface and you must override the notify method. Your custom logic goes into the notify method. 

This class must be in the class path for it to get loaded and executed.