CDI BusinessProcess.startProcessByKey throws exception if process instance is ended immediately
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2014 03:20 PM
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?
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?
Labels:
- Labels:
-
Archive
1 REPLY 1

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2014 03:34 AM
Hi Wilco,
This was already fixed for 5.15, see:
https://github.com/Activiti/Activiti/commit/da1ee0273d2208d85f4859c28d6754fcc6fb138f
Best regards,
This was already fixed for 5.15, see:
https://github.com/Activiti/Activiti/commit/da1ee0273d2208d85f4859c28d6754fcc6fb138f
Best regards,
