[jboss-jira] [JBoss JIRA] Closed: (JBPM-777) Process instance deletion issue
Tom Baeyens (JIRA)
jira-events at jboss.com
Thu Nov 16 07:41:41 EST 2006
[ http://jira.jboss.com/jira/browse/JBPM-777?page=all ]
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: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list