<?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" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" typeLanguage="http://www.w3.org/2001/XMLSchema" expressionLanguage="http://www.w3.org/1999/XPath" targetNamespace="http://www.activiti.org/test" exporter="Camunda Modeler" exporterVersion="4.12.0">
  <process id="SalesContractChange" name="销售合同变更流程" isExecutable="true">
    <startEvent id="startevent1" name="销售合同变更"></startEvent>
    <userTask id="sales_contract_create_change" name="变更合同创建" activiti:assignee="${sales_contract_create_change_assignee}" activiti:formKey="/salesContractChange/add" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" camunda:formKey=""></userTask>
    <sequenceFlow id="flow1" sourceRef="startevent1" targetRef="sales_contract_create_change"></sequenceFlow>
    <userTask id="supplement_template_approval" name="模板审核" activiti:candidateUsers="${legal_specialist}"></userTask>
    <sequenceFlow id="flow2" sourceRef="sales_contract_create_change" targetRef="supplement_template_approval"></sequenceFlow>
    <exclusiveGateway id="exclusivegateway1" name="Exclusive Gateway"></exclusiveGateway>
    <sequenceFlow id="flow10" sourceRef="supplement_template_approval" targetRef="exclusivegateway1"></sequenceFlow>
    <userTask id="sales_supplement_basic" name="变更信息录入" activiti:assignee="${sales_supplement_basic_assignee}"></userTask>
    <exclusiveGateway id="exclusivegateway2" name="Exclusive Gateway"></exclusiveGateway>
    <userTask id="supplement_sign_confirmation" name="签署确认" activiti:assignee="${supplement_sign_confirmation_assignee}"></userTask>
    <sequenceFlow id="flow15" name="签署" sourceRef="exclusivegateway2" targetRef="supplement_sign_confirmation">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${result=='签署'}]]></conditionExpression>
    </sequenceFlow>
    <userTask id="supplement_sign_confirmation_approval" name="签署审核" activiti:candidateUsers="${supplement_sign_confirmation_approval_candidate}"></userTask>
    <sequenceFlow id="flow16" sourceRef="supplement_sign_confirmation" targetRef="supplement_sign_confirmation_approval"></sequenceFlow>
    <endEvent id="endevent2" name="End"></endEvent>
    <sequenceFlow id="flow17" sourceRef="supplement_sign_confirmation_approval" targetRef="endevent2"></sequenceFlow>
    <endEvent id="endevent3" name="End"></endEvent>
    <sequenceFlow id="flow19" name="驳回" sourceRef="exclusivegateway1" targetRef="sales_contract_create_change">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${result=='驳回'}]]></conditionExpression>
    </sequenceFlow>
    <sequenceFlow id="flow20" name="通过" sourceRef="exclusivegateway1" targetRef="sales_supplement_basic">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${result=='通过'}]]></conditionExpression>
    </sequenceFlow>
    <userTask id="sales_supplement_approval" name="变更审核" activiti:candidateUsers="${sales_supplement_approval_candidate}"></userTask>
    <sequenceFlow id="flow21" sourceRef="sales_supplement_basic" targetRef="sales_supplement_approval"></sequenceFlow>
    <sequenceFlow id="flow22" sourceRef="sales_supplement_approval" targetRef="exclusivegateway2"></sequenceFlow>
    <sequenceFlow id="flow23" name="不签署" sourceRef="sales_supplement_approval" targetRef="endevent3"></sequenceFlow>
    <sequenceFlow id="flow24" name="驳回" sourceRef="exclusivegateway2" targetRef="sales_supplement_basic">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${result=='驳回'}]]></conditionExpression>
    </sequenceFlow>
  </process>
  <bpmndi:BPMNDiagram id="BPMNDiagram_SalesContractChange">
    <bpmndi:BPMNPlane bpmnElement="SalesContractChange" id="BPMNPlane_SalesContractChange">
      <bpmndi:BPMNShape bpmnElement="startevent1" id="BPMNShape_startevent1">
        <omgdc:Bounds height="35.0" width="35.0" x="120.0" y="360.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="sales_contract_create_change" id="BPMNShape_sales_contract_create_change">
        <omgdc:Bounds height="55.0" width="105.0" x="280.0" y="350.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="supplement_template_approval" id="BPMNShape_supplement_template_approval">
        <omgdc:Bounds height="55.0" width="105.0" x="430.0" y="350.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="exclusivegateway1" id="BPMNShape_exclusivegateway1">
        <omgdc:Bounds height="40.0" width="40.0" x="580.0" y="358.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="sales_supplement_basic" id="BPMNShape_sales_supplement_basic">
        <omgdc:Bounds height="55.0" width="105.0" x="665.0" y="351.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="exclusivegateway2" id="BPMNShape_exclusivegateway2">
        <omgdc:Bounds height="40.0" width="40.0" x="965.0" y="359.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="supplement_sign_confirmation" id="BPMNShape_supplement_sign_confirmation">
        <omgdc:Bounds height="55.0" width="105.0" x="1050.0" y="352.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="supplement_sign_confirmation_approval" id="BPMNShape_supplement_sign_confirmation_approval">
        <omgdc:Bounds height="55.0" width="105.0" x="1200.0" y="352.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="endevent2" id="BPMNShape_endevent2">
        <omgdc:Bounds height="35.0" width="35.0" x="1350.0" y="362.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="endevent3" id="BPMNShape_endevent3">
        <omgdc:Bounds height="35.0" width="35.0" x="850.0" y="460.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="sales_supplement_approval" id="BPMNShape_sales_supplement_approval">
        <omgdc:Bounds height="55.0" width="105.0" x="815.0" y="352.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge bpmnElement="flow1" id="BPMNEdge_flow1">
        <omgdi:waypoint x="155.0" y="377.0"></omgdi:waypoint>
        <omgdi:waypoint x="280.0" y="377.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow2" id="BPMNEdge_flow2">
        <omgdi:waypoint x="385.0" y="377.0"></omgdi:waypoint>
        <omgdi:waypoint x="430.0" y="377.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow10" id="BPMNEdge_flow10">
        <omgdi:waypoint x="535.0" y="377.0"></omgdi:waypoint>
        <omgdi:waypoint x="580.0" y="378.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow15" id="BPMNEdge_flow15">
        <omgdi:waypoint x="1005.0" y="379.0"></omgdi:waypoint>
        <omgdi:waypoint x="1050.0" y="379.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="16.0" width="32.0" x="1005.0" y="379.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow16" id="BPMNEdge_flow16">
        <omgdi:waypoint x="1155.0" y="379.0"></omgdi:waypoint>
        <omgdi:waypoint x="1200.0" y="379.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow17" id="BPMNEdge_flow17">
        <omgdi:waypoint x="1305.0" y="379.0"></omgdi:waypoint>
        <omgdi:waypoint x="1350.0" y="379.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow19" id="BPMNEdge_flow19">
        <omgdi:waypoint x="600.0" y="358.0"></omgdi:waypoint>
        <omgdi:waypoint x="599.0" y="268.0"></omgdi:waypoint>
        <omgdi:waypoint x="328.0" y="268.0"></omgdi:waypoint>
        <omgdi:waypoint x="332.0" y="350.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="16.0" width="32.0" x="421.0" y="251.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow20" id="BPMNEdge_flow20">
        <omgdi:waypoint x="620.0" y="378.0"></omgdi:waypoint>
        <omgdi:waypoint x="665.0" y="378.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="16.0" width="100.0" x="620.0" y="378.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow21" id="BPMNEdge_flow21">
        <omgdi:waypoint x="770.0" y="378.0"></omgdi:waypoint>
        <omgdi:waypoint x="815.0" y="379.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow22" id="BPMNEdge_flow22">
        <omgdi:waypoint x="920.0" y="379.0"></omgdi:waypoint>
        <omgdi:waypoint x="965.0" y="379.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow23" id="BPMNEdge_flow23">
        <omgdi:waypoint x="867.0" y="407.0"></omgdi:waypoint>
        <omgdi:waypoint x="867.0" y="460.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="16.0" width="100.0" x="872.0" y="430.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow24" id="BPMNEdge_flow24">
        <omgdi:waypoint x="985.0" y="359.0"></omgdi:waypoint>
        <omgdi:waypoint x="984.0" y="270.0"></omgdi:waypoint>
        <omgdi:waypoint x="717.0" y="270.0"></omgdi:waypoint>
        <omgdi:waypoint x="717.0" y="351.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="16.0" width="100.0" x="801.0" y="251.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</definitions>