<?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="callcenter" name="呼叫中心" isExecutable="true">
    <startEvent id="startevent1" name="受理"></startEvent>
    <exclusiveGateway id="exclusivegateway1" name="Exclusive Gateway"></exclusiveGateway>
    <userTask id="usertask5" name="回访处理" activiti:candidateGroups="receiver"></userTask>
    <userTask id="usertask6" name="审查处理" activiti:candidateGroups="monitor"></userTask>
    <sequenceFlow id="flow8" name="处理完成" sourceRef="exclusivegateway1" targetRef="usertask5">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${caseState==5}]]></conditionExpression>
    </sequenceFlow>
    <sequenceFlow id="flow9" name="反馈通过(7)" sourceRef="usertask5" targetRef="usertask6">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${caseState==7}]]></conditionExpression>
    </sequenceFlow>
    <sequenceFlow id="flow10" name="协同派发(6)" sourceRef="usertask5" targetRef="usertask7">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${caseState==6}]]></conditionExpression>
    </sequenceFlow>
    <sequenceFlow id="flow11" name="审查重新办理(6)" sourceRef="usertask6" targetRef="usertask7">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${caseState==6}]]></conditionExpression>
    </sequenceFlow>
    <endEvent id="endevent1" name="结束">
      <extensionElements>
        <activiti:executionListener event="start" class="com.casic.missiles.modular.flowable.handler.ProcessEndExecutionListener"></activiti:executionListener>
      </extensionElements>
    </endEvent>
    <sequenceFlow id="flow14" name="审查归档(4)" sourceRef="usertask6" targetRef="endevent1">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${caseState==4}]]></conditionExpression>
    </sequenceFlow>
    <sequenceFlow id="flow18" name="直接办结(4)" sourceRef="exclusivegateway4" targetRef="endevent1">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${caseState==4}]]></conditionExpression>
    </sequenceFlow>
    <exclusiveGateway id="exclusivegateway4" name="Exclusive Gateway"></exclusiveGateway>
    <userTask id="usertask7" name="流转申请" activiti:candidateGroups="dispatcher"></userTask>
    <sequenceFlow id="flow20" sourceRef="usertask7" targetRef="exclusivegateway1"></sequenceFlow>
    <sequenceFlow id="flow21" name="受理" sourceRef="startevent1" targetRef="usertask12"></sequenceFlow>
    <userTask id="usertask9" name="暂存" activiti:assignee="#{currUserId}" activiti:candidateGroups="receiver,monitor"></userTask>
    <userTask id="usertask10" name="呈报上级" activiti:candidateGroups="monitor"></userTask>
    <sequenceFlow id="flow26" name="暂存(1)" sourceRef="exclusivegateway4" targetRef="usertask9">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${caseState==1}]]></conditionExpression>
    </sequenceFlow>
    <sequenceFlow id="flow27" name="恢复" sourceRef="usertask9" targetRef="exclusivegateway4"></sequenceFlow>
    <sequenceFlow id="flow28" name="呈报上级(3)" sourceRef="exclusivegateway4" targetRef="usertask10">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${caseState==3}]]></conditionExpression>
    </sequenceFlow>
    <sequenceFlow id="flow29" sourceRef="usertask10" targetRef="exclusivegateway4"></sequenceFlow>
    <userTask id="usertask11" name="应急派发" activiti:candidateGroups="emergency"></userTask>
    <sequenceFlow id="flow32" name="反馈结果(4)" sourceRef="usertask11" targetRef="endevent1">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${caseState==4}]]></conditionExpression>
    </sequenceFlow>
    <sequenceFlow id="flow33" name="应急派发(10)" sourceRef="exclusivegateway4" targetRef="usertask11">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${caseState==10}]]></conditionExpression>
    </sequenceFlow>
    <sequenceFlow id="flow34" name="流转申请(6)" sourceRef="exclusivegateway4" targetRef="usertask7">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${caseState==6}]]></conditionExpression>
    </sequenceFlow>
    <userTask id="usertask12" name="受理" activiti:candidateGroups="receiver"></userTask>
    <sequenceFlow id="flow36" sourceRef="usertask12" targetRef="exclusivegateway4"></sequenceFlow>
    <sequenceFlow id="flow37" name="协同完成&amp;不需回访(32)" sourceRef="exclusivegateway1" targetRef="usertask6">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${caseState==7}]]></conditionExpression>
    </sequenceFlow>
    <sequenceFlow id="flow38" name="无效案件(4)" sourceRef="exclusivegateway1" targetRef="endevent1">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${caseState==4}]]></conditionExpression>
    </sequenceFlow>
  </process>
  <bpmndi:BPMNDiagram id="BPMNDiagram_callcenter">
    <bpmndi:BPMNPlane bpmnElement="callcenter" id="BPMNPlane_callcenter">
      <bpmndi:BPMNShape bpmnElement="startevent1" id="BPMNShape_startevent1">
        <omgdc:Bounds height="35.0" width="35.0" x="1.0" y="1.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="exclusivegateway1" id="BPMNShape_exclusivegateway1">
        <omgdc:Bounds height="40.0" width="40.0" x="691.0" y="119.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="usertask5" id="BPMNShape_usertask5">
        <omgdc:Bounds height="55.0" width="105.0" x="372.0" y="582.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="usertask6" id="BPMNShape_usertask6">
        <omgdc:Bounds height="55.0" width="105.0" x="372.0" y="482.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="endevent1" id="BPMNShape_endevent1">
        <omgdc:Bounds height="35.0" width="35.0" x="1071.0" y="122.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="exclusivegateway4" id="BPMNShape_exclusivegateway4">
        <omgdc:Bounds height="40.0" width="40.0" x="171.0" y="119.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="usertask7" id="BPMNShape_usertask7">
        <omgdc:Bounds height="55.0" width="105.0" x="372.0" y="112.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="usertask9" id="BPMNShape_usertask9">
        <omgdc:Bounds height="55.0" width="105.0" x="139.0" y="280.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="usertask10" id="BPMNShape_usertask10">
        <omgdc:Bounds height="55.0" width="105.0" x="290.0" y="191.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="usertask11" id="BPMNShape_usertask11">
        <omgdc:Bounds height="55.0" width="105.0" x="372.0" y="32.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="usertask12" id="BPMNShape_usertask12">
        <omgdc:Bounds height="55.0" width="105.0" x="20.0" y="72.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge bpmnElement="flow8" id="BPMNEdge_flow8">
        <omgdi:waypoint x="711.0" y="159.0"></omgdi:waypoint>
        <omgdi:waypoint x="711.0" y="347.0"></omgdi:waypoint>
        <omgdi:waypoint x="711.0" y="609.0"></omgdi:waypoint>
        <omgdi:waypoint x="477.0" y="609.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="14.0" width="48.0" x="720.0" y="252.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow9" id="BPMNEdge_flow9">
        <omgdi:waypoint x="424.0" y="582.0"></omgdi:waypoint>
        <omgdi:waypoint x="424.0" y="537.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="14.0" width="62.0" x="353.0" y="553.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow10" id="BPMNEdge_flow10">
        <omgdi:waypoint x="372.0" y="609.0"></omgdi:waypoint>
        <omgdi:waypoint x="323.0" y="609.0"></omgdi:waypoint>
        <omgdi:waypoint x="323.0" y="609.0"></omgdi:waypoint>
        <omgdi:waypoint x="323.0" y="400.0"></omgdi:waypoint>
        <omgdi:waypoint x="424.0" y="400.0"></omgdi:waypoint>
        <omgdi:waypoint x="424.0" y="167.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="14.0" width="62.0" x="253.0" y="469.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow11" id="BPMNEdge_flow11">
        <omgdi:waypoint x="424.0" y="482.0"></omgdi:waypoint>
        <omgdi:waypoint x="424.0" y="167.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="14.0" width="86.0" x="331.0" y="443.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow14" id="BPMNEdge_flow14">
        <omgdi:waypoint x="477.0" y="509.0"></omgdi:waypoint>
        <omgdi:waypoint x="1088.0" y="509.0"></omgdi:waypoint>
        <omgdi:waypoint x="1088.0" y="157.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="14.0" width="62.0" x="486.0" y="482.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow18" id="BPMNEdge_flow18">
        <omgdi:waypoint x="191.0" y="119.0"></omgdi:waypoint>
        <omgdi:waypoint x="192.0" y="13.0"></omgdi:waypoint>
        <omgdi:waypoint x="700.0" y="13.0"></omgdi:waypoint>
        <omgdi:waypoint x="1088.0" y="13.0"></omgdi:waypoint>
        <omgdi:waypoint x="1088.0" y="122.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="14.0" width="62.0" x="116.0" y="23.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow20" id="BPMNEdge_flow20">
        <omgdi:waypoint x="477.0" y="139.0"></omgdi:waypoint>
        <omgdi:waypoint x="691.0" y="139.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow21" id="BPMNEdge_flow21">
        <omgdi:waypoint x="18.0" y="36.0"></omgdi:waypoint>
        <omgdi:waypoint x="72.0" y="72.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="14.0" width="24.0" x="34.0" y="19.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow26" id="BPMNEdge_flow26">
        <omgdi:waypoint x="191.0" y="159.0"></omgdi:waypoint>
        <omgdi:waypoint x="191.0" y="280.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="14.0" width="38.0" x="195.0" y="233.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow27" id="BPMNEdge_flow27">
        <omgdi:waypoint x="139.0" y="307.0"></omgdi:waypoint>
        <omgdi:waypoint x="85.0" y="308.0"></omgdi:waypoint>
        <omgdi:waypoint x="85.0" y="139.0"></omgdi:waypoint>
        <omgdi:waypoint x="171.0" y="139.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="14.0" width="24.0" x="62.0" y="220.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow28" id="BPMNEdge_flow28">
        <omgdi:waypoint x="191.0" y="159.0"></omgdi:waypoint>
        <omgdi:waypoint x="190.0" y="218.0"></omgdi:waypoint>
        <omgdi:waypoint x="290.0" y="218.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="14.0" width="62.0" x="172.0" y="190.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow29" id="BPMNEdge_flow29">
        <omgdi:waypoint x="342.0" y="191.0"></omgdi:waypoint>
        <omgdi:waypoint x="191.0" y="159.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow32" id="BPMNEdge_flow32">
        <omgdi:waypoint x="477.0" y="59.0"></omgdi:waypoint>
        <omgdi:waypoint x="1088.0" y="52.0"></omgdi:waypoint>
        <omgdi:waypoint x="1088.0" y="122.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="14.0" width="62.0" x="537.0" y="39.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow33" id="BPMNEdge_flow33">
        <omgdi:waypoint x="191.0" y="119.0"></omgdi:waypoint>
        <omgdi:waypoint x="191.0" y="59.0"></omgdi:waypoint>
        <omgdi:waypoint x="372.0" y="59.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="14.0" width="68.0" x="206.0" y="74.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow34" id="BPMNEdge_flow34">
        <omgdi:waypoint x="211.0" y="139.0"></omgdi:waypoint>
        <omgdi:waypoint x="372.0" y="139.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="14.0" width="62.0" x="272.0" y="139.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow36" id="BPMNEdge_flow36">
        <omgdi:waypoint x="125.0" y="99.0"></omgdi:waypoint>
        <omgdi:waypoint x="191.0" y="104.0"></omgdi:waypoint>
        <omgdi:waypoint x="191.0" y="119.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow37" id="BPMNEdge_flow37">
        <omgdi:waypoint x="711.0" y="159.0"></omgdi:waypoint>
        <omgdi:waypoint x="424.0" y="482.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="42.0" width="100.0" x="564.0" y="232.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow38" id="BPMNEdge_flow38">
        <omgdi:waypoint x="711.0" y="119.0"></omgdi:waypoint>
        <omgdi:waypoint x="710.0" y="89.0"></omgdi:waypoint>
        <omgdi:waypoint x="1063.0" y="89.0"></omgdi:waypoint>
        <omgdi:waypoint x="1088.0" y="122.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="14.0" width="62.0" x="895.0" y="67.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</definitions>