本文主要是介绍jBpm流程定义XML格式,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
流程定义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>
这篇关于jBpm流程定义XML格式的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!