AnsweredAssumed Answered

Programmatically add an execution listener

Question asked by jorell on Oct 22, 2013
Latest reply on Mar 24, 2015 by jbarrez
I need to send out a generic notification every time a process ends. I dont want to require all my users to add an execution listener to the end event and call my java code. Seems very redundant. I would much rather do that on my side.
Ideally if I can have a generic listener for the engine to call a certain delegate when the end event occurs for any process instance that would be the best solution. I tried but couldnt find any such generic hooks.
Alternatively another solution can be if I add an execution listener programmatically each time a process definition is deployed. My only restriction here is that I can't change the stored process definition text since the client should be able to retrieve the original text and compare and make changes. This second solution should be possible but I can't seem to find a way to do this. Any suggestion would be appreciated.