<?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="AcceptanceSheet" name="验收单流程" isExecutable="true">
    <startEvent id="startevent1" name="Start"></startEvent>
    <userTask id="acceptance_sheet" name="录入验收单" activiti:assignee="${acceptance_sheet_assignee}" activiti:formKey="/acceptance/add"></userTask>
    <sequenceFlow id="flow2" sourceRef="startevent1" targetRef="acceptance_sheet"></sequenceFlow>
    <userTask id="legal_review" name="法务审核" activiti:candidateUsers="${acceptance_sheet_approval_candidate}" activiti:formKey="/acceptance/approval"></userTask>
    <exclusiveGateway id="exclusivegateway1" name="Exclusive Gateway"></exclusiveGateway>
    <sequenceFlow id="flow4" sourceRef="legal_review" targetRef="exclusivegateway1"></sequenceFlow>
    <endEvent id="endevent1" name="End"></endEvent>
    <sequenceFlow id="flow7" name="驳回" sourceRef="exclusivegateway1" targetRef="acceptance_sheet">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${result=='驳回'}]]></conditionExpression>
    </sequenceFlow>
    <sequenceFlow id="flow9" name="通过" sourceRef="exclusivegateway1" targetRef="endevent1">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${result=='通过'}]]></conditionExpression>
    </sequenceFlow>
    <exclusiveGateway id="exclusivegateway2" name="Exclusive Gateway"></exclusiveGateway>
    <sequenceFlow id="flow10" sourceRef="acceptance_sheet" targetRef="exclusivegateway2"></sequenceFlow>
    <userTask id="acceptance_sign_confirm" name="签署确认" activiti:assignee="${acceptance_sign_confirm_assignee}" activiti:formKey="/acceptance/sign/confirm"></userTask>
    <sequenceFlow id="flow15" name="签署确认" sourceRef="exclusivegateway2" targetRef="acceptance_sign_confirm">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${result=='签署确认'}]]></conditionExpression>
    </sequenceFlow>
    <sequenceFlow id="flow17" name="法务审核" sourceRef="exclusivegateway2" targetRef="legal_review">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${result=='法务审核'}]]></conditionExpression>
    </sequenceFlow>
    <endEvent id="endevent2" name="End"></endEvent>
    <exclusiveGateway id="exclusivegateway5" name="Exclusive Gateway"></exclusiveGateway>
    <sequenceFlow id="flow21" sourceRef="acceptance_sign_confirm" targetRef="exclusivegateway5"></sequenceFlow>
    <sequenceFlow id="flow22" name="完成" sourceRef="exclusivegateway5" targetRef="legal_review">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${result=='完成'}]]></conditionExpression>
    </sequenceFlow>
    <sequenceFlow id="flow23" name="终止" sourceRef="exclusivegateway5" targetRef="endevent2">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${result=='终止'}]]></conditionExpression>
    </sequenceFlow>
    <endEvent id="endevent3" name="End"></endEvent>
    <sequenceFlow id="flow25" name="否决" sourceRef="exclusivegateway1" targetRef="endevent3">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${result=='否决'}]]></conditionExpression>
    </sequenceFlow>
  </process>
  <bpmndi:BPMNDiagram id="BPMNDiagram_AcceptanceSheet">
    <bpmndi:BPMNPlane bpmnElement="AcceptanceSheet" id="BPMNPlane_AcceptanceSheet">
      <bpmndi:BPMNShape bpmnElement="startevent1" id="BPMNShape_startevent1">
        <omgdc:Bounds height="35.0" width="35.0" x="141.0" y="249.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="acceptance_sheet" id="BPMNShape_acceptance_sheet">
        <omgdc:Bounds height="55.0" width="105.0" x="223.0" y="239.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="legal_review" id="BPMNShape_legal_review">
        <omgdc:Bounds height="55.0" width="105.0" x="830.0" y="241.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="exclusivegateway1" id="BPMNShape_exclusivegateway1">
        <omgdc:Bounds height="40.0" width="40.0" x="990.0" y="246.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="endevent1" id="BPMNShape_endevent1">
        <omgdc:Bounds height="35.0" width="35.0" x="1130.0" y="249.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="exclusivegateway2" id="BPMNShape_exclusivegateway2">
        <omgdc:Bounds height="40.0" width="40.0" x="373.0" y="247.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="acceptance_sign_confirm" id="BPMNShape_acceptance_sign_confirm">
        <omgdc:Bounds height="55.0" width="105.0" x="566.0" y="240.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="endevent2" id="BPMNShape_endevent2">
        <omgdc:Bounds height="35.0" width="35.0" x="719.0" y="140.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="exclusivegateway5" id="BPMNShape_exclusivegateway5">
        <omgdc:Bounds height="40.0" width="40.0" x="716.0" y="248.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="endevent3" id="BPMNShape_endevent3">
        <omgdc:Bounds height="35.0" width="35.0" x="995.0" y="405.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge bpmnElement="flow2" id="BPMNEdge_flow2">
        <omgdi:waypoint x="176.0" y="266.0"></omgdi:waypoint>
        <omgdi:waypoint x="223.0" y="266.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow4" id="BPMNEdge_flow4">
        <omgdi:waypoint x="935.0" y="268.0"></omgdi:waypoint>
        <omgdi:waypoint x="990.0" y="266.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow7" id="BPMNEdge_flow7">
        <omgdi:waypoint x="1010.0" y="246.0"></omgdi:waypoint>
        <omgdi:waypoint x="1010.0" y="63.0"></omgdi:waypoint>
        <omgdi:waypoint x="275.0" y="62.0"></omgdi:waypoint>
        <omgdi:waypoint x="275.0" y="239.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="48.0" width="24.0" x="607.0" y="41.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow9" id="BPMNEdge_flow9">
        <omgdi:waypoint x="1030.0" y="266.0"></omgdi:waypoint>
        <omgdi:waypoint x="1130.0" y="266.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="48.0" width="24.0" x="1060.0" y="249.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow10" id="BPMNEdge_flow10">
        <omgdi:waypoint x="328.0" y="266.0"></omgdi:waypoint>
        <omgdi:waypoint x="373.0" y="267.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow15" id="BPMNEdge_flow15">
        <omgdi:waypoint x="413.0" y="267.0"></omgdi:waypoint>
        <omgdi:waypoint x="566.0" y="267.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="48.0" width="48.0" x="489.0" y="249.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow17" id="BPMNEdge_flow17">
        <omgdi:waypoint x="393.0" y="247.0"></omgdi:waypoint>
        <omgdi:waypoint x="393.0" y="111.0"></omgdi:waypoint>
        <omgdi:waypoint x="882.0" y="111.0"></omgdi:waypoint>
        <omgdi:waypoint x="882.0" y="241.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="48.0" width="48.0" x="620.0" y="91.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow21" id="BPMNEdge_flow21">
        <omgdi:waypoint x="671.0" y="267.0"></omgdi:waypoint>
        <omgdi:waypoint x="716.0" y="268.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow22" id="BPMNEdge_flow22">
        <omgdi:waypoint x="756.0" y="268.0"></omgdi:waypoint>
        <omgdi:waypoint x="830.0" y="268.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="48.0" width="24.0" x="780.0" y="250.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow23" id="BPMNEdge_flow23">
        <omgdi:waypoint x="736.0" y="248.0"></omgdi:waypoint>
        <omgdi:waypoint x="736.0" y="175.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="48.0" width="24.0" x="700.0" y="211.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow25" id="BPMNEdge_flow25">
        <omgdi:waypoint x="1010.0" y="286.0"></omgdi:waypoint>
        <omgdi:waypoint x="1012.0" y="405.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="16.0" width="32.0" x="1010.0" y="286.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</definitions>