I wanted to implement the ActivitiEventListener, to fire some actions after completing (either fail or success) the process.
Then I've noticed that it is in version 6. I've changed the version from 5 to 6 and found that lots of things won't work.
For example, there is no more "signal" method in the interface "RuntimeService", so in our project in many places I see compile error with such line of code "activitiRule.getRuntimeService().signal(execution.getId());".
So it seems that at the moment upgrading is not an option to me. Now my question is that in code how can I get notifications with the 5.x version, if the process is in a final state?
Actually I've switched back to the 5.14 and found how to achieve that. I've just added a "JavaDelegate" class as a listener to the process with the "end" event. So if the process reach end state (either successfully or with failure), the listener class will be called.
Still one open question? what is the replacement of "activitiRule.getRuntimeService().signal(execution.getId())" in version 6.x?