基于JBPM的简单报销实例
2009-09-21 00:00:00 来源:WEB开发网流程定义文件:processdefinition.xml
Java代码
<?xml version="1.0" encoding="UTF-8"?>
<process-definition xmlns="urn:jbpm.org:jpdl-3.2" name="test">
<start-state name="start">
<transition to="fillForm"></transition>
</start-state>
<task-node name="fillForm">
<task name="填写报销单">
<assignment actor-id="employee"></assignment>
</task>
<transition to="managerDecide"></transition>
</task-node>
<task-node name="managerDecide">
<task name="经理审批">
<assignment actor-id="manager"></assignment>
</task>
<transition to="finaceAudit"></transition>
</task-node>
<task-node name="finaceAudit">
<task name="财务审批">
<assignment actor-id="finace"></assignment>
</task>
<transition to="end"></transition>
</task-node>
<end-state name="end"></end-state>
</process-definition>
编程步骤
1. 创建流程定义
2. 部署流程定义
3. 启动流程实例
4. 获取任务列表
5. 执行任务
更多精彩
赞助商链接