[jboss-user] [JBoss jBPM] - Re: Problem with multiple end-states

efip10 do-not-reply at jboss.com
Thu Jul 12 05:42:33 EDT 2007


"fewagewasd" wrote : Is there any way to tell jbpm to wait in the state and execute the action when I call signal()?

If the action on your node (the main node action, not the event action) does not call token.signal(), then the execution will not propagate. The instance will "wait in the state" until you call signal() again. When you call signal() again, you have to notify which transition to take, e.g. signal("error").

If you'd rather have your code make the decision, introduce another node in the flow - after your wait-state node - and make the decision in its main action. This way, when you call signal(), you always take the only transition to a new node, and there its action will decide where to go.


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

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



More information about the jboss-user mailing list