]
Tom Baeyens closed JBPM-777.
----------------------------
Resolution: Rejected
This is already fixed in 3.1.1+
Process instance deletion issue
-------------------------------
Key: JBPM-777
URL:
http://jira.jboss.com/jira/browse/JBPM-777
Project: JBoss jBPM
Issue Type: Bug
Components: Core Engine
Affects Versions: jBPM 3.1
Environment: Windows XP, Tomcat 5.5, Java 1.5_09
Reporter: Syed Arshad
Assigned To: Tom Baeyens
Issue:
When we try to delete a process instance with associated Timers, a database exception
thrown indicating referential integrity issue. When I looked into the GraphSession code, I
found that it is not deleting the associated timers, which was the issue.
The issue found in the method :
org.jbpm.db.GraphSession.deleteProcessInstance(ProcessInstance processInstance);
Fix:
Modified the GraphSession class's deleteProcessInstance(ProcessInstance
processInstance) to delete the associated timers as well in the method implementation:
Patch code:
org.jbpm.db.GraphSession.deleteProcessInstance(ProcessInstance processInstance){
...................
..................
SchedulerService schedulerService = (SchedulerService)
Services.getCurrentService(Services.SERVICENAME_SCHEDULER, false);
if (schedulerService!=null)
schedulerService.cancelTimersByProcessInstance(processInstance);
....................
...................
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: