<?xml version="1.0" encoding="UTF-8"?>
<definitions
        xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
        xmlns:activiti="http://activiti.org/bpmn"
        targetNamespace="Examples">
      <!-- 最简单流程，建议从此流程入手 -->  
      <process id="simple" name="简单流程" activiti:processHandler="defaultTaskService">
        <startEvent id="theStart" />
        <sequenceFlow id="flow1" sourceRef="theStart" targetRef="fillForm" />
        <userTask id="fillForm" name="手工填报" >
        <extensionElements>  
            <activiti:user  roleId="fill-role" ></activiti:user>
         	<activiti:toolbar >
         		<activiti:button type="general" name="submit" displayName="提交" targetRef="agree" strategy="role">
         		</activiti:button>
         	</activiti:toolbar>
         	<activiti:page url=""></activiti:page>
         </extensionElements>
        </userTask>
        <sequenceFlow id="flow2" sourceRef="fillForm" targetRef="agree" />
        <userTask id="agree" name="经理复核" >
         <extensionElements>
            <activiti:user  roleId="manager"></activiti:user>  
         	<activiti:toolbar>
         		<activiti:button type="general" name="agree" displayName="同意" targetRef="theEnd"></activiti:button>
         		<activiti:button type="jump" name="backLast" displayName="退回" targetRef="fillForm" strategy="task_history" enable="${true}">
         			<para key="taskId" value="fillForm"></para>
         		</activiti:button>
         	</activiti:toolbar>
         	<activiti:page url="" ></activiti:page>
         </extensionElements>
        </userTask>
        <sequenceFlow id="flow3" sourceRef="agree" targetRef="theEnd" />
        <endEvent id="theEnd" />
    </process>

</definitions>