Hi,
I have been trying to end a process that has a fork and children nodes.
the problem is that, while one child of the fork moves to the end state, the
other one is still where it is. I get the message "the process has finished",
but there is still a task on the tasklist of a user. (the other child of the
fork)
Is that normal? I tried to add an action before the end-state to try to end the
process manually, but it's not working (the same task is still on the task list
of the user). Here is everthing I've tried out:
| ProcessInstance pi = executionContext.getProcessInstance();
| pi.end();
I also tried to end all taskinstance manually, but didn't work
List taskInstances =
(List)executionContext.getTaskMgmtInstance().getTaskInstances();//returns null!
| //List taskInstances = (List) pi.getTaskMgmtInstance().getTaskInstances();
//returns null!!
| TaskInstance ti ;
| Iterator iter = taskInstances.iterator();
| while (iter.hasNext()) {
| ti = (TaskInstance) iter.next();
| ti.end();
| }
I tried to end all tokens, but it didn't work out either:
List tokens = pi.findAllTokens();
| Iterator iter = tokens.iterator();
| while (iter.hasNext()) {
| token = (Token) iter.next();
| token.end();
| }
Any clues?
(the action was called on the node that comes right before the end-state, in a
task-create event, i also tried to put it in a task-end event)
Thanks in advance,
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3926826#3926826
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3926826
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user