<?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="SupplierInfo" name="供应商准入流程" isExecutable="true">
    <startEvent id="startevent1" name="Start"></startEvent>
    <userTask id="supplier_add" name="供应商C端录入" activiti:assignee="${supplier_add_assignee}"></userTask>
    <sequenceFlow id="flow1" sourceRef="startevent1" targetRef="supplier_add"></sequenceFlow>
    <userTask id="due_diligence_allocation" name="尽调分配" activiti:assignee="${due_diligence_allocation_assignee}"></userTask>
    <exclusiveGateway id="exclusivegateway1" name="Exclusive Gateway"></exclusiveGateway>
    <sequenceFlow id="flow3" sourceRef="due_diligence_allocation" targetRef="exclusivegateway1"></sequenceFlow>
    <userTask id="due_diligence_confirm" name="尽调时间确认" activiti:assignee="${due_diligence_confirm_assignee}"></userTask>
    <userTask id="first_review" name="尽调审核(第一步)" activiti:assignee="${first_review_assignee}"></userTask>
    <sequenceFlow id="flow5" name="建工" sourceRef="exclusivegateway1" targetRef="first_review">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${result=='建工'}]]></conditionExpression>
    </sequenceFlow>
    <userTask id="second_review" name="尽调审核(第二步)" activiti:assignee="${second_review_assignee}"></userTask>
    <endEvent id="endevent1" name="End"></endEvent>
    <exclusiveGateway id="exclusivegateway2" name="Exclusive Gateway"></exclusiveGateway>
    <sequenceFlow id="flow8" sourceRef="second_review" targetRef="exclusivegateway2"></sequenceFlow>
    <sequenceFlow id="flow9" name="退回" sourceRef="exclusivegateway2" targetRef="supplier_add">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${result=='退回'}]]></conditionExpression>
    </sequenceFlow>
    <exclusiveGateway id="exclusivegateway3" name="Exclusive Gateway"></exclusiveGateway>
    <sequenceFlow id="flow10" sourceRef="supplier_add" targetRef="exclusivegateway3"></sequenceFlow>
    <sequenceFlow id="flow11" name="未审核过" sourceRef="exclusivegateway3" targetRef="due_diligence_allocation">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${result=='未审核过'}]]></conditionExpression>
    </sequenceFlow>
    <sequenceFlow id="flow12" name="审核过" sourceRef="exclusivegateway3" targetRef="second_review">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${result=='审核过'}]]></conditionExpression>
    </sequenceFlow>
    <userTask id="due_diligence_reservation" name="尽调预约" activiti:assignee="${due_diligence_reservation_assignee}"></userTask>
    <sequenceFlow id="flow14" name="待视频尽调" sourceRef="exclusivegateway2" targetRef="due_diligence_reservation">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${result=='待视频尽调'}]]></conditionExpression>
    </sequenceFlow>
    <sequenceFlow id="flow15" name="授信成功" sourceRef="exclusivegateway2" targetRef="endevent1">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${result=='授信成功'}]]></conditionExpression>
    </sequenceFlow>
    <sequenceFlow id="flow20" sourceRef="due_diligence_reservation" targetRef="due_diligence_confirm"></sequenceFlow>
    <exclusiveGateway id="exclusivegateway4" name="Exclusive Gateway"></exclusiveGateway>
    <sequenceFlow id="flow21" sourceRef="due_diligence_confirm" targetRef="exclusivegateway4"></sequenceFlow>
    <endEvent id="endevent2" name="End"></endEvent>
    <sequenceFlow id="flow22" name="非建工" sourceRef="exclusivegateway4" targetRef="endevent2">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${result=='非建工'}]]></conditionExpression>
    </sequenceFlow>
    <userTask id="video_due_diligence" name="视频尽调" activiti:assignee="${video_due_diligence_assignee}"></userTask>
    <sequenceFlow id="flow23" name="建工" sourceRef="exclusivegateway4" targetRef="video_due_diligence">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${result=='建工'}]]></conditionExpression>
    </sequenceFlow>
    <sequenceFlow id="flow24" sourceRef="video_due_diligence" targetRef="endevent2"></sequenceFlow>
    <exclusiveGateway id="exclusivegateway5" name="Exclusive Gateway"></exclusiveGateway>
    <sequenceFlow id="flow25" sourceRef="first_review" targetRef="exclusivegateway5"></sequenceFlow>
    <sequenceFlow id="flow26" name="红否" sourceRef="exclusivegateway5" targetRef="endevent1">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${result=='红否'}]]></conditionExpression>
    </sequenceFlow>
    <sequenceFlow id="flow27" name="通过" sourceRef="exclusivegateway5" targetRef="second_review">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${result=='通过'}]]></conditionExpression>
    </sequenceFlow>
    <sequenceFlow id="flow30" name="非建工" sourceRef="exclusivegateway1" targetRef="due_diligence_reservation">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${result=='非建工'}]]></conditionExpression>
    </sequenceFlow>
  </process>
  <bpmndi:BPMNDiagram id="BPMNDiagram_SupplierInfo">
    <bpmndi:BPMNPlane bpmnElement="SupplierInfo" id="BPMNPlane_SupplierInfo">
      <bpmndi:BPMNShape bpmnElement="startevent1" id="BPMNShape_startevent1">
        <omgdc:Bounds height="35.0" width="35.0" x="0.0" y="250.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="supplier_add" id="BPMNShape_supplier_add">
        <omgdc:Bounds height="55.0" width="105.0" x="80.0" y="240.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="due_diligence_allocation" id="BPMNShape_due_diligence_allocation">
        <omgdc:Bounds height="55.0" width="105.0" x="350.0" y="241.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="exclusivegateway1" id="BPMNShape_exclusivegateway1">
        <omgdc:Bounds height="40.0" width="40.0" x="500.0" y="249.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="due_diligence_confirm" id="BPMNShape_due_diligence_confirm">
        <omgdc:Bounds height="55.0" width="105.0" x="468.0" y="460.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="first_review" id="BPMNShape_first_review">
        <omgdc:Bounds height="55.0" width="105.0" x="585.0" y="242.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="second_review" id="BPMNShape_second_review">
        <omgdc:Bounds height="55.0" width="105.0" x="855.0" y="241.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="endevent1" id="BPMNShape_endevent1">
        <omgdc:Bounds height="35.0" width="35.0" x="738.0" y="371.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="exclusivegateway2" id="BPMNShape_exclusivegateway2">
        <omgdc:Bounds height="40.0" width="40.0" x="1005.0" y="249.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="exclusivegateway3" id="BPMNShape_exclusivegateway3">
        <omgdc:Bounds height="40.0" width="40.0" x="230.0" y="248.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="due_diligence_reservation" id="BPMNShape_due_diligence_reservation">
        <omgdc:Bounds height="55.0" width="105.0" x="1130.0" y="404.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="exclusivegateway4" id="BPMNShape_exclusivegateway4">
        <omgdc:Bounds height="40.0" width="40.0" x="370.0" y="467.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="endevent2" id="BPMNShape_endevent2">
        <omgdc:Bounds height="35.0" width="35.0" x="373.0" y="371.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="video_due_diligence" id="BPMNShape_video_due_diligence">
        <omgdc:Bounds height="55.0" width="105.0" x="198.0" y="460.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="exclusivegateway5" id="BPMNShape_exclusivegateway5">
        <omgdc:Bounds height="40.0" width="40.0" x="735.0" y="250.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge bpmnElement="flow1" id="BPMNEdge_flow1">
        <omgdi:waypoint x="35.0" y="267.0"></omgdi:waypoint>
        <omgdi:waypoint x="80.0" y="267.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow3" id="BPMNEdge_flow3">
        <omgdi:waypoint x="455.0" y="268.0"></omgdi:waypoint>
        <omgdi:waypoint x="500.0" y="269.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow5" id="BPMNEdge_flow5">
        <omgdi:waypoint x="540.0" y="269.0"></omgdi:waypoint>
        <omgdi:waypoint x="585.0" y="269.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="14.0" width="24.0" x="539.0" y="250.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow8" id="BPMNEdge_flow8">
        <omgdi:waypoint x="960.0" y="268.0"></omgdi:waypoint>
        <omgdi:waypoint x="1005.0" y="269.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow9" id="BPMNEdge_flow9">
        <omgdi:waypoint x="1025.0" y="249.0"></omgdi:waypoint>
        <omgdi:waypoint x="1024.0" y="77.0"></omgdi:waypoint>
        <omgdi:waypoint x="905.0" y="77.0"></omgdi:waypoint>
        <omgdi:waypoint x="783.0" y="77.0"></omgdi:waypoint>
        <omgdi:waypoint x="132.0" y="77.0"></omgdi:waypoint>
        <omgdi:waypoint x="132.0" y="240.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="14.0" width="24.0" x="620.0" y="60.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow10" id="BPMNEdge_flow10">
        <omgdi:waypoint x="185.0" y="267.0"></omgdi:waypoint>
        <omgdi:waypoint x="230.0" y="268.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow11" id="BPMNEdge_flow11">
        <omgdi:waypoint x="270.0" y="268.0"></omgdi:waypoint>
        <omgdi:waypoint x="350.0" y="268.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="14.0" width="48.0" x="279.0" y="250.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow12" id="BPMNEdge_flow12">
        <omgdi:waypoint x="250.0" y="248.0"></omgdi:waypoint>
        <omgdi:waypoint x="250.0" y="147.0"></omgdi:waypoint>
        <omgdi:waypoint x="787.0" y="147.0"></omgdi:waypoint>
        <omgdi:waypoint x="907.0" y="147.0"></omgdi:waypoint>
        <omgdi:waypoint x="907.0" y="241.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="14.0" width="36.0" x="500.0" y="131.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow14" id="BPMNEdge_flow14">
        <omgdi:waypoint x="1045.0" y="269.0"></omgdi:waypoint>
        <omgdi:waypoint x="1182.0" y="269.0"></omgdi:waypoint>
        <omgdi:waypoint x="1182.0" y="404.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="14.0" width="60.0" x="1139.0" y="249.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow15" id="BPMNEdge_flow15">
        <omgdi:waypoint x="1025.0" y="289.0"></omgdi:waypoint>
        <omgdi:waypoint x="1024.0" y="388.0"></omgdi:waypoint>
        <omgdi:waypoint x="904.0" y="388.0"></omgdi:waypoint>
        <omgdi:waypoint x="773.0" y="388.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="14.0" width="48.0" x="931.0" y="369.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow20" id="BPMNEdge_flow20">
        <omgdi:waypoint x="1182.0" y="459.0"></omgdi:waypoint>
        <omgdi:waypoint x="1182.0" y="487.0"></omgdi:waypoint>
        <omgdi:waypoint x="573.0" y="487.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow21" id="BPMNEdge_flow21">
        <omgdi:waypoint x="468.0" y="487.0"></omgdi:waypoint>
        <omgdi:waypoint x="410.0" y="487.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow22" id="BPMNEdge_flow22">
        <omgdi:waypoint x="390.0" y="467.0"></omgdi:waypoint>
        <omgdi:waypoint x="390.0" y="406.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="14.0" width="36.0" x="390.0" y="431.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow23" id="BPMNEdge_flow23">
        <omgdi:waypoint x="370.0" y="487.0"></omgdi:waypoint>
        <omgdi:waypoint x="303.0" y="487.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="14.0" width="24.0" x="331.0" y="467.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow24" id="BPMNEdge_flow24">
        <omgdi:waypoint x="250.0" y="460.0"></omgdi:waypoint>
        <omgdi:waypoint x="250.0" y="388.0"></omgdi:waypoint>
        <omgdi:waypoint x="340.0" y="388.0"></omgdi:waypoint>
        <omgdi:waypoint x="373.0" y="388.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow25" id="BPMNEdge_flow25">
        <omgdi:waypoint x="690.0" y="269.0"></omgdi:waypoint>
        <omgdi:waypoint x="735.0" y="270.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow26" id="BPMNEdge_flow26">
        <omgdi:waypoint x="755.0" y="290.0"></omgdi:waypoint>
        <omgdi:waypoint x="755.0" y="371.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="14.0" width="24.0" x="760.0" y="319.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow27" id="BPMNEdge_flow27">
        <omgdi:waypoint x="775.0" y="270.0"></omgdi:waypoint>
        <omgdi:waypoint x="855.0" y="268.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="14.0" width="24.0" x="800.0" y="250.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow30" id="BPMNEdge_flow30">
        <omgdi:waypoint x="520.0" y="289.0"></omgdi:waypoint>
        <omgdi:waypoint x="521.0" y="433.0"></omgdi:waypoint>
        <omgdi:waypoint x="1062.0" y="433.0"></omgdi:waypoint>
        <omgdi:waypoint x="1130.0" y="431.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="14.0" width="100.0" x="588.0" y="417.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</definitions>