[jboss-jira] [JBoss JIRA] Commented: (JBPM-675) Able to kill and suspend a process or token that has ended

Chris OBrien (JIRA) jira-events at jboss.com
Wed Jul 19 16:35:11 EDT 2006


    [ http://jira.jboss.com/jira/browse/JBPM-675?page=comments#action_12339802 ] 
            
Chris OBrien commented on JBPM-675:
-----------------------------------

Suspending a process instance will suspend all task instances (open OR closed) - using the API in an illegal state as above.

The problem is when you resume that process instance, it resumes all closed task instances, which sets isOpen = true.  Those tasks which were ended/closed are now reopened.  It should be checking (in TaskInstance.java:resume() )  the END timestamp on the task instance, and if there is a date, don't re-open it.

> Able to kill and suspend a process or token that has ended
> ----------------------------------------------------------
>
>                 Key: JBPM-675
>                 URL: http://jira.jboss.com/jira/browse/JBPM-675
>             Project: JBoss jBPM
>          Issue Type: Patch
>          Components: Core Engine
>    Affects Versions: jBPM 3.1.1
>         Environment: Mac OS X 10.4.6 Java 1.4.2_09
>            Reporter: michaelklem
>         Assigned To: Tom Baeyens
>            Priority: Trivial
>
> When a process instance or token has ended, I can still call the suspend, resume and kill APIs on that process instance or token without an exception being thrown. IMO an exception should be thrown to indicate that these APIs are used in an illegal state.

-- 
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