cancel
Showing results for 
Search instead for 
Did you mean: 

org.activiti.engine.ActivitiException: execution 2301 doesn't exist

sonalikate
Champ in-the-making
Champ in-the-making
Hi,

If I get an exception during my Activiti process, it is catched and appropriate logging is done. But If I try to again run the same process I get org.activiti.engine.ActivitiException: execution 2301 doesn't exist.

Question: If we get an exception in between the Activiti process, does that mean the process will be killed even if we have try-catch?

Requirement: We want to log this exception and process should continue. Also if I trigger the same process which was waiting for some event the remaining process tasks should be executed smoothly. Can this be possible?

Thanks in advance.
1 REPLY 1

frederikherema1
Star Contributor
Star Contributor
What do you mean "get an exception during my acitviti process". If you try-catch around an API-call (eg. runtimeService.startProcessByXXX) and an exception is returned, the transaction is rolled back, where the process was created. So the next time you try doing an API-call with that execution-id, it doesn't exist.

Or are you doing a try-catch inside a JavaDelegate?