cancel
Showing results for 
Search instead for 
Did you mean: 

Breaking changes with upgrade from 5.x to 6

vahid
Champ in-the-making
Champ in-the-making

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

1 ACCEPTED ANSWER

Vahid, the replacement for signal is listed here: Activiti Migraton Guide : Activiti v5 to Activiti v6 . Hope that helps.

View answer in original post

2 REPLIES 2

vahid
Champ in-the-making
Champ in-the-making

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.