-
1. Re: Able to suspend a token that has ended
kukeltje Jun 9, 2006 4:12 AM (in response to michaelklem)if is not 'correct' but imo it is not so much a bug. Who will suspend these tokens anyway. Besides that, they will not influnce the flows in any way. You could file a jira issue, but give it a low priority
-
2. Re: Able to suspend a token that has ended
kukeltje Jun 13, 2006 3:25 AM (in response to michaelklem)Thanks michael for filing a jira issue. I just came acros it.
http://jira.jboss.com/jira/browse/JBPM-675 -
3. Re: Able to suspend a token that has ended
cpob Jul 19, 2006 4:31 PM (in response to michaelklem)I hate resurrecting old threads, but this is relevant to what I just found.
If you have a process with 5 task nodes (one after another). You get half way through, and you suspend the process instance... it will suspend ALL TASKS.
That's ok, I guess, until you resume the process instance. Then it resumes every task instance... which includes setting isOpen = true.
So... it's re-opening every single task that has already been closed. It should be checking the END timestamp on the task instance, and if there is a date, don't re-open it. -
4. Re: Able to suspend a token that has ended
kukeltje Jul 19, 2006 4:40 PM (in response to michaelklem)If things appear again, reopening old threads is (imo) no problem) Where in the source did you find this? Then I'll have a look. Please include version of jBPM as well.
-
5. Re: Able to suspend a token that has ended
kukeltje Jul 19, 2006 4:44 PM (in response to michaelklem)if there is/was a jira issue for it, please re-open it or add the info to it. If not, please create one. A patch added would be even better and to make it complete, a testcase is best ;-)
-
6. Re: Able to suspend a token that has ended
newbie007 Jul 19, 2006 5:40 PM (in response to michaelklem)This is hapenning in jbpm 3.1.1 and the same code is in 3.1.2 also
Here is the flow:
ProcessInstance.resume() -> rootToken.resume() -> Token.resume() -> resumeTaskInstances() -> TaskMgmtInstance.resume() -> TaskInstance.resume()
and this is the final method which sets these two flags:
isSuspended = false;
isOpen = true;
Which actually opens the task. Since resume of Token class is called recursively, it applies to all the tasks.
Thanks. -
7. Re: Able to suspend a token that has ended
kukeltje Jul 19, 2006 5:57 PM (in response to michaelklem)AAAAAAAAHHHHHHHHHHHHH d*mn heat overhere. I should have JUST READ THE THREAD..... AGAIN.... sorry guys
-
8. Re: Able to suspend a token that has ended
cpob Jul 20, 2006 9:11 AM (in response to michaelklem):) Yeah, I commented on the existing Jira already.
Sounds like Ronald needs a break ;)