I have a simple process that has a startEvent, userTask, callActivity, and endEvent.
The callActivity calls a simple process that has a startEvent, serviceTask, and endEvent. The serviceTask is a Java Service Task that references a bean that implements the JavaDelegate interface.
If I activate the process and complete the userTask, it kicks off the callActivity, and executes the Java Service Task (the code in the execute() method of the JavaDelegate) without error, but I ultimately get the PersistenceException below. I do not get this exception if the callActivity is not the last item in the process. Is this a known problem? Is there a workaround?
We are using Activiti 5.1.7. Please let me know if you need more information.
Thanks, Sarah
org.apache.ibatis.exceptions.PersistenceException: ### Error updating database. Cause: com.xythos.common.SqlExceptionWithParameters: delete from ACT_RU_EXECUTION where ID_ = ? and REV_ = ? [01 (String{2}):52] [02 (int):1]
### The error may involve org.activiti.engine.impl.persistence.entity.ExecutionEntity.deleteExecution-Inline ### The error occurred while setting parameters ### SQL: delete from ACT_RU_EXECUTION where ID_ = ? and REV_ = ? ### Cause: com.xythos.common.SqlExceptionWithParameters: delete from ACT_RU_EXECUTION where ID_ = ? and REV_ = ? [01 (String{2}):52] [02 (int):1]
Below are the bpmn snippets for the main process and the callActivity process.