流程定义XML流:
1.定制action:
<process-definition>
<start-state>
<transition to="s"/>
</start-state>
<state name="s">
<transition to="end">
<action class="com....MyActionHandler"/>
</transition>
</state>
<end-state name="end"/>
</process-definition>
2.有对应事件的
<process-definition>
<start-state>
<transition to="s"/>
</start-state>
<state name="s">
<event type="node-enter">
<action calss="com....MyActionHandler"/>
</event>
<event type="node-leave">
<action calss="com....MyActionHandler"/>
</event>
<transition to="end"/>
</state>
<end-state name="end"/>
</process-definition>
3.任务分派XML流程定义
<process-definition name="the baby process">
<start-state>
<transition name="baby cries" to="t"/>
</start-state>
<task-node name="t">
<task name="change nappy">
<assignment class="com....NappyAssignmentHandler"/>
</task>
<transition to="end" />
</task-node>
<end-state name="end"/>
</process-definition>