<?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-with-file-passing" name="Process-with-file-passing" isExecutable="true">
    <startEvent id="startEvent1">
      <extensionElements>
        <bproc:formData type="no-form" />
      </extensionElements>
      <outgoing>SequenceFlow_1v1arbt</outgoing>
    </startEvent>
    <sequenceFlow id="SequenceFlow_1v1arbt" sourceRef="startEvent1" targetRef="Task_19xey81" />
    <userTask id="Task_19xey81" name="sendToApproveTask" flowable:candidateUsers="60885987-1b61-4247-94c7-dff348347f93" bproc:candidateUsersValue="60885987-1b61-4247-94c7-dff348347f93">
      <extensionElements>
        <bproc:formData type="input-dialog" openMode="DIALOG">
          <bproc:formFields>
            <bproc:formField id="fileToApprove" caption="File to approve" type="file" editable="true" required="true" />
          </bproc:formFields>
        </bproc:formData>
      </extensionElements>
      <incoming>SequenceFlow_1v1arbt</incoming>
      <outgoing>SequenceFlow_11w0i0h</outgoing>
    </userTask>
    <sequenceFlow id="SequenceFlow_11w0i0h" sourceRef="Task_19xey81" targetRef="Task_0owprfr" />
    <userTask id="Task_0owprfr" name="approveOrRejectTask" flowable:candidateUsers="83a3dc3e-2c2b-5922-ea49-b8b01003053f" bproc:candidateUsersValue="83a3dc3e-2c2b-5922-ea49-b8b01003053f">
      <extensionElements>
        <bproc:formData type="input-dialog" openMode="DIALOG">
          <bproc:formFields>
            <bproc:formField id="fileToApprove" caption="File to approve" type="file" editable="true" required="false" />
          </bproc:formFields>
          <bproc:formOutcomes>
            <bproc:formOutcome id="approve" caption="Approve" />
            <bproc:formOutcome id="reject" caption="Reject" />
          </bproc:formOutcomes>
        </bproc:formData>
      </extensionElements>
      <incoming>SequenceFlow_11w0i0h</incoming>
      <outgoing>SequenceFlow_1e15uy7</outgoing>
    </userTask>
    <exclusiveGateway id="ExclusiveGateway_13poc6e">
      <incoming>SequenceFlow_1e15uy7</incoming>
      <outgoing>SequenceFlow_09fhrb9</outgoing>
      <outgoing>SequenceFlow_1ti23ky</outgoing>
    </exclusiveGateway>
    <sequenceFlow id="SequenceFlow_1e15uy7" sourceRef="Task_0owprfr" targetRef="ExclusiveGateway_13poc6e" />
    <endEvent id="EndEvent_1y3cek3">
      <incoming>SequenceFlow_09fhrb9</incoming>
    </endEvent>
    <sequenceFlow id="SequenceFlow_09fhrb9" sourceRef="ExclusiveGateway_13poc6e" targetRef="EndEvent_1y3cek3">
      <extensionElements>
        <bproc:conditionDetails conditionSource="userTaskOutcome" conditionType="anyoneCompleted" userTaskId="Task_0owprfr" userTaskOutcome="approve" />
      </extensionElements>
      <conditionExpression xsi:type="tFormalExpression">${execution.getVariable('Task_0owprfr_result') != null &amp;&amp; bproc_UserTaskResults.containsOutcome(execution.getVariable('Task_0owprfr_result'), 'approve')}</conditionExpression>
    </sequenceFlow>
    <sequenceFlow id="SequenceFlow_1ti23ky" sourceRef="ExclusiveGateway_13poc6e" targetRef="EndEvent_0vkxaax">
      <extensionElements>
        <bproc:conditionDetails conditionSource="userTaskOutcome" conditionType="anyoneCompleted" userTaskId="Task_0owprfr" userTaskOutcome="reject" />
      </extensionElements>
      <conditionExpression xsi:type="tFormalExpression">${execution.getVariable('Task_0owprfr_result') != null &amp;&amp; bproc_UserTaskResults.containsOutcome(execution.getVariable('Task_0owprfr_result'), 'reject')}</conditionExpression>
    </sequenceFlow>
    <endEvent id="EndEvent_0vkxaax">
      <incoming>SequenceFlow_1ti23ky</incoming>
      <terminateEventDefinition />
    </endEvent>
  </process>
  <bpmndi:BPMNDiagram id="BPMNDiagram_process">
    <bpmndi:BPMNPlane id="BPMNPlane_process" bpmnElement="process-with-file-passing">
      <bpmndi:BPMNShape id="BPMNShape_startEvent1" bpmnElement="startEvent1">
        <omgdc:Bounds x="150" y="150" width="30" height="30" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="SequenceFlow_1v1arbt_di" bpmnElement="SequenceFlow_1v1arbt">
        <omgdi:waypoint x="180" y="165" />
        <omgdi:waypoint x="230" y="165" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="UserTask_1rp0tgh_di" bpmnElement="Task_19xey81">
        <omgdc:Bounds x="230" y="125" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="SequenceFlow_11w0i0h_di" bpmnElement="SequenceFlow_11w0i0h">
        <omgdi:waypoint x="330" y="165" />
        <omgdi:waypoint x="380" y="165" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="UserTask_01ldspx_di" bpmnElement="Task_0owprfr">
        <omgdc:Bounds x="380" y="125" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="ExclusiveGateway_13poc6e_di" bpmnElement="ExclusiveGateway_13poc6e" isMarkerVisible="true">
        <omgdc:Bounds x="530" y="140" width="50" height="50" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="SequenceFlow_1e15uy7_di" bpmnElement="SequenceFlow_1e15uy7">
        <omgdi:waypoint x="480" y="165" />
        <omgdi:waypoint x="530" y="165" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="EndEvent_1y3cek3_di" bpmnElement="EndEvent_1y3cek3">
        <omgdc:Bounds x="630" y="147" width="36" height="36" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="SequenceFlow_09fhrb9_di" bpmnElement="SequenceFlow_09fhrb9">
        <omgdi:waypoint x="580" y="165" />
        <omgdi:waypoint x="630" y="165" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="SequenceFlow_1ti23ky_di" bpmnElement="SequenceFlow_1ti23ky">
        <omgdi:waypoint x="555" y="190" />
        <omgdi:waypoint x="555" y="275" />
        <omgdi:waypoint x="630" y="275" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="EndEvent_1rkcshn_di" bpmnElement="EndEvent_0vkxaax">
        <omgdc:Bounds x="630" y="257" width="36" height="36" />
      </bpmndi:BPMNShape>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</definitions>
