<?xml version="1.0" encoding="UTF-8"?> 
 | 
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:activiti="http://activiti.org/bpmn" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC" xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI" typeLanguage="http://www.w3.org/2001/XMLSchema" expressionLanguage="http://www.w3.org/1999/XPath" targetNamespace="http://www.activiti.org/test"> 
 | 
  <process id="BillNote" name="请假流程" isExecutable="true"> 
 | 
    <startEvent id="startevent1" name="Start"></startEvent> 
 | 
    <userTask id="usertask3" name="我的请求" activiti:assignee="${user}"></userTask> 
 | 
    <sequenceFlow id="flow4" name="启动任务" sourceRef="startevent1" targetRef="usertask3"></sequenceFlow> 
 | 
    <userTask id="usertask4" name="总经理" activiti:assignee="${admins}"></userTask> 
 | 
    <endEvent id="endevent1" name="End"></endEvent> 
 | 
    <sequenceFlow id="flow8" name="批准" sourceRef="usertask4" targetRef="endevent1"> 
 | 
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${outcome=='批准'}]]></conditionExpression> 
 | 
    </sequenceFlow> 
 | 
    <userTask id="usertask6" name="部门经理" activiti:assignee="${deptMag}"></userTask> 
 | 
    <userTask id="usertask7" name="人事经理" activiti:assignee="${personnel}"></userTask> 
 | 
    <sequenceFlow id="flow10" name="批准" sourceRef="usertask7" targetRef="endevent1"> 
 | 
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${outcome=='批准'}]]></conditionExpression> 
 | 
    </sequenceFlow> 
 | 
    <sequenceFlow id="flow11" name="提交申请" sourceRef="usertask3" targetRef="usertask6"></sequenceFlow> 
 | 
    <exclusiveGateway id="exclusivegateway1" name="Exclusive Gateway"></exclusiveGateway> 
 | 
    <sequenceFlow id="flow12" name="批准" sourceRef="usertask6" targetRef="exclusivegateway1"> 
 | 
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${outcome=='批准'}]]></conditionExpression> 
 | 
    </sequenceFlow> 
 | 
    <sequenceFlow id="flow13" name="请假天数小于三天" sourceRef="exclusivegateway1" targetRef="usertask7"> 
 | 
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${days<='3'}]]></conditionExpression> 
 | 
    </sequenceFlow> 
 | 
    <sequenceFlow id="flow14" name="请假天数大于三天" sourceRef="exclusivegateway1" targetRef="usertask4"> 
 | 
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${days>'3'}]]></conditionExpression> 
 | 
    </sequenceFlow> 
 | 
    <sequenceFlow id="flow16" name="驳回" sourceRef="usertask7" targetRef="usertask3"> 
 | 
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${outcome=='驳回'}]]></conditionExpression> 
 | 
    </sequenceFlow> 
 | 
    <sequenceFlow id="flow17" name="驳回" sourceRef="usertask6" targetRef="usertask3"> 
 | 
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${outcome=='驳回'}]]></conditionExpression> 
 | 
    </sequenceFlow> 
 | 
    <sequenceFlow id="flow18" name="驳回" sourceRef="usertask4" targetRef="usertask3"> 
 | 
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${outcome=='驳回'}]]></conditionExpression> 
 | 
    </sequenceFlow> 
 | 
  </process> 
 | 
  <bpmndi:BPMNDiagram id="BPMNDiagram_BillNote"> 
 | 
    <bpmndi:BPMNPlane bpmnElement="BillNote" id="BPMNPlane_BillNote"> 
 | 
      <bpmndi:BPMNShape bpmnElement="startevent1" id="BPMNShape_startevent1"> 
 | 
        <omgdc:Bounds height="35.0" width="35.0" x="130.0" y="284.0"></omgdc:Bounds> 
 | 
      </bpmndi:BPMNShape> 
 | 
      <bpmndi:BPMNShape bpmnElement="usertask3" id="BPMNShape_usertask3"> 
 | 
        <omgdc:Bounds height="55.0" width="105.0" x="260.0" y="274.0"></omgdc:Bounds> 
 | 
      </bpmndi:BPMNShape> 
 | 
      <bpmndi:BPMNShape bpmnElement="usertask4" id="BPMNShape_usertask4"> 
 | 
        <omgdc:Bounds height="55.0" width="105.0" x="770.0" y="352.0"></omgdc:Bounds> 
 | 
      </bpmndi:BPMNShape> 
 | 
      <bpmndi:BPMNShape bpmnElement="endevent1" id="BPMNShape_endevent1"> 
 | 
        <omgdc:Bounds height="35.0" width="35.0" x="963.0" y="284.0"></omgdc:Bounds> 
 | 
      </bpmndi:BPMNShape> 
 | 
      <bpmndi:BPMNShape bpmnElement="usertask6" id="BPMNShape_usertask6"> 
 | 
        <omgdc:Bounds height="55.0" width="105.0" x="430.0" y="274.0"></omgdc:Bounds> 
 | 
      </bpmndi:BPMNShape> 
 | 
      <bpmndi:BPMNShape bpmnElement="usertask7" id="BPMNShape_usertask7"> 
 | 
        <omgdc:Bounds height="55.0" width="105.0" x="770.0" y="185.0"></omgdc:Bounds> 
 | 
      </bpmndi:BPMNShape> 
 | 
      <bpmndi:BPMNShape bpmnElement="exclusivegateway1" id="BPMNShape_exclusivegateway1"> 
 | 
        <omgdc:Bounds height="40.0" width="40.0" x="600.0" y="281.0"></omgdc:Bounds> 
 | 
      </bpmndi:BPMNShape> 
 | 
      <bpmndi:BPMNEdge bpmnElement="flow4" id="BPMNEdge_flow4"> 
 | 
        <omgdi:waypoint x="165.0" y="301.0"></omgdi:waypoint> 
 | 
        <omgdi:waypoint x="260.0" y="301.0"></omgdi:waypoint> 
 | 
        <bpmndi:BPMNLabel> 
 | 
          <omgdc:Bounds height="14.0" width="48.0" x="189.0" y="281.0"></omgdc:Bounds> 
 | 
        </bpmndi:BPMNLabel> 
 | 
      </bpmndi:BPMNEdge> 
 | 
      <bpmndi:BPMNEdge bpmnElement="flow8" id="BPMNEdge_flow8"> 
 | 
        <omgdi:waypoint x="822.0" y="352.0"></omgdi:waypoint> 
 | 
        <omgdi:waypoint x="980.0" y="319.0"></omgdi:waypoint> 
 | 
        <bpmndi:BPMNLabel> 
 | 
          <omgdc:Bounds height="14.0" width="24.0" x="861.0" y="339.0"></omgdc:Bounds> 
 | 
        </bpmndi:BPMNLabel> 
 | 
      </bpmndi:BPMNEdge> 
 | 
      <bpmndi:BPMNEdge bpmnElement="flow10" id="BPMNEdge_flow10"> 
 | 
        <omgdi:waypoint x="822.0" y="240.0"></omgdi:waypoint> 
 | 
        <omgdi:waypoint x="980.0" y="284.0"></omgdi:waypoint> 
 | 
        <bpmndi:BPMNLabel> 
 | 
          <omgdc:Bounds height="14.0" width="24.0" x="864.0" y="239.0"></omgdc:Bounds> 
 | 
        </bpmndi:BPMNLabel> 
 | 
      </bpmndi:BPMNEdge> 
 | 
      <bpmndi:BPMNEdge bpmnElement="flow11" id="BPMNEdge_flow11"> 
 | 
        <omgdi:waypoint x="365.0" y="301.0"></omgdi:waypoint> 
 | 
        <omgdi:waypoint x="430.0" y="301.0"></omgdi:waypoint> 
 | 
        <bpmndi:BPMNLabel> 
 | 
          <omgdc:Bounds height="14.0" width="48.0" x="369.0" y="285.0"></omgdc:Bounds> 
 | 
        </bpmndi:BPMNLabel> 
 | 
      </bpmndi:BPMNEdge> 
 | 
      <bpmndi:BPMNEdge bpmnElement="flow12" id="BPMNEdge_flow12"> 
 | 
        <omgdi:waypoint x="535.0" y="301.0"></omgdi:waypoint> 
 | 
        <omgdi:waypoint x="600.0" y="301.0"></omgdi:waypoint> 
 | 
        <bpmndi:BPMNLabel> 
 | 
          <omgdc:Bounds height="14.0" width="24.0" x="559.0" y="285.0"></omgdc:Bounds> 
 | 
        </bpmndi:BPMNLabel> 
 | 
      </bpmndi:BPMNEdge> 
 | 
      <bpmndi:BPMNEdge bpmnElement="flow13" id="BPMNEdge_flow13"> 
 | 
        <omgdi:waypoint x="620.0" y="281.0"></omgdi:waypoint> 
 | 
        <omgdi:waypoint x="619.0" y="214.0"></omgdi:waypoint> 
 | 
        <omgdi:waypoint x="770.0" y="212.0"></omgdi:waypoint> 
 | 
        <bpmndi:BPMNLabel> 
 | 
          <omgdc:Bounds height="14.0" width="96.0" x="650.0" y="193.0"></omgdc:Bounds> 
 | 
        </bpmndi:BPMNLabel> 
 | 
      </bpmndi:BPMNEdge> 
 | 
      <bpmndi:BPMNEdge bpmnElement="flow14" id="BPMNEdge_flow14"> 
 | 
        <omgdi:waypoint x="620.0" y="321.0"></omgdi:waypoint> 
 | 
        <omgdi:waypoint x="619.0" y="380.0"></omgdi:waypoint> 
 | 
        <omgdi:waypoint x="770.0" y="379.0"></omgdi:waypoint> 
 | 
        <bpmndi:BPMNLabel> 
 | 
          <omgdc:Bounds height="42.0" width="100.0" x="650.0" y="358.0"></omgdc:Bounds> 
 | 
        </bpmndi:BPMNLabel> 
 | 
      </bpmndi:BPMNEdge> 
 | 
      <bpmndi:BPMNEdge bpmnElement="flow16" id="BPMNEdge_flow16"> 
 | 
        <omgdi:waypoint x="822.0" y="185.0"></omgdi:waypoint> 
 | 
        <omgdi:waypoint x="822.0" y="148.0"></omgdi:waypoint> 
 | 
        <omgdi:waypoint x="312.0" y="148.0"></omgdi:waypoint> 
 | 
        <omgdi:waypoint x="312.0" y="214.0"></omgdi:waypoint> 
 | 
        <omgdi:waypoint x="312.0" y="274.0"></omgdi:waypoint> 
 | 
        <bpmndi:BPMNLabel> 
 | 
          <omgdc:Bounds height="14.0" width="24.0" x="538.0" y="129.0"></omgdc:Bounds> 
 | 
        </bpmndi:BPMNLabel> 
 | 
      </bpmndi:BPMNEdge> 
 | 
      <bpmndi:BPMNEdge bpmnElement="flow17" id="BPMNEdge_flow17"> 
 | 
        <omgdi:waypoint x="482.0" y="329.0"></omgdi:waypoint> 
 | 
        <omgdi:waypoint x="482.0" y="364.0"></omgdi:waypoint> 
 | 
        <omgdi:waypoint x="323.0" y="364.0"></omgdi:waypoint> 
 | 
        <omgdi:waypoint x="312.0" y="329.0"></omgdi:waypoint> 
 | 
        <bpmndi:BPMNLabel> 
 | 
          <omgdc:Bounds height="14.0" width="24.0" x="380.0" y="339.0"></omgdc:Bounds> 
 | 
        </bpmndi:BPMNLabel> 
 | 
      </bpmndi:BPMNEdge> 
 | 
      <bpmndi:BPMNEdge bpmnElement="flow18" id="BPMNEdge_flow18"> 
 | 
        <omgdi:waypoint x="822.0" y="407.0"></omgdi:waypoint> 
 | 
        <omgdi:waypoint x="822.0" y="436.0"></omgdi:waypoint> 
 | 
        <omgdi:waypoint x="312.0" y="436.0"></omgdi:waypoint> 
 | 
        <omgdi:waypoint x="312.0" y="329.0"></omgdi:waypoint> 
 | 
        <bpmndi:BPMNLabel> 
 | 
          <omgdc:Bounds height="14.0" width="24.0" x="522.0" y="419.0"></omgdc:Bounds> 
 | 
        </bpmndi:BPMNLabel> 
 | 
      </bpmndi:BPMNEdge> 
 | 
    </bpmndi:BPMNPlane> 
 | 
  </bpmndi:BPMNDiagram> 
 | 
</definitions> 
 |