<?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.kafeitu.me/activiti/leave">
  <process id="leaveNew" name="普通表单" isExecutable="true">
    <documentation>请假流程演示</documentation>
    <userTask id="hrTask" name="人事审批" activiti:candidateGroups="117" activiti:formKey="leave_hr_form"></userTask>
    <exclusiveGateway id="exclusivegateway6" name="Exclusive Gateway"></exclusiveGateway>
    <sequenceFlow id="flow6" sourceRef="hrTask" targetRef="exclusivegateway6"></sequenceFlow>
    <startEvent id="startevent" name="start"></startEvent>
    <userTask id="boosTask" name="老板审批" activiti:candidateUsers="120" activiti:formKey="leave_boos_form"></userTask>
    <sequenceFlow id="flow21" name="同意" sourceRef="exclusivegateway6" targetRef="boosTask">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${hrStatus=="1"}]]></conditionExpression>
    </sequenceFlow>
    <userTask id="userTask" name="用户填写请假信息" activiti:assignee="${appUserId}" activiti:formKey="leave_start_form"></userTask>
    <sequenceFlow id="flow24" sourceRef="startevent" targetRef="userTask"></sequenceFlow>
    <sequenceFlow id="flow25" sourceRef="userTask" targetRef="hrTask"></sequenceFlow>
    <sequenceFlow id="flow26" name="不同意" sourceRef="exclusivegateway6" targetRef="userTask" skipExpression="${hrStatus==&quot;0&quot;}"></sequenceFlow>
    <exclusiveGateway id="exclusivegateway7" name="Exclusive Gateway"></exclusiveGateway>
    <sequenceFlow id="flow27" sourceRef="boosTask" targetRef="exclusivegateway7"></sequenceFlow>
    <endEvent id="endevent1" name="End"></endEvent>
    <sequenceFlow id="flow28" name="同意" sourceRef="exclusivegateway7" targetRef="endevent1" skipExpression="${boosStatus==&quot;1&quot;}"></sequenceFlow>
    <sequenceFlow id="flow29" name="不同意" sourceRef="exclusivegateway7" targetRef="userTask" skipExpression="${boosStatus==&quot;0&quot;}"></sequenceFlow>
  </process>
  <bpmndi:BPMNDiagram id="BPMNDiagram_leaveNew">
    <bpmndi:BPMNPlane bpmnElement="leaveNew" id="BPMNPlane_leaveNew">
      <bpmndi:BPMNShape bpmnElement="hrTask" id="BPMNShape_hrTask">
        <omgdc:Bounds height="55.0" width="105.0" x="296.0" y="190.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="exclusivegateway6" id="BPMNShape_exclusivegateway6">
        <omgdc:Bounds height="40.0" width="40.0" x="494.0" y="197.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="startevent" id="BPMNShape_startevent">
        <omgdc:Bounds height="35.0" width="35.0" x="40.0" y="200.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="boosTask" id="BPMNShape_boosTask">
        <omgdc:Bounds height="55.0" width="105.0" x="630.0" y="190.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="userTask" id="BPMNShape_userTask">
        <omgdc:Bounds height="55.0" width="105.0" x="120.0" y="190.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="exclusivegateway7" id="BPMNShape_exclusivegateway7">
        <omgdc:Bounds height="40.0" width="40.0" x="820.0" y="197.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="endevent1" id="BPMNShape_endevent1">
        <omgdc:Bounds height="35.0" width="35.0" x="970.0" y="200.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge bpmnElement="flow6" id="BPMNEdge_flow6">
        <omgdi:waypoint x="401.0" y="217.0"></omgdi:waypoint>
        <omgdi:waypoint x="494.0" y="217.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow21" id="BPMNEdge_flow21">
        <omgdi:waypoint x="534.0" y="217.0"></omgdi:waypoint>
        <omgdi:waypoint x="630.0" y="217.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="14.0" width="24.0" x="543.0" y="197.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow24" id="BPMNEdge_flow24">
        <omgdi:waypoint x="75.0" y="217.0"></omgdi:waypoint>
        <omgdi:waypoint x="120.0" y="217.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow25" id="BPMNEdge_flow25">
        <omgdi:waypoint x="225.0" y="217.0"></omgdi:waypoint>
        <omgdi:waypoint x="296.0" y="217.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow26" id="BPMNEdge_flow26">
        <omgdi:waypoint x="514.0" y="197.0"></omgdi:waypoint>
        <omgdi:waypoint x="514.0" y="118.0"></omgdi:waypoint>
        <omgdi:waypoint x="172.0" y="118.0"></omgdi:waypoint>
        <omgdi:waypoint x="172.0" y="190.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="14.0" width="100.0" x="280.0" y="131.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow27" id="BPMNEdge_flow27">
        <omgdi:waypoint x="735.0" y="217.0"></omgdi:waypoint>
        <omgdi:waypoint x="820.0" y="217.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow28" id="BPMNEdge_flow28">
        <omgdi:waypoint x="860.0" y="217.0"></omgdi:waypoint>
        <omgdi:waypoint x="970.0" y="217.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="14.0" width="100.0" x="879.0" y="197.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow29" id="BPMNEdge_flow29">
        <omgdi:waypoint x="840.0" y="237.0"></omgdi:waypoint>
        <omgdi:waypoint x="840.0" y="378.0"></omgdi:waypoint>
        <omgdi:waypoint x="172.0" y="378.0"></omgdi:waypoint>
        <omgdi:waypoint x="172.0" y="245.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="14.0" width="100.0" x="445.0" y="359.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</definitions>