<?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:flowable="http://flowable.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:bproc="http://schemas.haulmont.com/bproc/bpmn" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.flowable.org/processdef">
  <process id="process" name="Process" isExecutable="true">
    <startEvent id="startEvent1">
      <extensionElements>
        <bproc:formData type="no-form" />
      </extensionElements>
      <outgoing>SequenceFlow_024qx4k</outgoing>
    </startEvent>
    <sequenceFlow id="SequenceFlow_024qx4k" sourceRef="startEvent1" targetRef="Task_0wo2sz0" />
    <userTask id="Task_0wo2sz0" name="firstTaskMainProcess" flowable:candidateUsers="60885987-1b61-4247-94c7-dff348347f93" bproc:candidateUsersValue="60885987-1b61-4247-94c7-dff348347f93">
      <extensionElements>
        <bproc:formData type="no-form" />
      </extensionElements>
      <incoming>SequenceFlow_024qx4k</incoming>
      <outgoing>SequenceFlow_0qmsjl9</outgoing>
    </userTask>
    <sequenceFlow id="SequenceFlow_0qmsjl9" sourceRef="Task_0wo2sz0" targetRef="Task_1osjfmd" />
    <subProcess id="Task_1osjfmd" name="subProcess">
      <incoming>SequenceFlow_0qmsjl9</incoming>
      <startEvent id="StartEvent_04qmyr5">
        <outgoing>SequenceFlow_1gzu5mf</outgoing>
      </startEvent>
      <sequenceFlow id="SequenceFlow_1gzu5mf" sourceRef="StartEvent_04qmyr5" targetRef="Task_1cx7w5n" />
      <userTask id="Task_1cx7w5n" name="taskInSubProcess" flowable:candidateUsers="60885987-1b61-4247-94c7-dff348347f93" bproc:candidateUsersValue="60885987-1b61-4247-94c7-dff348347f93">
        <extensionElements>
          <bproc:formData type="no-form" />
        </extensionElements>
        <incoming>SequenceFlow_1gzu5mf</incoming>
        <outgoing>SequenceFlow_0wuear6</outgoing>
      </userTask>
      <endEvent id="EndEvent_0wkicmf">
        <incoming>SequenceFlow_0wuear6</incoming>
      </endEvent>
      <sequenceFlow id="SequenceFlow_0wuear6" sourceRef="Task_1cx7w5n" targetRef="EndEvent_0wkicmf" />
    </subProcess>
    <boundaryEvent id="BoundaryEvent_19t4eto" cancelActivity="false" attachedToRef="Task_1osjfmd">
      <outgoing>SequenceFlow_1chvwis</outgoing>
      <timerEventDefinition>
        <timeDuration xsi:type="tFormalExpression">PT1M</timeDuration>
      </timerEventDefinition>
    </boundaryEvent>
    <sequenceFlow id="SequenceFlow_1chvwis" sourceRef="BoundaryEvent_19t4eto" targetRef="Task_1gz0k1e" />
    <userTask id="Task_1gz0k1e" name="decisionTask" flowable:candidateUsers="60885987-1b61-4247-94c7-dff348347f93" bproc:candidateUsersValue="60885987-1b61-4247-94c7-dff348347f93">
      <extensionElements>
        <bproc:formData type="input-dialog" openMode="DIALOG">
          <bproc:formOutcomes>
            <bproc:formOutcome id="interruptSubProcess" caption="Interrupt sub process?" />
            <bproc:formOutcome id="resumeUsualFlow" caption="Resume usual flow" />
          </bproc:formOutcomes>
        </bproc:formData>
      </extensionElements>
      <incoming>SequenceFlow_1chvwis</incoming>
      <outgoing>SequenceFlow_0bbl6k4</outgoing>
    </userTask>
    <exclusiveGateway id="ExclusiveGateway_08y690b">
      <incoming>SequenceFlow_0bbl6k4</incoming>
      <outgoing>SequenceFlow_0aoubqi</outgoing>
      <outgoing>SequenceFlow_1rnf6ho</outgoing>
    </exclusiveGateway>
    <sequenceFlow id="SequenceFlow_0bbl6k4" sourceRef="Task_1gz0k1e" targetRef="ExclusiveGateway_08y690b" />
    <sequenceFlow id="SequenceFlow_0aoubqi" sourceRef="ExclusiveGateway_08y690b" targetRef="Task_0ae70yn">
      <extensionElements>
        <bproc:conditionDetails conditionSource="userTaskOutcome" conditionType="anyoneCompleted" userTaskId="Task_1gz0k1e" userTaskOutcome="interruptSubProcess" />
      </extensionElements>
      <conditionExpression xsi:type="tFormalExpression">${execution.getVariable('Task_1gz0k1e_result') != null &amp;&amp; bproc_UserTaskResults.containsOutcome(execution.getVariable('Task_1gz0k1e_result'), 'interruptSubProcess')}</conditionExpression>
    </sequenceFlow>
    <endEvent id="EndEvent_0hiuogj">
      <incoming>SequenceFlow_1rnf6ho</incoming>
    </endEvent>
    <sequenceFlow id="SequenceFlow_1rnf6ho" sourceRef="ExclusiveGateway_08y690b" targetRef="EndEvent_0hiuogj">
      <extensionElements>
        <bproc:conditionDetails conditionSource="userTaskOutcome" conditionType="anyoneCompleted" userTaskId="Task_1gz0k1e" userTaskOutcome="resumeUsualFlow" />
      </extensionElements>
      <conditionExpression xsi:type="tFormalExpression">${execution.getVariable('Task_1gz0k1e_result') != null &amp;&amp; bproc_UserTaskResults.containsOutcome(execution.getVariable('Task_1gz0k1e_result'), 'resumeUsualFlow')}</conditionExpression>
    </sequenceFlow>
    <endEvent id="EndEvent_1gugrbl">
      <incoming>SequenceFlow_0dvoil3</incoming>
    </endEvent>
    <sequenceFlow id="SequenceFlow_0dvoil3" sourceRef="Task_0ae70yn" targetRef="EndEvent_1gugrbl" />
    <serviceTask id="Task_0ae70yn" name="interruptSubProcess" flowable:delegateExpression="${interruptSubProcessJavaDelegate}" bproc:taskType="delegateExpression">
      <extensionElements>
        <flowable:field name="subProcessId">
          <flowable:string>Task_1osjfmd</flowable:string>
        </flowable:field>
      </extensionElements>
      <incoming>SequenceFlow_0aoubqi</incoming>
      <outgoing>SequenceFlow_0dvoil3</outgoing>
    </serviceTask>
  </process>
  <bpmndi:BPMNDiagram id="BPMNDiagram_process">
    <bpmndi:BPMNPlane id="BPMNPlane_process" bpmnElement="process">
      <bpmndi:BPMNShape id="BPMNShape_startEvent1" bpmnElement="startEvent1">
        <omgdc:Bounds x="150" y="150" width="30" height="30" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="SequenceFlow_024qx4k_di" bpmnElement="SequenceFlow_024qx4k">
        <omgdi:waypoint x="180" y="165" />
        <omgdi:waypoint x="421" y="165" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="UserTask_1g5dicy_di" bpmnElement="Task_0wo2sz0">
        <omgdc:Bounds x="421" y="125" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="SequenceFlow_0qmsjl9_di" bpmnElement="SequenceFlow_0qmsjl9">
        <omgdi:waypoint x="471" y="205" />
        <omgdi:waypoint x="471" y="331" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="SubProcess_1s5hzah_di" bpmnElement="Task_1osjfmd" isExpanded="true">
        <omgdc:Bounds x="296" y="331" width="350" height="200" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="BoundaryEvent_1xqbabp_di" bpmnElement="BoundaryEvent_19t4eto">
        <omgdc:Bounds x="628" y="396" width="36" height="36" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="SequenceFlow_1chvwis_di" bpmnElement="SequenceFlow_1chvwis">
        <omgdi:waypoint x="664" y="414" />
        <omgdi:waypoint x="714" y="414" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="UserTask_02lajm9_di" bpmnElement="Task_1gz0k1e">
        <omgdc:Bounds x="714" y="374" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="ExclusiveGateway_08y690b_di" bpmnElement="ExclusiveGateway_08y690b" isMarkerVisible="true">
        <omgdc:Bounds x="739" y="636" width="50" height="50" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="SequenceFlow_0bbl6k4_di" bpmnElement="SequenceFlow_0bbl6k4">
        <omgdi:waypoint x="764" y="454" />
        <omgdi:waypoint x="764" y="636" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="SequenceFlow_0aoubqi_di" bpmnElement="SequenceFlow_0aoubqi">
        <omgdi:waypoint x="764" y="686" />
        <omgdi:waypoint x="764" y="746" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="EndEvent_0hiuogj_di" bpmnElement="EndEvent_0hiuogj">
        <omgdc:Bounds x="966" y="643" width="36" height="36" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="SequenceFlow_1rnf6ho_di" bpmnElement="SequenceFlow_1rnf6ho">
        <omgdi:waypoint x="789" y="661" />
        <omgdi:waypoint x="966" y="661" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="EndEvent_1gugrbl_di" bpmnElement="EndEvent_1gugrbl">
        <omgdc:Bounds x="966" y="768" width="36" height="36" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="SequenceFlow_0dvoil3_di" bpmnElement="SequenceFlow_0dvoil3">
        <omgdi:waypoint x="814" y="786" />
        <omgdi:waypoint x="966" y="786" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="StartEvent_04qmyr5_di" bpmnElement="StartEvent_04qmyr5">
        <omgdc:Bounds x="322" y="407" width="36" height="36" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="SequenceFlow_1gzu5mf_di" bpmnElement="SequenceFlow_1gzu5mf">
        <omgdi:waypoint x="358" y="425" />
        <omgdi:waypoint x="408" y="425" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="UserTask_09544pd_di" bpmnElement="Task_1cx7w5n">
        <omgdc:Bounds x="408" y="385" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="EndEvent_0wkicmf_di" bpmnElement="EndEvent_0wkicmf">
        <omgdc:Bounds x="558" y="407" width="36" height="36" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="SequenceFlow_0wuear6_di" bpmnElement="SequenceFlow_0wuear6">
        <omgdi:waypoint x="508" y="425" />
        <omgdi:waypoint x="558" y="425" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="ServiceTask_0fjne0u_di" bpmnElement="Task_0ae70yn">
        <omgdc:Bounds x="714" y="746" width="100" height="80" />
      </bpmndi:BPMNShape>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</definitions>
