[jboss-user] [JBoss jBPM] - Re: Problem with multiple end-states
Depending on what the action is or should do, you could use an action on an event of type 'node-leave' View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4064029#4064029 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4064029 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Problem with multiple end-states
I use multiple end-states, and it works. As outlined in Node responsibilities in userguide, only the node action can decide on which transition to take. In event action, you cannot take this decision. node name=check-suspend-or-abort | action class=com.qq.DecideIfSuspendedOrAbortedAction / | transition to=continue / | transition to=error name=error/ | transition to=suspended name=suspended/ | transition to=aborted name=aborted/ | /node | | end-state name=aborted | /end-state | | end-state name=suspended | /end-state | | end-state name=error | /end-state | Here's the action: public void execute(ExecutionContext ctx) throws Exception { | Map params = ctx.getContextInstance().getVariables(); | | // check if aborted - invoke my function | if (isAbortedFlagForWorkflow()) { | // do something | ctx.getToken().signal(aborted); | } else | // check if suspended | if (isSuspendedFlagForWorkflow()) { | // do something | ctx.getToken().signal(suspended); | } else { | // everything is OK, we may start the workflow | // leave over default transition | ctx.getToken().signal(); | } | } | Hope it helps. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4063364#4063364 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4063364 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Problem with multiple end-states
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=bbop=viewtopicp=4063379#4063379 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4063379 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Problem with multiple end-states
Multiple end-states should work fine. Is there any proof of the contrary? Regards, Koen View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4062817#4062817 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4062817 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Problem with multiple end-states
Is there any way to tell jbpm to wait in the state and execute the action when I call signal()? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4062826#4062826 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4062826 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Problem with multiple end-states
estaub wrote : kukeltje wrote : multiple end states are not supported afaik | | Ronald, | Are you sure? Why? | I thought I remembered someone doing this before and not getting it to work, but since Koen says it should work, it might (my AFAIK was added because I was not completely sure) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4062844#4062844 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4062844 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Problem with multiple end-states
multiple end states are not supported afaik View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4062478#4062478 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4062478 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Problem with multiple end-states
hm if that's the case, i think it shouldn't be allowed by the xml schema to create more than one end state... View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4062506#4062506 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4062506 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Problem with multiple end-states
kukeltje wrote : multiple end states are not supported afaik Ronald, Are you sure? Why? fewagewasd, event type=before-signal | action name=check foo bar class=TestActionHandler/action | /event | You shouldn't call signal or leave-node from an event-handler - do it from an execute action-handler instead. I'm not sure this is the cause of your problem, but it well might be. -Ed Staub View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4062529#4062529 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4062529 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Problem with multiple end-states
I've tried the following: |node name=node1 | action class=TestActionHandler.class/ | transition name=foo to=EndFoo/transition | transition name=bar to=EndBar/transition |/node | but i get a DelegationException... View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4062545#4062545 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4062545 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Problem with multiple end-states
yes because in Java you never use the .class extension anywhere View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4062697#4062697 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4062697 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user