cancel
Showing results for 
Search instead for 
Did you mean: 

CDI BusinessProcess.startProcessByKey throws exception if process instance is ended immediately

wilco
Champ in-the-making
Champ in-the-making
Hi, there is an issue when using the service BusinessProcess.startProcessById() and the process instance immediately finishes without any wait state, there is always the following exception:

Caused by: org.activiti.cdi.ActivitiCdiException: Cannot associate execution by id: no execution with id '2301' found.
   at org.activiti.cdi.BusinessProcess.associateExecutionById(BusinessProcess.java:247) [activiti-cdi-5.14.jar:]
   at org.activiti.cdi.BusinessProcess.setExecution(BusinessProcess.java:432) [activiti-cdi-5.14.jar:]
   at org.activiti.cdi.BusinessProcess.startProcessById(BusinessProcess.java:102) [activiti-cdi-5.14.jar:]

This error has already been fixed for the Camunda branch (see https://app.camunda.com/jira/browse/CAM-792). Can this fix also be applied in the activiti main branch?
1 REPLY 1

trademak
Star Contributor
Star Contributor
Hi Wilco,

This was already fixed for 5.15, see:

https://github.com/Activiti/Activiti/commit/da1ee0273d2208d85f4859c28d6754fcc6fb138f

Best regards,