does createcontract know itself failed or not?if it does,add a transition to createcontract and pick that transition when it failed.
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?
createaccount handler pick transition up directly like below
Token token = executionContext.getToken();