<?xml version="1.0" encoding="UTF-8"?>
<bpmn:definitions xmlns:bpmn="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:xsi="http://www.w3.org/2001/XMLSchema-instance" id="Definitions_missing_status_report" targetNamespace="https://www.analystengineering.com/iso-20022/payment-process-bpmn" exporter="Analyst Engineering" exporterVersion="1.0">
  <bpmn:collaboration id="Collaboration_1">
    <bpmn:documentation>Technical error: status never arrives, pacs.028 investigation. The CSM processed the payment but its pacs.002 never reached the debtor agent; when the debtor agent's own status timer fires it sends a pacs.028 status request, receives a fresh pacs.002 and only then reports ACSC or RJCT to the debtor. A payment without a status is stuck, not successful. Source: https://www.analystengineering.com/iso-20022/payment-process-bpmn#missing-status-report</bpmn:documentation>
    <bpmn:participant id="Participant_debtor" name="Debtor (customer who pays)" />
    <bpmn:participant id="Participant_dbtr" name="Debtor agent (debtor bank)" processRef="Process_dbtr" />
    <bpmn:participant id="Participant_csm" name="Clearing and settlement mechanism (CSM)" processRef="Process_csm" />
    <bpmn:messageFlow id="Message_1" name="pain.001" sourceRef="Participant_debtor" targetRef="Node_l0" />
    <bpmn:messageFlow id="Message_2" name="pain.002 ACSP" sourceRef="Node_l2" targetRef="Participant_debtor" />
    <bpmn:messageFlow id="Message_3" name="pacs.008" sourceRef="Node_l2" targetRef="Node_m0" />
    <bpmn:messageFlow id="Message_4" name="pacs.028 status request" sourceRef="Node_l7" targetRef="Node_m3" />
    <bpmn:messageFlow id="Message_5" name="pacs.002 current status" sourceRef="Node_m4" targetRef="Node_l8" />
    <bpmn:messageFlow id="Message_6" name="pain.002 ACSC" sourceRef="Node_l10" targetRef="Participant_debtor" />
    <bpmn:messageFlow id="Message_7" name="pain.002 RJCT" sourceRef="Node_l12" targetRef="Participant_debtor" />
  </bpmn:collaboration>
  <bpmn:process id="Process_dbtr" name="Debtor agent (debtor bank)" isExecutable="false">
    <bpmn:startEvent id="Node_l0" name="pain.001 received">
      <bpmn:outgoing>Flow_1</bpmn:outgoing>
      <bpmn:messageEventDefinition id="Node_l0_def" />
    </bpmn:startEvent>
    <bpmn:serviceTask id="Node_l1" name="Validate, screen, check funds">
      <bpmn:incoming>Flow_1</bpmn:incoming>
      <bpmn:outgoing>Flow_2</bpmn:outgoing>
    </bpmn:serviceTask>
    <bpmn:sendTask id="Node_l2" name="Reserve funds, send pacs.008">
      <bpmn:incoming>Flow_2</bpmn:incoming>
      <bpmn:outgoing>Flow_3</bpmn:outgoing>
    </bpmn:sendTask>
    <bpmn:eventBasedGateway id="Node_l3" name="First event">
      <bpmn:incoming>Flow_3</bpmn:incoming>
      <bpmn:outgoing>Flow_4</bpmn:outgoing>
      <bpmn:outgoing>Flow_5</bpmn:outgoing>
    </bpmn:eventBasedGateway>
    <bpmn:intermediateCatchEvent id="Node_l4" name="No status within SLA">
      <bpmn:incoming>Flow_4</bpmn:incoming>
      <bpmn:outgoing>Flow_7</bpmn:outgoing>
      <bpmn:timerEventDefinition id="Node_l4_def"><bpmn:timeDuration xsi:type="bpmn:tFormalExpression">PT60S</bpmn:timeDuration></bpmn:timerEventDefinition>
    </bpmn:intermediateCatchEvent>
    <bpmn:intermediateCatchEvent id="Node_l5" name="Status in time">
      <bpmn:incoming>Flow_5</bpmn:incoming>
      <bpmn:outgoing>Flow_6</bpmn:outgoing>
      <bpmn:messageEventDefinition id="Node_l5_def" />
    </bpmn:intermediateCatchEvent>
    <bpmn:endEvent id="Node_l6" name="Continue as usual">
      <bpmn:incoming>Flow_6</bpmn:incoming>
    </bpmn:endEvent>
    <bpmn:sendTask id="Node_l7" name="Request status">
      <bpmn:incoming>Flow_7</bpmn:incoming>
      <bpmn:outgoing>Flow_8</bpmn:outgoing>
    </bpmn:sendTask>
    <bpmn:intermediateCatchEvent id="Node_l8" name="Status received">
      <bpmn:incoming>Flow_8</bpmn:incoming>
      <bpmn:outgoing>Flow_9</bpmn:outgoing>
      <bpmn:messageEventDefinition id="Node_l8_def" />
    </bpmn:intermediateCatchEvent>
    <bpmn:exclusiveGateway id="Node_l9" name="Final status?">
      <bpmn:incoming>Flow_9</bpmn:incoming>
      <bpmn:outgoing>Flow_10</bpmn:outgoing>
      <bpmn:outgoing>Flow_11</bpmn:outgoing>
    </bpmn:exclusiveGateway>
    <bpmn:endEvent id="Node_l10" name="Report ACSC">
      <bpmn:incoming>Flow_10</bpmn:incoming>
      <bpmn:messageEventDefinition id="Node_l10_def" />
    </bpmn:endEvent>
    <bpmn:serviceTask id="Node_l11" name="Release reserved funds">
      <bpmn:incoming>Flow_11</bpmn:incoming>
      <bpmn:outgoing>Flow_12</bpmn:outgoing>
    </bpmn:serviceTask>
    <bpmn:endEvent id="Node_l12" name="Report RJCT">
      <bpmn:incoming>Flow_12</bpmn:incoming>
      <bpmn:messageEventDefinition id="Node_l12_def" />
    </bpmn:endEvent>
    <bpmn:sequenceFlow id="Flow_1" sourceRef="Node_l0" targetRef="Node_l1" />
    <bpmn:sequenceFlow id="Flow_2" sourceRef="Node_l1" targetRef="Node_l2" />
    <bpmn:sequenceFlow id="Flow_3" sourceRef="Node_l2" targetRef="Node_l3" />
    <bpmn:sequenceFlow id="Flow_4" sourceRef="Node_l3" targetRef="Node_l4" />
    <bpmn:sequenceFlow id="Flow_5" sourceRef="Node_l3" targetRef="Node_l5" />
    <bpmn:sequenceFlow id="Flow_6" sourceRef="Node_l5" targetRef="Node_l6" />
    <bpmn:sequenceFlow id="Flow_7" sourceRef="Node_l4" targetRef="Node_l7" />
    <bpmn:sequenceFlow id="Flow_8" sourceRef="Node_l7" targetRef="Node_l8" />
    <bpmn:sequenceFlow id="Flow_9" sourceRef="Node_l8" targetRef="Node_l9" />
    <bpmn:sequenceFlow id="Flow_10" name="ACSC" sourceRef="Node_l9" targetRef="Node_l10" />
    <bpmn:sequenceFlow id="Flow_11" name="RJCT" sourceRef="Node_l9" targetRef="Node_l11" />
    <bpmn:sequenceFlow id="Flow_12" sourceRef="Node_l11" targetRef="Node_l12" />
  </bpmn:process>
  <bpmn:process id="Process_csm" name="Clearing and settlement mechanism (CSM)" isExecutable="false">
    <bpmn:startEvent id="Node_m0" name="pacs.008 received">
      <bpmn:outgoing>Flow_13</bpmn:outgoing>
      <bpmn:messageEventDefinition id="Node_m0_def" />
    </bpmn:startEvent>
    <bpmn:serviceTask id="Node_m1" name="Process and settle">
      <bpmn:incoming>Flow_13</bpmn:incoming>
      <bpmn:outgoing>Flow_14</bpmn:outgoing>
    </bpmn:serviceTask>
    <bpmn:endEvent id="Node_m2" name="pacs.002 sent, lost in transit">
      <bpmn:incoming>Flow_14</bpmn:incoming>
      <bpmn:messageEventDefinition id="Node_m2_def" />
    </bpmn:endEvent>
    <bpmn:startEvent id="Node_m3" name="pacs.028 received">
      <bpmn:outgoing>Flow_15</bpmn:outgoing>
      <bpmn:messageEventDefinition id="Node_m3_def" />
    </bpmn:startEvent>
    <bpmn:sendTask id="Node_m4" name="Look up and answer">
      <bpmn:incoming>Flow_15</bpmn:incoming>
      <bpmn:outgoing>Flow_16</bpmn:outgoing>
    </bpmn:sendTask>
    <bpmn:endEvent id="Node_m5" name="Answered">
      <bpmn:incoming>Flow_16</bpmn:incoming>
    </bpmn:endEvent>
    <bpmn:sequenceFlow id="Flow_13" sourceRef="Node_m0" targetRef="Node_m1" />
    <bpmn:sequenceFlow id="Flow_14" sourceRef="Node_m1" targetRef="Node_m2" />
    <bpmn:sequenceFlow id="Flow_15" sourceRef="Node_m3" targetRef="Node_m4" />
    <bpmn:sequenceFlow id="Flow_16" sourceRef="Node_m4" targetRef="Node_m5" />
  </bpmn:process>
  <bpmndi:BPMNDiagram id="BPMNDiagram_1" name="Technical error: status never arrives, pacs.028 investigation">
    <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Collaboration_1">
      <bpmndi:BPMNShape id="Participant_debtor_di" bpmnElement="Participant_debtor" isHorizontal="true"><dc:Bounds x="8" y="8" width="1382" height="52" /></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Participant_dbtr_di" bpmnElement="Participant_dbtr" isHorizontal="true"><dc:Bounds x="8" y="124" width="1382" height="332" /></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Participant_csm_di" bpmnElement="Participant_csm" isHorizontal="true"><dc:Bounds x="8" y="520" width="1382" height="124" /></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Node_l0_di" bpmnElement="Node_l0"><dc:Bounds x="98" y="272" width="36" height="36" /><bpmndi:BPMNLabel><dc:Bounds x="66" y="312" width="100" height="13" /></bpmndi:BPMNLabel></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Node_l1_di" bpmnElement="Node_l1"><dc:Bounds x="190" y="254" width="100" height="72" /></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Node_l2_di" bpmnElement="Node_l2"><dc:Bounds x="314" y="254" width="100" height="72" /></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Node_l3_di" bpmnElement="Node_l3"><dc:Bounds x="463" y="265" width="50" height="50" /><bpmndi:BPMNLabel><dc:Bounds x="438" y="319" width="100" height="13" /></bpmndi:BPMNLabel></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Node_l4_di" bpmnElement="Node_l4"><dc:Bounds x="594" y="272" width="36" height="36" /><bpmndi:BPMNLabel><dc:Bounds x="562" y="312" width="100" height="26" /></bpmndi:BPMNLabel></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Node_l5_di" bpmnElement="Node_l5"><dc:Bounds x="594" y="168" width="36" height="36" /><bpmndi:BPMNLabel><dc:Bounds x="562" y="208" width="100" height="13" /></bpmndi:BPMNLabel></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Node_l6_di" bpmnElement="Node_l6"><dc:Bounds x="718" y="168" width="36" height="36" /><bpmndi:BPMNLabel><dc:Bounds x="686" y="208" width="100" height="13" /></bpmndi:BPMNLabel></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Node_l7_di" bpmnElement="Node_l7"><dc:Bounds x="686" y="254" width="100" height="72" /></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Node_l8_di" bpmnElement="Node_l8"><dc:Bounds x="842" y="272" width="36" height="36" /><bpmndi:BPMNLabel><dc:Bounds x="810" y="253" width="100" height="13" /></bpmndi:BPMNLabel></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Node_l9_di" bpmnElement="Node_l9" isMarkerVisible="true"><dc:Bounds x="959" y="265" width="50" height="50" /><bpmndi:BPMNLabel><dc:Bounds x="934" y="246" width="100" height="13" /></bpmndi:BPMNLabel></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Node_l10_di" bpmnElement="Node_l10"><dc:Bounds x="1090" y="272" width="36" height="36" /><bpmndi:BPMNLabel><dc:Bounds x="1058" y="312" width="100" height="13" /></bpmndi:BPMNLabel></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Node_l11_di" bpmnElement="Node_l11"><dc:Bounds x="1058" y="358" width="100" height="72" /></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Node_l12_di" bpmnElement="Node_l12"><dc:Bounds x="1214" y="376" width="36" height="36" /><bpmndi:BPMNLabel><dc:Bounds x="1182" y="416" width="100" height="13" /></bpmndi:BPMNLabel></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Node_m0_di" bpmnElement="Node_m0"><dc:Bounds x="346" y="564" width="36" height="36" /><bpmndi:BPMNLabel><dc:Bounds x="314" y="604" width="100" height="13" /></bpmndi:BPMNLabel></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Node_m1_di" bpmnElement="Node_m1"><dc:Bounds x="438" y="546" width="100" height="72" /></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Node_m2_di" bpmnElement="Node_m2"><dc:Bounds x="594" y="564" width="36" height="36" /><bpmndi:BPMNLabel><dc:Bounds x="562" y="604" width="100" height="26" /></bpmndi:BPMNLabel></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Node_m3_di" bpmnElement="Node_m3"><dc:Bounds x="718" y="564" width="36" height="36" /><bpmndi:BPMNLabel><dc:Bounds x="686" y="604" width="100" height="13" /></bpmndi:BPMNLabel></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Node_m4_di" bpmnElement="Node_m4"><dc:Bounds x="810" y="546" width="100" height="72" /></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Node_m5_di" bpmnElement="Node_m5"><dc:Bounds x="966" y="564" width="36" height="36" /><bpmndi:BPMNLabel><dc:Bounds x="934" y="604" width="100" height="13" /></bpmndi:BPMNLabel></bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="Flow_1_di" bpmnElement="Flow_1"><di:waypoint x="134" y="290" /><di:waypoint x="190" y="290" /></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_2_di" bpmnElement="Flow_2"><di:waypoint x="290" y="290" /><di:waypoint x="314" y="290" /></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_3_di" bpmnElement="Flow_3"><di:waypoint x="414" y="290" /><di:waypoint x="463" y="290" /></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_4_di" bpmnElement="Flow_4"><di:waypoint x="513" y="290" /><di:waypoint x="594" y="290" /></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_5_di" bpmnElement="Flow_5"><di:waypoint x="488" y="265" /><di:waypoint x="488" y="186" /><di:waypoint x="594" y="186" /></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_6_di" bpmnElement="Flow_6"><di:waypoint x="630" y="186" /><di:waypoint x="718" y="186" /></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_7_di" bpmnElement="Flow_7"><di:waypoint x="630" y="290" /><di:waypoint x="686" y="290" /></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_8_di" bpmnElement="Flow_8"><di:waypoint x="786" y="290" /><di:waypoint x="842" y="290" /></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_9_di" bpmnElement="Flow_9"><di:waypoint x="878" y="290" /><di:waypoint x="959" y="290" /></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_10_di" bpmnElement="Flow_10"><di:waypoint x="1009" y="290" /><di:waypoint x="1090" y="290" /><bpmndi:BPMNLabel><dc:Bounds x="1015" y="273" width="60" height="14" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_11_di" bpmnElement="Flow_11"><di:waypoint x="984" y="315" /><di:waypoint x="984" y="394" /><di:waypoint x="1058" y="394" /><bpmndi:BPMNLabel><dc:Bounds x="990" y="318" width="60" height="14" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_12_di" bpmnElement="Flow_12"><di:waypoint x="1158" y="394" /><di:waypoint x="1214" y="394" /></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_13_di" bpmnElement="Flow_13"><di:waypoint x="382" y="582" /><di:waypoint x="438" y="582" /></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_14_di" bpmnElement="Flow_14"><di:waypoint x="538" y="582" /><di:waypoint x="594" y="582" /></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_15_di" bpmnElement="Flow_15"><di:waypoint x="754" y="582" /><di:waypoint x="810" y="582" /></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_16_di" bpmnElement="Flow_16"><di:waypoint x="910" y="582" /><di:waypoint x="966" y="582" /></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Message_1_di" bpmnElement="Message_1"><di:waypoint x="116" y="60" /><di:waypoint x="116" y="272" /><bpmndi:BPMNLabel><dc:Bounds x="123" y="78" width="96" height="28" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Message_2_di" bpmnElement="Message_2"><di:waypoint x="364" y="254" /><di:waypoint x="364" y="60" /><bpmndi:BPMNLabel><dc:Bounds x="371" y="78" width="96" height="28" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Message_3_di" bpmnElement="Message_3"><di:waypoint x="364" y="326" /><di:waypoint x="364" y="564" /><bpmndi:BPMNLabel><dc:Bounds x="371" y="474" width="96" height="28" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Message_4_di" bpmnElement="Message_4"><di:waypoint x="736" y="326" /><di:waypoint x="736" y="564" /><bpmndi:BPMNLabel><dc:Bounds x="743" y="474" width="96" height="28" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Message_5_di" bpmnElement="Message_5"><di:waypoint x="860" y="546" /><di:waypoint x="860" y="308" /><bpmndi:BPMNLabel><dc:Bounds x="867" y="474" width="96" height="28" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Message_6_di" bpmnElement="Message_6"><di:waypoint x="1108" y="272" /><di:waypoint x="1108" y="60" /><bpmndi:BPMNLabel><dc:Bounds x="1115" y="78" width="96" height="28" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Message_7_di" bpmnElement="Message_7"><di:waypoint x="1232" y="376" /><di:waypoint x="1232" y="60" /><bpmndi:BPMNLabel><dc:Bounds x="1239" y="78" width="96" height="28" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</bpmn:definitions>
