<?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: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="process" name="process1" isExecutable="true">
    <startEvent id="start" name="开始"></startEvent>
    <endEvent id="end" name="结束"></endEvent>
    <userTask id="act1" name="环节1" activiti:assignee="kermit"></userTask>
    <userTask id="act2" name="环节2" activiti:assignee="fozzie"></userTask>
    <userTask id="act_back3" name="回撤环节" activiti:assignee="lw"></userTask>
    <sequenceFlow id="sid-C99CB46B-91C7-43ED-B0D1-6CD1651A2A05" sourceRef="act2" targetRef="end"></sequenceFlow>
    <sequenceFlow id="sid-06A61A6A-4C63-4E55-85BB-9D7554A65192" sourceRef="start" targetRef="act1"></sequenceFlow>
    <sequenceFlow id="send_huiche" name="送回撤环节" sourceRef="act1" targetRef="act_back3"></sequenceFlow>
    <sequenceFlow id="send_act2" name="送环节2" sourceRef="act_back3" targetRef="act2">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${select == 'act2'}]]></conditionExpression>
    </sequenceFlow>
    <sequenceFlow id="back_act1" name="回撤环节返回环节1" sourceRef="act_back3" targetRef="act1">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${select == 'act1'}]]></conditionExpression>
    </sequenceFlow>
    <sequenceFlow id="back_2" name="环节2返回回撤环节" sourceRef="act2" targetRef="act_back3"></sequenceFlow>
    <scriptTask id="scripttask1" name="Script Task" scriptFormat="groovy" activiti:autoStoreVariables="true"></scriptTask>
    <serviceTask id="servicetask1" name="Service Task"></serviceTask>
  </process>
  <bpmndi:BPMNDiagram id="BPMNDiagram_process">
    <bpmndi:BPMNPlane bpmnElement="process" id="BPMNPlane_process">
      <bpmndi:BPMNShape bpmnElement="act_back3" id="BPMNShape_act_back3">
        <omgdc:Bounds height="80.0" width="100.0" x="200.0" y="288.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="act1" id="BPMNShape_act1">
        <omgdc:Bounds height="80.0" width="100.0" x="170.0" y="51.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="start" id="BPMNShape_start">
        <omgdc:Bounds height="35.0" width="35.0" x="60.0" y="96.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="act2" id="BPMNShape_act2">
        <omgdc:Bounds height="80.0" width="100.0" x="442.0" y="96.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="end" id="BPMNShape_end">
        <omgdc:Bounds height="35.0" width="35.0" x="390.0" y="30.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="scripttask1" id="BPMNShape_scripttask1">
        <omgdc:Bounds height="55.0" width="105.0" x="299.0" y="86.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="servicetask1" id="BPMNShape_servicetask1">
        <omgdc:Bounds height="55.0" width="105.0" x="580.0" y="200.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge bpmnElement="sid-06A61A6A-4C63-4E55-85BB-9D7554A65192" id="BPMNEdge_sid-06A61A6A-4C63-4E55-85BB-9D7554A65192">
        <omgdi:waypoint x="95.0" y="113.0"></omgdi:waypoint>
        <omgdi:waypoint x="170.0" y="91.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="send_huiche" id="BPMNEdge_send_huiche">
        <omgdi:waypoint x="220.0" y="131.0"></omgdi:waypoint>
        <omgdi:waypoint x="281.0" y="211.0"></omgdi:waypoint>
        <omgdi:waypoint x="250.0" y="288.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="14.0" width="60.0" x="10.0" y="0.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sid-C99CB46B-91C7-43ED-B0D1-6CD1651A2A05" id="BPMNEdge_sid-C99CB46B-91C7-43ED-B0D1-6CD1651A2A05">
        <omgdi:waypoint x="492.0" y="96.0"></omgdi:waypoint>
        <omgdi:waypoint x="407.0" y="65.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="back_2" id="BPMNEdge_back_2">
        <omgdi:waypoint x="492.0" y="176.0"></omgdi:waypoint>
        <omgdi:waypoint x="470.0" y="325.0"></omgdi:waypoint>
        <omgdi:waypoint x="300.0" y="328.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="42.0" width="100.0" x="10.0" y="0.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="send_act2" id="BPMNEdge_send_act2">
        <omgdi:waypoint x="250.0" y="288.0"></omgdi:waypoint>
        <omgdi:waypoint x="492.0" y="176.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="14.0" width="42.0" x="10.0" y="0.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="back_act1" id="BPMNEdge_back_act1">
        <omgdi:waypoint x="250.0" y="288.0"></omgdi:waypoint>
        <omgdi:waypoint x="64.0" y="244.0"></omgdi:waypoint>
        <omgdi:waypoint x="220.0" y="131.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="42.0" width="100.0" x="10.0" y="0.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</definitions>