[jboss-user] [JBoss jBPM] - Getting the previously executed node...

kamleshkr do-not-reply at jboss.com
Wed Apr 2 08:12:58 EDT 2008


Hi All,

Consider the following situation:

In my workflow, there is a decision node first, the decision node checks the condition and redirects the workflow to nodeYes or nodeNo accordingly. Both nodeYes and nodeNo has a transition to node3.

Hence depending upon the condition, the nodeYes or NodeNo is executed, and after that node3 is executed.
Now if my workflow fails in node3, i have to go to previous node and continue it, something like

token.setNode(previousNode);
token.signal();


But the problem is that how can i know whether the previous node is nodeYes or it is nodeNo?

I can use node3.getArrivingTransitions(), which will perhaps return me both     
nodeYes and nodeNo. So how can i find which node has actually been executed before node3 failed?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4140918#4140918

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4140918



More information about the jboss-user mailing list