cancel
Showing results for 
Search instead for 
Did you mean: 

How to create a custom event and listen to it?

ghildiya
Champ in-the-making
Champ in-the-making

I am working on an activiti based java application. As per my process definition, when task is created or assigned or completed, activiti engine invokes a custom task listener(extending TaskLIstener). This task listener performs some logging actions in elasticsearch. I have a usecase which needs a different handling. I have exposed a rest API which a user can invoke to change priority of a task. What I want is that when this API is invoked, my custom task listener,mentioned above, is also invoked. I am not sure how to achieve it. I guess I first need to create a custom event which is created when API is called(events offered by activiti won't help). And then, I somwhow need to link that custom event and my custom task listener. Any inputs are welcome.

0 REPLIES 0