This is my code:
| ProcessDefinition processDefinition =
ProcessDefinition.parseXmlInputStream(new FileInputStream(
|
"jbpm/helloworld/processdefinition.xml"));
|
| ProcessInstance processInstance = new
ProcessInstance(processDefinition);
|
| Token token = processInstance.getRootToken();
|
| token.signal();
| System.out.println(token.getNode());
|
| token.signal();
| System.out.println(token.getNode());
|
This is the processdefinition.xml:
<process-definition xmlns="" name="helloworld">
<start-state name="start">
</start-state>
<end-state name="end"></end-state>
</process-definition>
My question is that why I need invoke signal two times. I assume that I only
need to signal the first state and it will transition to the second state and
then to the end state. The transition has been specified in the configuration
file.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4150360#4150360
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4150360
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user