<?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="reserveInvoice" name="预约开票审批流程" isExecutable="true">
    <startEvent id="start" name="开始" activiti:initiator="${applyUserId}"></startEvent>
    <userTask id="yhzgtask" name="用户主管签字确认" activiti:assignee="#{yhzgusers}"></userTask>
    <userTask id="zzzgtask" name="装置主管签字确认" activiti:assignee="#{zzzgusers}"></userTask>
    <sequenceFlow id="flow2" sourceRef="yhzgtask" targetRef="zzzgtask"></sequenceFlow>
    <userTask id="zzgcstask" name="装置工程师签字确认" activiti:assignee="#{zzgcsusers}"></userTask>
    <userTask id="zzjltask" name="装置经理签字确认" activiti:assignee="#{zzjlusers}"></userTask>
    <userTask id="confirmtask" name="各班班长、开票人员确认、整合信息关联至CTS系统" activiti:assignee="#{bzusers}"></userTask>
    <sequenceFlow id="flow11" sourceRef="zzjltask" targetRef="confirmtask"></sequenceFlow>
    <endEvent id="end" name="结束"></endEvent>
    <sequenceFlow id="flow12" sourceRef="confirmtask" targetRef="end"></sequenceFlow>
    <sequenceFlow id="flow13" sourceRef="start" targetRef="yhzgtask"></sequenceFlow>
    <exclusiveGateway id="istoday" name="作业开始时间是否为预约当天"></exclusiveGateway>
    <sequenceFlow id="flow18" sourceRef="zzzgtask" targetRef="istoday"></sequenceFlow>
    <sequenceFlow id="flow19" name="是" sourceRef="istoday" targetRef="zzgcstask">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${message=='是'}]]></conditionExpression>
    </sequenceFlow>
    <exclusiveGateway id="isspecial" name="是否涉及特技动火、受限空间"></exclusiveGateway>
    <sequenceFlow id="flow20" name="否" sourceRef="istoday" targetRef="isspecial">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${message=='否'}]]></conditionExpression>
    </sequenceFlow>
    <sequenceFlow id="flow21" name="否" sourceRef="isspecial" targetRef="confirmtask">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${message=='否'}]]></conditionExpression>
    </sequenceFlow>
    <sequenceFlow id="flow22" name="是" sourceRef="isspecial" targetRef="zzjltask">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${message=='是'}]]></conditionExpression>
    </sequenceFlow>
    <sequenceFlow id="flow23" sourceRef="zzgcstask" targetRef="isspecial"></sequenceFlow>
  </process>
  <bpmndi:BPMNDiagram id="BPMNDiagram_reserveInvoice">
    <bpmndi:BPMNPlane bpmnElement="reserveInvoice" id="BPMNPlane_reserveInvoice">
      <bpmndi:BPMNShape bpmnElement="start" id="BPMNShape_start">
        <omgdc:Bounds height="35.0" width="35.0" x="350.0" y="10.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="yhzgtask" id="BPMNShape_yhzgtask">
        <omgdc:Bounds height="55.0" width="145.0" x="295.0" y="90.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="zzzgtask" id="BPMNShape_zzzgtask">
        <omgdc:Bounds height="55.0" width="145.0" x="295.0" y="180.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="zzgcstask" id="BPMNShape_zzgcstask">
        <omgdc:Bounds height="71.0" width="136.0" x="590.0" y="270.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="zzjltask" id="BPMNShape_zzjltask">
        <omgdc:Bounds height="71.0" width="136.0" x="50.0" y="390.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="confirmtask" id="BPMNShape_confirmtask">
        <omgdc:Bounds height="71.0" width="145.0" x="295.0" y="510.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="end" id="BPMNShape_end">
        <omgdc:Bounds height="35.0" width="35.0" x="350.0" y="620.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="istoday" id="BPMNShape_istoday">
        <omgdc:Bounds height="40.0" width="40.0" x="347.0" y="285.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="isspecial" id="BPMNShape_isspecial">
        <omgdc:Bounds height="40.0" width="40.0" x="347.0" y="405.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge bpmnElement="flow2" id="BPMNEdge_flow2">
        <omgdi:waypoint x="367.0" y="145.0"></omgdi:waypoint>
        <omgdi:waypoint x="367.0" y="180.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow11" id="BPMNEdge_flow11">
        <omgdi:waypoint x="118.0" y="461.0"></omgdi:waypoint>
        <omgdi:waypoint x="118.0" y="545.0"></omgdi:waypoint>
        <omgdi:waypoint x="295.0" y="545.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow12" id="BPMNEdge_flow12">
        <omgdi:waypoint x="367.0" y="581.0"></omgdi:waypoint>
        <omgdi:waypoint x="367.0" y="620.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow13" id="BPMNEdge_flow13">
        <omgdi:waypoint x="367.0" y="45.0"></omgdi:waypoint>
        <omgdi:waypoint x="367.0" y="90.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow18" id="BPMNEdge_flow18">
        <omgdi:waypoint x="367.0" y="235.0"></omgdi:waypoint>
        <omgdi:waypoint x="367.0" y="285.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow19" id="BPMNEdge_flow19">
        <omgdi:waypoint x="387.0" y="305.0"></omgdi:waypoint>
        <omgdi:waypoint x="590.0" y="305.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="14.0" width="100.0" x="387.0" y="305.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow20" id="BPMNEdge_flow20">
        <omgdi:waypoint x="367.0" y="325.0"></omgdi:waypoint>
        <omgdi:waypoint x="367.0" y="405.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="14.0" width="100.0" x="367.0" y="325.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow21" id="BPMNEdge_flow21">
        <omgdi:waypoint x="367.0" y="445.0"></omgdi:waypoint>
        <omgdi:waypoint x="367.0" y="510.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="14.0" width="100.0" x="367.0" y="445.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow22" id="BPMNEdge_flow22">
        <omgdi:waypoint x="347.0" y="425.0"></omgdi:waypoint>
        <omgdi:waypoint x="186.0" y="425.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="14.0" width="100.0" x="261.0" y="432.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow23" id="BPMNEdge_flow23">
        <omgdi:waypoint x="658.0" y="341.0"></omgdi:waypoint>
        <omgdi:waypoint x="657.0" y="425.0"></omgdi:waypoint>
        <omgdi:waypoint x="387.0" y="425.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</definitions>
