08-10-2017 05:58 AM
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
08-14-2017 06:54 AM
Vahid, the replacement for signal is listed here: Activiti Migraton Guide : Activiti v5 to Activiti v6 . Hope that helps.
08-10-2017 11:38 AM
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
08-14-2017 06:54 AM
Vahid, the replacement for signal is listed here: Activiti Migraton Guide : Activiti v5 to Activiti v6 . Hope that helps.
Explore our Alfresco products with the links below. Use labels to filter content by product module.