anonymous wrote : 
  | this seems to differ with what I read in the User guide:
  | "User Guide 3.1: 9.5. Actions" wrote : 
  |   | Actions on events have no way to influence the flow of control of the 
process. It is similar to the observer pattern. On the other hand, an action 
that is put on a node has the responsibility of propagating the execution.
  |   | 

Not quite, there is a difference between actions on events and actions on the 
default node type. If you do the latter, you create a new custom node type. In 
that case the actions are indeed responsible for propagating the execution. 
Actions on events (like task-end) should not influence the flow of te process. 
That is what these lines in the documentation mean.
anonymous wrote : 
  | So, my plan is now to do the code below in my action class  
"TheWalkWorkflow$CrossRoadOnEnd"
  | 
  |   | if (....)
  |   |   executionContext.leaveNode("go north")
  |   | else
  |   |   executionContext.leaveNode("go south")
  |   | 
  | to determine which transition to leave on.

You could do this, if it is an action on a node, not an action on an event. But 
then, you could not use the task node for this and get all the advantages of 
the tasknode
anonymous wrote : 
  | 
  | 3) Does this make sense, or I am still on the wrong track? Please suggest 
how it could be done in another way if this is not correct/ a good way to do it.
  | 

Yes it does, but you mixed to concepts. What you could do is just have a task 
node with one transition (like finish) and a decision node below that which has 
an action to decide which transition to take (decision nodes are the exception 
to the rule that actions on events should not influence the flow)

hth.

Ronald

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

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


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

Reply via email to