<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" 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:tns="http://www.activiti.org/test" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" expressionLanguage="http://www.w3.org/1999/XPath" id="m1656407819069" name="" targetNamespace="http://www.activiti.org/test" typeLanguage="http://www.w3.org/2001/XMLSchema">
  <process id="myProcess" isClosed="false" isExecutable="true" name="特种设备审核" processType="None">
    <startEvent activiti:initiator="${applyUserId}" id="startevent1" name="开始"/>
    <userTask activiti:assignee="#{wxjlusers}" activiti:exclusive="true" id="wxjlTask" name="装置维修经理">
      <extensionElements>
        <activiti:taskListener delegateExpression="${wxjlTaskCreateListener}" event="create"/>
      </extensionElements>
    </userTask>
    <userTask activiti:assignee="#{gyzjusers}" activiti:exclusive="true" id="gyzjTask" name="工艺总监">
      <extensionElements>
        <activiti:taskListener delegateExpression="${gyzjTaskCreateListener}" event="create"/>
      </extensionElements>
    </userTask>
    <sequenceFlow id="flow1" name="开始" sourceRef="startevent1" targetRef="wxjlTask"/>
    <sequenceFlow id="flow7" name="不通过" sourceRef="wxjlTask" targetRef="endevent2">
      <conditionExpression xsi:type="tFormalExpression">
        <![CDATA[${condition == 0}]]>
      </conditionExpression>
    </sequenceFlow>
    <sequenceFlow id="flow9" name="不通过" sourceRef="gyzjTask" targetRef="endevent2">
      <conditionExpression xsi:type="tFormalExpression">
        <![CDATA[${condition == 0}]]>
      </conditionExpression>
    </sequenceFlow>
    <endEvent id="endevent2" name="审核不通过">
      <extensionElements>
        <activiti:executionListener delegateExpression="${specEndFaileListener}" event="start"/>
      </extensionElements>
    </endEvent>
    <endEvent id="endevent3" name="审核通过">
      <extensionElements>
        <activiti:executionListener delegateExpression="${specEndSucessListener}" event="start"/>
      </extensionElements>
    </endEvent>
    <userTask activiti:assignee="#{ctmusers}" activiti:exclusive="true" id="ctmTask" name="机械维修总监">
      <extensionElements>
        <activiti:taskListener delegateExpression="${ctmTaskCreateListener}" event="create"/>
      </extensionElements>
    </userTask>
    <sequenceFlow id="flow4" name="通过" sourceRef="gyzjTask" targetRef="ctmTask">
      <conditionExpression xsi:type="tFormalExpression">
        <![CDATA[${condition == 1}]]>
      </conditionExpression>
    </sequenceFlow>
    <sequenceFlow id="flow10" name="不通过" sourceRef="ctmTask" targetRef="endevent2">
      <conditionExpression xsi:type="tFormalExpression">
        <![CDATA[${condition == 0}]]>
      </conditionExpression>
    </sequenceFlow>
    <userTask activiti:assignee="#{gyjlusers}" activiti:exclusive="true" id="gyjlTask" name="装置工艺经理">
      <extensionElements>
        <activiti:taskListener delegateExpression="${gyjlTaskCreateListener}" event="create"/>
      </extensionElements>
    </userTask>
    <sequenceFlow id="flow3" name="通过" sourceRef="gyjlTask" targetRef="gyzjTask"/>
    <sequenceFlow id="flow8" name="不通过" sourceRef="gyjlTask" targetRef="endevent2">
      <documentation id="flow8_D_1">
        <![CDATA[${condition == 0}]]>
      </documentation>
      <conditionExpression xsi:type="tFormalExpression">
        <![CDATA[${condition == 0}]]>
      </conditionExpression>
    </sequenceFlow>
    <userTask activiti:assignee="#{zfusers}" activiti:exclusive="true" id="zfhzTask" name="政府回执">
      <extensionElements>
        <activiti:taskListener delegateExpression="${zfhzTaskCreateListener}" event="create"/>
      </extensionElements>
    </userTask>
    <sequenceFlow id="flow5" name="通过" sourceRef="ctmTask" targetRef="zfhzTask">
      <conditionExpression xsi:type="tFormalExpression">
        <![CDATA[${condition == 1}]]>
      </conditionExpression>
    </sequenceFlow>
    <sequenceFlow id="flow6" name="结束" sourceRef="zfhzTask" targetRef="endevent3"/>
    <sequenceFlow id="flow11" name="通过" sourceRef="wxjlTask" targetRef="gyjlTask">
      <conditionExpression xsi:type="tFormalExpression">
        <![CDATA[${condition == 1}]]>
      </conditionExpression>
    </sequenceFlow>
  </process>
  <bpmndi:BPMNDiagram documentation="background=#FFFFFF;count=1;horizontalcount=1;orientation=0;width=842.4;height=1195.2;imageableWidth=832.4;imageableHeight=1185.2;imageableX=5.0;imageableY=5.0" id="Diagram-_1" name="New Diagram">
    <bpmndi:BPMNPlane bpmnElement="myProcess">
      <bpmndi:BPMNShape bpmnElement="startevent1" id="Shape-startevent1">
        <omgdc:Bounds height="32.0" width="32.0" x="80.0" y="28.0"/>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="32.0" width="32.0" x="0.0" y="0.0"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="wxjlTask" id="Shape-wxjlTask">
        <omgdc:Bounds height="55.0" width="105.0" x="180.0" y="25.0"/>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="55.0" width="105.0" x="0.0" y="0.0"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="gyzjTask" id="Shape-gyzjTask">
        <omgdc:Bounds height="55.0" width="105.0" x="490.0" y="25.0"/>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="55.0" width="105.0" x="0.0" y="0.0"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="endevent2" id="Shape-endevent2">
        <omgdc:Bounds height="32.0" width="32.0" x="377.0" y="150.0"/>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="32.0" width="32.0" x="0.0" y="0.0"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="endevent3" id="Shape-endevent3">
        <omgdc:Bounds height="32.0" width="32.0" x="950.0" y="35.0"/>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="32.0" width="32.0" x="0.0" y="0.0"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="ctmTask" id="Shape-ctmTask">
        <omgdc:Bounds height="55.0" width="105.0" x="640.0" y="25.0"/>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="55.0" width="105.0" x="0.0" y="0.0"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="gyjlTask" id="Shape-gyjlTask">
        <omgdc:Bounds height="55.0" width="111.0" x="339.0" y="25.0"/>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="55.0" width="111.0" x="0.0" y="0.0"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="zfhzTask" id="Shape-zfhzTask">
        <omgdc:Bounds height="55.0" width="105.0" x="796.0" y="25.0"/>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="55.0" width="105.0" x="0.0" y="0.0"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge bpmnElement="flow1" id="BPMNEdge_flow1" sourceElement="startevent1" targetElement="wxjlTask">
        <omgdi:waypoint x="112.0" y="44.0"/>
        <omgdi:waypoint x="180.0" y="52.5"/>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="16.0" width="32.0" x="129.0" y="63.0"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow3" id="BPMNEdge_flow3" sourceElement="gyjlTask" targetElement="gyzjTask">
        <omgdi:waypoint x="450.0" y="52.5"/>
        <omgdi:waypoint x="490.0" y="52.5"/>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="16.0" width="32.0" x="448.0" y="62.0"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow4" id="BPMNEdge_flow4" sourceElement="gyzjTask" targetElement="ctmTask">
        <omgdi:waypoint x="595.0" y="52.5"/>
        <omgdi:waypoint x="640.0" y="52.5"/>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="16.0" width="32.0" x="599.0" y="62.0"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow5" id="BPMNEdge_flow5" sourceElement="ctmTask" targetElement="zfhzTask">
        <omgdi:waypoint x="745.0" y="52.5"/>
        <omgdi:waypoint x="796.0" y="52.5"/>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="16.0" width="32.0" x="746.0" y="62.0"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow6" id="BPMNEdge_flow6" sourceElement="zfhzTask" targetElement="endevent3">
        <omgdi:waypoint x="901.0" y="52.5"/>
        <omgdi:waypoint x="950.0" y="51.0"/>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="16.0" width="32.0" x="905.0" y="62.0"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow7" id="BPMNEdge_flow7" sourceElement="wxjlTask" targetElement="endevent2">
        <omgdi:waypoint x="232.0" y="80.0"/>
        <omgdi:waypoint x="232.0" y="167.0"/>
        <omgdi:waypoint x="377.0312805773287" y="167.0"/>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="16.0" width="48.0" x="240.0" y="119.0"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow10" id="BPMNEdge_flow10" sourceElement="ctmTask" targetElement="endevent2">
        <omgdi:waypoint x="692.0" y="80.0"/>
        <omgdi:waypoint x="692.0" y="167.0"/>
        <omgdi:waypoint x="408.9687194226713" y="167.0"/>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="16.0" width="48.0" x="700.0" y="119.0"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow8" id="BPMNEdge_flow8" sourceElement="gyjlTask" targetElement="endevent2">
        <omgdi:waypoint x="393.0" y="80.0"/>
        <omgdi:waypoint x="393.0" y="150.0"/>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="16.0" width="48.0" x="397.0" y="119.0"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow11" id="BPMNEdge_flow11" sourceElement="wxjlTask" targetElement="gyjlTask">
        <omgdi:waypoint x="285.0" y="52.5"/>
        <omgdi:waypoint x="339.0" y="52.5"/>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="16.0" width="32.0" x="285.0" y="52.0"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow9" id="BPMNEdge_flow9" sourceElement="gyzjTask" targetElement="endevent2">
        <omgdi:waypoint x="542.0" y="80.0"/>
        <omgdi:waypoint x="542.0" y="167.0"/>
        <omgdi:waypoint x="408.9687194226713" y="167.0"/>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="16.0" width="48.0" x="547.0" y="119.0"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</definitions>
