[jboss-user] [JBoss jBPM] - Re-routing Tokens
do-not-reply at jboss.com
Thu Dec 20 05:20:18 EST 2007
I would like to be able to re-route a token. For example, it moves along a flow, and you realise that a task on a previous node was completed incorrectly or there was an unexpected error, and now you want to send it back to that node to continue the flow from there again. What is the best way to re-route the token?
There is the method 'token.setNode(Node)', would this do the job properly? Is it as simple as calling that method, or are there reprocutions I need to know about?
I found an idea searching the forums that you could perhaps create a temporary transition etc, but I don't like that idea for our system.
I would think that if I used token.setNode(Node), any task instances on that node would still remain, so I would probably have to delete those as well?
Anyone done anything similair to what I am looking for, or have any ideas on the best method to re-route a token properly?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114558#4114558
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114558
More information about the jboss-user