Hi,
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?
Thank you.
Vahid
Solved! Go to Solution.
Vahid, the replacement for signal is listed here: Activiti Migraton Guide : Activiti v5 to Activiti v6 . Hope that helps.
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?
Best,
Vahid
Vahid, the replacement for signal is listed here: Activiti Migraton Guide : Activiti v5 to Activiti v6 . Hope that helps.
Ask for and offer help to other Alfresco Process Services and Activiti Users and members of the Alfresco team.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.