[jboss-jira] [JBoss JIRA] Created: (JBPM-777) Process instance deletion issue

Syed Arshad (JIRA) jira-events at jboss.com
Wed Nov 15 13:20:41 EST 2006


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