4142434445464748495051
.initial() .behavior(new Automatic()) .transition("end") .endActivity() .createActivity("end") .behavior(new End()) .endActivity() .buildProcessDefinition(); PvmProcessInstance processInstance = processDefinition.createProcessInstance(); processInstance.start();
6970717273747576777879
.createActivity("two") .behavior(new Automatic()) .transition("three") .endActivity() .createActivity("three") .behavior(new End()) .endActivity() .buildProcessDefinition(); PvmProcessInstance processInstance = processDefinition.createProcessInstance(); processInstance.start();
979899100101102103104105106107
.createActivity("two") .behavior(new WaitState()) .transition("three") .endActivity() .createActivity("three") .behavior(new End()) .endActivity() .buildProcessDefinition(); PvmProcessInstance processInstance = processDefinition.createProcessInstance(); processInstance.start();
142143144145146147148149150151152
.createActivity("four") .behavior(new Automatic()) .transition("five") .endActivity() .createActivity("five") .behavior(new End()) .endActivity() .buildProcessDefinition(); PvmProcessInstance processInstance = processDefinition.createProcessInstance(); processInstance.start();
197198199200201202203204205206207
.createActivity("three") .behavior(new Automatic()) .transition("loop") .endActivity() .createActivity("end") .behavior(new End()) .endActivity() .buildProcessDefinition(); PvmProcessInstance processInstance = processDefinition.createProcessInstance(); processInstance.start();