What is wrong with the following.
<fork name="fork1"> <event type="node-enter"> <action name="action1" class="myForkHandler"></action> </event> <transition name="2-f1n1" to="fork1-node1"> </transition> <transition name="2-fork2" to="fork2"> </transition> </fork>
Exception in thread "main" org.jbpm.jpdl.JpdlException: [[ERROR] process definition line 14: cvc-complex-type.2.4.a: Invalid content was found starting with element 'transition'. One of '{"http://jbpm.org/3/jpdl":event, "http://jbpm.org/3/jpdl":timer, "http://jbpm.org/3/jpdl":exception-handler}' is expected.] at org.jbpm.jpdl.xml.JpdlXmlReader.readProcessDefinition(JpdlXmlReader.java:119) at jpl.mipl.pgs.jbpm.JBPMExeEngine.setup(Unknown Source) at jpl.mipl.pgs.jbpm.JBPMExeEngine.main(Unknown Source)
Putting event after all transition works! This is VERY VERY NICE FEATURE