<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" 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" xmlns:tns="http://www.processes.org/test" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" expressionLanguage="http://www.w3.org/1999/XPath" id="m1548745879356" name="" targetNamespace="http://www.processes.org/test" typeLanguage="http://www.w3.org/2001/XMLSchema">
  <process id="myProceeee" isClosed="false" isExecutable="true" name="My process" processType="None">
    <startEvent id="start" name="Start"/>
    <userTask activiti:assignee="${employee}" activiti:exclusive="true" id="usertask1" name="提出请假申请"/>
    <sequenceFlow id="flow1" name="想请假" sourceRef="start" targetRef="usertask3"/>
    <userTask activiti:candidateUsers="${managers}" activiti:exclusive="true" id="usertask2" name="领导审核"/>
    <endEvent id="endevent1" name="End"/>
    <userTask activiti:assignee="${employee}" activiti:exclusive="true" id="usertask3" name="填写请假单"/>
    <userTask activiti:exclusive="true" id="usertask4" name="放弃请假"/>
    <sequenceFlow id="flow6" name="想了想还是不请了" sourceRef="exclusivegateway1" targetRef="usertask4">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${input=='giveup'}]]></conditionExpression>
    </sequenceFlow>
    <sequenceFlow id="flow7" sourceRef="usertask4" targetRef="endevent1"/>
    <sequenceFlow id="flow3" name="下定决心准备请假" sourceRef="exclusivegateway1" targetRef="usertask1">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${input=='apply'}]]></conditionExpression>
    </sequenceFlow>
    <exclusiveGateway gatewayDirection="Unspecified" id="exclusivegateway1" name="Exclusive Gateway"/>
    <sequenceFlow id="flow2" sourceRef="usertask3" targetRef="exclusivegateway1"/>
    <exclusiveGateway gatewayDirection="Unspecified" id="exclusivegateway2" name="Exclusive Gateway"/>
    <sequenceFlow id="flow8" sourceRef="usertask2" targetRef="exclusivegateway2"/>
    <sequenceFlow id="flow9" name="审核通过" sourceRef="exclusivegateway2" targetRef="endevent1">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${input=='apply'}]]></conditionExpression>
    </sequenceFlow>
    <sequenceFlow id="flow10" name="审核未通过" sourceRef="exclusivegateway2" targetRef="usertask3">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${input=='giveup'}]]></conditionExpression>
    </sequenceFlow>
    <exclusiveGateway gatewayDirection="Unspecified" id="exclusivegateway4" name="Exclusive Gateway"/>
    <sequenceFlow id="flow4" sourceRef="usertask1" targetRef="exclusivegateway4"/>
    <sequenceFlow id="flow5" sourceRef="exclusivegateway4" targetRef="usertask2">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${days<10 && days>=3}]]></conditionExpression>
    </sequenceFlow>
    <userTask activiti:exclusive="true" id="usertask5" name="领导审核1"/>
    <sequenceFlow id="flow11" sourceRef="exclusivegateway4" targetRef="usertask5">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${days<3}]]></conditionExpression>
    </sequenceFlow>
    <userTask activiti:exclusive="true" id="usertask6" name="领导审核2"/>
    <sequenceFlow id="flow13" sourceRef="exclusivegateway4" targetRef="usertask6">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${days>10}]]></conditionExpression>
    </sequenceFlow>
    <sequenceFlow id="flow12" sourceRef="usertask5" targetRef="exclusivegateway2"/>
    <sequenceFlow id="flow14" sourceRef="usertask6" targetRef="exclusivegateway2"/>
  </process>
  <bpmndi:BPMNDiagram documentation="background=#FFFFFF;count=1;horizontalcount=1;orientation=0;width=842.4;height=1195.2;imageableWidth=832.4;imageableHeight=1185.2;imageableX=5.0;imageableY=5.0" id="Diagram-_1" name="New Diagram">
    <bpmndi:BPMNPlane bpmnElement="myProceeee">
      <bpmndi:BPMNShape bpmnElement="start" id="Shape-start">
        <omgdc:Bounds height="32.0" width="32.0" x="0.0" y="124.0"/>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="32.0" width="32.0" x="0.0" y="0.0"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="usertask1" id="Shape-usertask1">
        <omgdc:Bounds height="55.0" width="105.0" x="380.0" y="114.0"/>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="55.0" width="105.0" x="0.0" y="0.0"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="usertask2" id="Shape-usertask2">
        <omgdc:Bounds height="55.0" width="105.0" x="860.0" y="121.0"/>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="55.0" width="105.0" x="0.0" y="0.0"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="endevent1" id="Shape-endevent1">
        <omgdc:Bounds height="32.0" width="32.0" x="920.0" y="410.0"/>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="32.0" width="32.0" x="0.0" y="0.0"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="usertask3" id="Shape-usertask3">
        <omgdc:Bounds height="55.0" width="105.0" x="110.0" y="114.0"/>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="55.0" width="105.0" x="0.0" y="0.0"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="usertask4" id="Shape-usertask4">
        <omgdc:Bounds height="55.0" width="105.0" x="330.0" y="400.0"/>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="55.0" width="105.0" x="0.0" y="0.0"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="exclusivegateway1" id="Shape-exclusivegateway1" isMarkerVisible="false">
        <omgdc:Bounds height="32.0" width="32.0" x="250.0" y="121.0"/>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="32.0" width="32.0" x="0.0" y="0.0"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="exclusivegateway2" id="Shape-exclusivegateway2" isMarkerVisible="false">
        <omgdc:Bounds height="32.0" width="32.0" x="1120.0" y="220.0"/>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="32.0" width="32.0" x="0.0" y="0.0"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="exclusivegateway4" id="Shape-exclusivegateway4" isMarkerVisible="false">
        <omgdc:Bounds height="32.0" width="32.0" x="661.0" y="128.0"/>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="32.0" width="32.0" x="0.0" y="0.0"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="usertask5" id="Shape-usertask5">
        <omgdc:Bounds height="55.0" width="105.0" x="860.0" y="40.0"/>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="55.0" width="105.0" x="0.0" y="0.0"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="usertask6" id="Shape-usertask6">
        <omgdc:Bounds height="55.0" width="105.0" x="860.0" y="204.0"/>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="55.0" width="105.0" x="0.0" y="0.0"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge bpmnElement="flow1" id="BPMNEdge_flow1" sourceElement="start" targetElement="usertask3">
        <omgdi:waypoint x="32.0" y="140.0"/>
        <omgdi:waypoint x="110.0" y="141.5"/>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="16.0" width="48.0" x="35.0" y="141.0"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow2" id="BPMNEdge_flow2" sourceElement="usertask3" targetElement="exclusivegateway1">
        <omgdi:waypoint x="215.0" y="141.5"/>
        <omgdi:waypoint x="250.0" y="137.0"/>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="-1.0" width="-1.0" x="-1.0" y="-1.0"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow3" id="BPMNEdge_flow3" sourceElement="exclusivegateway1" targetElement="usertask1">
        <omgdi:waypoint x="282.0" y="137.0"/>
        <omgdi:waypoint x="380.0" y="141.5"/>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="48.0" width="96.0" x="290.0" y="141.0"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow4" id="BPMNEdge_flow4" sourceElement="usertask1" targetElement="exclusivegateway4">
        <omgdi:waypoint x="485.0" y="141.5"/>
        <omgdi:waypoint x="661.0" y="144.0"/>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="-1.0" width="-1.0" x="-1.0" y="-1.0"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow5" id="BPMNEdge_flow5" sourceElement="exclusivegateway4" targetElement="usertask2">
        <omgdi:waypoint x="693.0" y="144.0"/>
        <omgdi:waypoint x="860.0" y="148.5"/>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="-1.0" width="-1.0" x="-1.0" y="-1.0"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow6" id="BPMNEdge_flow6" sourceElement="exclusivegateway1" targetElement="usertask4">
        <omgdi:waypoint x="282.0" y="137.0"/>
        <omgdi:waypoint x="330.0" y="427.5"/>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="48.0" width="96.0" x="270.0" y="161.0"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow7" id="BPMNEdge_flow7" sourceElement="usertask4" targetElement="endevent1">
        <omgdi:waypoint x="435.0" y="427.5"/>
        <omgdi:waypoint x="920.0" y="426.0"/>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="-1.0" width="-1.0" x="-1.0" y="-1.0"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow8" id="BPMNEdge_flow8" sourceElement="usertask2" targetElement="exclusivegateway2">
        <omgdi:waypoint x="965.0" y="148.5"/>
        <omgdi:waypoint x="1120.0" y="236.0"/>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="-1.0" width="-1.0" x="-1.0" y="-1.0"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow9" id="BPMNEdge_flow9" sourceElement="exclusivegateway2" targetElement="endevent1">
        <omgdi:waypoint x="1120.0" y="236.0"/>
        <omgdi:waypoint x="952.0" y="426.0"/>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="16.0" width="64.0" x="997.0" y="312.0"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow13" id="BPMNEdge_flow13" sourceElement="exclusivegateway4" targetElement="usertask6">
        <omgdi:waypoint x="693.0" y="144.0"/>
        <omgdi:waypoint x="860.0" y="231.5"/>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="-1.0" width="-1.0" x="-1.0" y="-1.0"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow14" id="BPMNEdge_flow14" sourceElement="usertask6" targetElement="exclusivegateway2">
        <omgdi:waypoint x="965.0" y="231.5"/>
        <omgdi:waypoint x="1120.0" y="236.0"/>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="-1.0" width="-1.0" x="-1.0" y="-1.0"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow10" id="BPMNEdge_flow10" sourceElement="exclusivegateway2" targetElement="usertask3">
        <omgdi:waypoint x="1140.0" y="248.0"/>
        <omgdi:waypoint x="1140.0" y="497.0"/>
        <omgdi:waypoint x="676.0" y="497.0"/>
        <omgdi:waypoint x="389.0" y="497.0"/>
        <omgdi:waypoint x="162.0" y="497.0"/>
        <omgdi:waypoint x="162.5" y="169.0"/>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="16.0" width="80.0" x="1020.0" y="509.0"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow11" id="BPMNEdge_flow11" sourceElement="exclusivegateway4" targetElement="usertask5">
        <omgdi:waypoint x="693.0" y="144.0"/>
        <omgdi:waypoint x="860.0" y="67.5"/>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="-1.0" width="-1.0" x="-1.0" y="-1.0"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow12" id="BPMNEdge_flow12" sourceElement="usertask5" targetElement="exclusivegateway2">
        <omgdi:waypoint x="965.0" y="67.0"/>
        <omgdi:waypoint x="1140.0" y="67.0"/>
        <omgdi:waypoint x="1140.0" y="224.0"/>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="-1.0" width="-1.0" x="-1.0" y="-1.0"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</definitions>
