<?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="majorProcess" name="重大隐患审批流程" isExecutable="true">
    <startEvent id="startevent2" name="Start"></startEvent>
    <endEvent id="endevent1" name="End"></endEvent>
    <userTask id="confirm" name="确认" activiti:assignee="${confirm}">
      <multiInstanceLoopCharacteristics isSequential="false" activiti:collection="${confirmlist}" activiti:elementVariable="confirm"></multiInstanceLoopCharacteristics>
    </userTask>
    <sequenceFlow id="flow1" sourceRef="startevent2" targetRef="confirm"></sequenceFlow>
    <userTask id="executor" name="执行人" activiti:assignee="#{executor}"></userTask>
    <sequenceFlow id="flow2" sourceRef="confirm" targetRef="executor">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${submitType == 1}]]></conditionExpression>
    </sequenceFlow>
    <userTask id="verification" name="验证人" activiti:assignee="#{verification}"></userTask>
    <sequenceFlow id="flow3" sourceRef="executor" targetRef="verification">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${submitType == 1}]]></conditionExpression>
    </sequenceFlow>
    <sequenceFlow id="flow4" sourceRef="verification" targetRef="endevent1">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${submitType == 1}]]></conditionExpression>
    </sequenceFlow>
    <userTask id="recorder" name="记录人" activiti:assignee="#{recorder}"></userTask>
    <sequenceFlow id="flow5" name="无效" sourceRef="verification" targetRef="recorder">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${submitType == 0}]]></conditionExpression>
    </sequenceFlow>
    <sequenceFlow id="flow6" name="重新确认" sourceRef="recorder" targetRef="confirm">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${submitType == 1}]]></conditionExpression>
    </sequenceFlow>
    <sequenceFlow id="flow7" name="无法执行/逾期" sourceRef="executor" targetRef="recorder">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${submitType == 0}]]></conditionExpression>
    </sequenceFlow>
    <sequenceFlow id="flow8" name="未达标" sourceRef="verification" targetRef="executor">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${submitType == 2}]]></conditionExpression>
    </sequenceFlow>
    <sequenceFlow id="flow9" name="确认不通过" sourceRef="confirm" targetRef="recorder">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${submitType == 0}]]></conditionExpression>
    </sequenceFlow>
  </process>
  <bpmndi:BPMNDiagram id="BPMNDiagram_myProcess">
    <bpmndi:BPMNPlane bpmnElement="myProcess" id="BPMNPlane_myProcess">
      <bpmndi:BPMNShape bpmnElement="startevent2" id="BPMNShape_startevent2">
        <omgdc:Bounds height="41.0" width="41.0" x="150.0" y="240.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="endevent1" id="BPMNShape_endevent1">
        <omgdc:Bounds height="41.0" width="41.0" x="1010.0" y="240.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="confirm" id="BPMNShape_confirm">
        <omgdc:Bounds height="55.0" width="105.0" x="320.0" y="233.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="executor" id="BPMNShape_executor">
        <omgdc:Bounds height="55.0" width="105.0" x="550.0" y="233.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="verification" id="BPMNShape_verification">
        <omgdc:Bounds height="55.0" width="105.0" x="780.0" y="233.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="recorder" id="BPMNShape_recorder">
        <omgdc:Bounds height="55.0" width="105.0" x="320.0" y="389.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge bpmnElement="flow1" id="BPMNEdge_flow1">
        <omgdi:waypoint x="191.0" y="260.0"></omgdi:waypoint>
        <omgdi:waypoint x="320.0" y="260.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow2" id="BPMNEdge_flow2">
        <omgdi:waypoint x="425.0" y="260.0"></omgdi:waypoint>
        <omgdi:waypoint x="550.0" y="260.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow3" id="BPMNEdge_flow3">
        <omgdi:waypoint x="655.0" y="260.0"></omgdi:waypoint>
        <omgdi:waypoint x="780.0" y="260.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow4" id="BPMNEdge_flow4">
        <omgdi:waypoint x="885.0" y="260.0"></omgdi:waypoint>
        <omgdi:waypoint x="1010.0" y="260.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow5" id="BPMNEdge_flow5">
        <omgdi:waypoint x="832.0" y="288.0"></omgdi:waypoint>
        <omgdi:waypoint x="832.0" y="417.0"></omgdi:waypoint>
        <omgdi:waypoint x="425.0" y="416.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="18.0" width="100.0" x="837.0" y="334.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow6" id="BPMNEdge_flow6">
        <omgdi:waypoint x="372.0" y="389.0"></omgdi:waypoint>
        <omgdi:waypoint x="372.0" y="288.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="18.0" width="100.0" x="377.0" y="336.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow7" id="BPMNEdge_flow7">
        <omgdi:waypoint x="602.0" y="288.0"></omgdi:waypoint>
        <omgdi:waypoint x="602.0" y="416.0"></omgdi:waypoint>
        <omgdi:waypoint x="425.0" y="416.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="54.0" width="100.0" x="607.0" y="334.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow8" id="BPMNEdge_flow8">
        <omgdi:waypoint x="832.0" y="233.0"></omgdi:waypoint>
        <omgdi:waypoint x="832.0" y="154.0"></omgdi:waypoint>
        <omgdi:waypoint x="722.0" y="154.0"></omgdi:waypoint>
        <omgdi:waypoint x="602.0" y="154.0"></omgdi:waypoint>
        <omgdi:waypoint x="602.0" y="233.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="18.0" width="100.0" x="690.0" y="131.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow9" id="BPMNEdge_flow9">
        <omgdi:waypoint x="425.0" y="260.0"></omgdi:waypoint>
        <omgdi:waypoint x="474.0" y="261.0"></omgdi:waypoint>
        <omgdi:waypoint x="474.0" y="416.0"></omgdi:waypoint>
        <omgdi:waypoint x="425.0" y="416.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="18.0" width="100.0" x="479.0" y="334.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</definitions>