AnsweredAssumed Answered

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

Question asked by wilco on Apr 4, 2014
Latest reply on Apr 7, 2014 by trademak
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( [activiti-cdi-5.14.jar:]
   at org.activiti.cdi.BusinessProcess.setExecution( [activiti-cdi-5.14.jar:]
   at org.activiti.cdi.BusinessProcess.startProcessById( [activiti-cdi-5.14.jar:]

This error has already been fixed for the Camunda branch (see Can this fix also be applied in the activiti main branch?