This content has been marked as final.
Show 3 replies
-
1. Re: How to repeat node execution N times after fail?
shawnacao Feb 1, 2007 4:05 AM (in response to enpx)does createcontract know itself failed or not?if it does,add a transition to createcontract and pick that transition when it failed.
-
2. Re: How to repeat node execution N times after fail?
enpx Feb 1, 2007 4:52 AM (in response to enpx)How need I change jPDL code? Is this right:
<node name="create account"> <action class="org.jbpm.tutorial.mytest.CreateContract"/> <transition name="next" to="next"/> <transition name="same" to="create account"/> </node>
Suppose, CreateContract handler can setup context variable to distinct success or fail. How can I pick it up and select transition from jPDL code?
Is it possible to avoid doing this in every node by hand and setup this behaviour for every node in more general way? -
3. Re: How to repeat node execution N times after fail?
shawnacao Feb 1, 2007 5:25 AM (in response to enpx)createaccount handler pick transition up directly like below
Token token = executionContext.getToken();
token.signal("transition name");