<?xml version="1.0" encoding="UTF-8"?>
<bpmn2:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" id="sample-diagram" targetNamespace="http://bpmn.io/schema/bpmn" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd">
  <bpmn2:collaboration id="Collaboration_140p3me">
    <bpmn2:participant id="Participant_1f7oxgn" processRef="Process_1" />
  </bpmn2:collaboration>
  <bpmn2:process id="Process_1" isExecutable="false">
    <bpmn2:startEvent id="StartEvent_1">
      <bpmn2:outgoing>Flow_1u4s7n3</bpmn2:outgoing>
    </bpmn2:startEvent>
    <bpmn2:sequenceFlow id="Flow_1u4s7n3" sourceRef="StartEvent_1" targetRef="Event_1c2n6uf" />
    <bpmn2:intermediateThrowEvent id="Event_1c2n6uf" name="msg1">
      <bpmn2:extensionElements>
        <camunda:inputOutput>
          <camunda:outputParameter name="caseId">$(data.caseId)</camunda:outputParameter>
        </camunda:inputOutput>
        <camunda:executionListener event="start">
          <camunda:script scriptFormat="JavaScript">this.context.messageMatchingKey={'data.caseId': data.caseId };</camunda:script>
        </camunda:executionListener>
      </bpmn2:extensionElements>
      <bpmn2:incoming>Flow_1u4s7n3</bpmn2:incoming>
      <bpmn2:outgoing>Flow_1pr1ix0</bpmn2:outgoing>
      <bpmn2:messageEventDefinition id="MessageEventDefinition_0du622a" messageRef="Message_1e2r3o8" />
    </bpmn2:intermediateThrowEvent>
    <bpmn2:sequenceFlow id="Flow_1pr1ix0" sourceRef="Event_1c2n6uf" targetRef="Event_0a86ryr" />
    <bpmn2:intermediateCatchEvent id="Event_0a86ryr" name="receive confirm1">
      <bpmn2:incoming>Flow_1pr1ix0</bpmn2:incoming>
      <bpmn2:outgoing>Flow_07cd6v6</bpmn2:outgoing>
      <bpmn2:messageEventDefinition id="MessageEventDefinition_1klum57" messageRef="Message_1t0sk7k" />
    </bpmn2:intermediateCatchEvent>
    <bpmn2:sequenceFlow id="Flow_07cd6v6" sourceRef="Event_0a86ryr" targetRef="Event_0sdcy6p" />
    <bpmn2:sequenceFlow id="Flow_0lh7tyb" sourceRef="Event_1p5nwvf" targetRef="Event_0mdlpc9" />
    <bpmn2:sequenceFlow id="Flow_0ssnujb" sourceRef="Event_0mdlpc9" targetRef="Event_0q2bctn" />
    <bpmn2:endEvent id="Event_0q2bctn">
      <bpmn2:incoming>Flow_0ssnujb</bpmn2:incoming>
    </bpmn2:endEvent>
    <bpmn2:intermediateCatchEvent id="Event_0mdlpc9" name="receive confirm2">
      <bpmn2:incoming>Flow_0lh7tyb</bpmn2:incoming>
      <bpmn2:outgoing>Flow_0ssnujb</bpmn2:outgoing>
      <bpmn2:messageEventDefinition id="MessageEventDefinition_0sihe5u" messageRef="Message_0dx7r19" />
    </bpmn2:intermediateCatchEvent>
    <bpmn2:intermediateThrowEvent id="Event_1p5nwvf" name="msg2">
      <bpmn2:extensionElements>
        <camunda:executionListener event="start">
          <camunda:script scriptFormat="JavaScript">this.context.messageMatchingKey={'data.caseId': data.caseId };</camunda:script>
        </camunda:executionListener>
      </bpmn2:extensionElements>
      <bpmn2:incoming>Flow_0kolke2</bpmn2:incoming>
      <bpmn2:outgoing>Flow_0lh7tyb</bpmn2:outgoing>
      <bpmn2:messageEventDefinition id="MessageEventDefinition_1wl6r42" messageRef="Message_0la9vh9" />
    </bpmn2:intermediateThrowEvent>
    <bpmn2:sequenceFlow id="Flow_0kolke2" sourceRef="Event_0sdcy6p" targetRef="Event_1p5nwvf" />
    <bpmn2:intermediateCatchEvent id="Event_0sdcy6p">
      <bpmn2:incoming>Flow_07cd6v6</bpmn2:incoming>
      <bpmn2:outgoing>Flow_0kolke2</bpmn2:outgoing>
      <bpmn2:timerEventDefinition id="TimerEventDefinition_07not03">
        <bpmn2:timeDuration xsi:type="bpmn2:tFormalExpression">PT2S</bpmn2:timeDuration>
      </bpmn2:timerEventDefinition>
    </bpmn2:intermediateCatchEvent>
  </bpmn2:process>
  <bpmn2:message id="Message_1e2r3o8" name="msg1" />
  <bpmn2:message id="Message_1t0sk7k" name="confirm1" />
  <bpmn2:message id="Message_0la9vh9" name="msg2" />
  <bpmn2:message id="Message_0dx7r19" name="confirm2" />
  <bpmndi:BPMNDiagram id="BPMNDiagram_1">
    <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Collaboration_140p3me">
      <bpmndi:BPMNShape id="Participant_1f7oxgn_di" bpmnElement="Participant_1f7oxgn" isHorizontal="true">
        <dc:Bounds x="200" y="70" width="600" height="250" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="Flow_0ssnujb_di" bpmnElement="Flow_0ssnujb">
        <di:waypoint x="668" y="180" />
        <di:waypoint x="722" y="180" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_0lh7tyb_di" bpmnElement="Flow_0lh7tyb">
        <di:waypoint x="598" y="180" />
        <di:waypoint x="632" y="180" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_07cd6v6_di" bpmnElement="Flow_07cd6v6">
        <di:waypoint x="458" y="180" />
        <di:waypoint x="492" y="180" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_1pr1ix0_di" bpmnElement="Flow_1pr1ix0">
        <di:waypoint x="368" y="180" />
        <di:waypoint x="422" y="180" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_1u4s7n3_di" bpmnElement="Flow_1u4s7n3">
        <di:waypoint x="278" y="180" />
        <di:waypoint x="332" y="180" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_0kolke2_di" bpmnElement="Flow_0kolke2">
        <di:waypoint x="528" y="180" />
        <di:waypoint x="562" y="180" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
        <dc:Bounds x="242" y="162" width="36" height="36" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Event_1o8nku0_di" bpmnElement="Event_1c2n6uf">
        <dc:Bounds x="332" y="162" width="36" height="36" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="337" y="205" width="27" height="14" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Event_1ghwz1c_di" bpmnElement="Event_0a86ryr">
        <dc:Bounds x="422" y="162" width="36" height="36" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="401" y="205" width="81" height="14" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Event_0q2bctn_di" bpmnElement="Event_0q2bctn">
        <dc:Bounds x="722" y="162" width="36" height="36" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Event_1azhu6d_di" bpmnElement="Event_0mdlpc9">
        <dc:Bounds x="632" y="162" width="36" height="36" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="610" y="205" width="81" height="14" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Event_0ycmdcv_di" bpmnElement="Event_1p5nwvf">
        <dc:Bounds x="562" y="162" width="36" height="36" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="567" y="205" width="27" height="14" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Event_10fl2pg_di" bpmnElement="Event_0sdcy6p">
        <dc:Bounds x="492" y="162" width="36" height="36" />
      </bpmndi:BPMNShape>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</bpmn2:definitions>
