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(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?

Outcomes