<?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_fraud_screening_hold" targetNamespace="https://www.analystengineering.com/iso-20022/payment-process-bpmn" exporter="Analyst Engineering" exporterVersion="1.0">
  <bpmn:collaboration id="Collaboration_1">
    <bpmn:documentation>Fraud: screening alert, hold, PDNG, then reject. Fraud screening raises an alert, the debtor agent holds the payment and reports pain.002 PDNG, an analyst investigates and calls the customer; confirmed fraud stops the payment with pain.002 RJCT, while a false positive is released into the normal flow. Source: https://www.analystengineering.com/iso-20022/payment-process-bpmn#fraud-screening-hold</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:messageFlow id="Message_1" name="pain.001" sourceRef="Participant_debtor" targetRef="Node_f0" />
    <bpmn:messageFlow id="Message_2" name="pain.002 ACTC" sourceRef="Node_f1" targetRef="Participant_debtor" />
    <bpmn:messageFlow id="Message_3" name="pain.002 PDNG" sourceRef="Node_f4" targetRef="Participant_debtor" />
    <bpmn:messageFlow id="Message_4" name="pain.002 RJCT FR01" sourceRef="Node_f8" targetRef="Participant_debtor" />
  </bpmn:collaboration>
  <bpmn:process id="Process_dbtr" name="Debtor agent (debtor bank)" isExecutable="false">
    <bpmn:startEvent id="Node_f0" name="pain.001 received">
      <bpmn:outgoing>Flow_1</bpmn:outgoing>
      <bpmn:messageEventDefinition id="Node_f0_def" />
    </bpmn:startEvent>
    <bpmn:serviceTask id="Node_f1" name="Validate">
      <bpmn:incoming>Flow_1</bpmn:incoming>
      <bpmn:outgoing>Flow_2</bpmn:outgoing>
    </bpmn:serviceTask>
    <bpmn:serviceTask id="Node_f2" name="Fraud and sanctions screening">
      <bpmn:incoming>Flow_2</bpmn:incoming>
      <bpmn:outgoing>Flow_3</bpmn:outgoing>
    </bpmn:serviceTask>
    <bpmn:exclusiveGateway id="Node_f3" name="Alert raised?">
      <bpmn:incoming>Flow_3</bpmn:incoming>
      <bpmn:outgoing>Flow_4</bpmn:outgoing>
      <bpmn:outgoing>Flow_5</bpmn:outgoing>
    </bpmn:exclusiveGateway>
    <bpmn:sendTask id="Node_f4" name="Hold payment, report pending">
      <bpmn:incoming>Flow_4</bpmn:incoming>
      <bpmn:outgoing>Flow_6</bpmn:outgoing>
    </bpmn:sendTask>
    <bpmn:userTask id="Node_f5" name="Investigate, call customer">
      <bpmn:incoming>Flow_6</bpmn:incoming>
      <bpmn:outgoing>Flow_7</bpmn:outgoing>
    </bpmn:userTask>
    <bpmn:exclusiveGateway id="Node_f6" name="Payment genuine?">
      <bpmn:incoming>Flow_7</bpmn:incoming>
      <bpmn:outgoing>Flow_8</bpmn:outgoing>
      <bpmn:outgoing>Flow_9</bpmn:outgoing>
    </bpmn:exclusiveGateway>
    <bpmn:serviceTask id="Node_f7" name="Stop payment, open fraud case">
      <bpmn:incoming>Flow_8</bpmn:incoming>
      <bpmn:outgoing>Flow_10</bpmn:outgoing>
    </bpmn:serviceTask>
    <bpmn:endEvent id="Node_f8" name="Report rejection">
      <bpmn:incoming>Flow_10</bpmn:incoming>
      <bpmn:messageEventDefinition id="Node_f8_def" />
    </bpmn:endEvent>
    <bpmn:exclusiveGateway id="Node_f9" name="">
      <bpmn:incoming>Flow_5</bpmn:incoming>
      <bpmn:incoming>Flow_9</bpmn:incoming>
      <bpmn:outgoing>Flow_11</bpmn:outgoing>
    </bpmn:exclusiveGateway>
    <bpmn:callActivity id="Node_f10" name="Execute payment (scenario 1)">
      <bpmn:incoming>Flow_11</bpmn:incoming>
      <bpmn:outgoing>Flow_12</bpmn:outgoing>
    </bpmn:callActivity>
    <bpmn:endEvent id="Node_f11" name="Executed">
      <bpmn:incoming>Flow_12</bpmn:incoming>
    </bpmn:endEvent>
    <bpmn:sequenceFlow id="Flow_1" sourceRef="Node_f0" targetRef="Node_f1" />
    <bpmn:sequenceFlow id="Flow_2" sourceRef="Node_f1" targetRef="Node_f2" />
    <bpmn:sequenceFlow id="Flow_3" sourceRef="Node_f2" targetRef="Node_f3" />
    <bpmn:sequenceFlow id="Flow_4" name="Yes" sourceRef="Node_f3" targetRef="Node_f4" />
    <bpmn:sequenceFlow id="Flow_5" name="No" sourceRef="Node_f3" targetRef="Node_f9" />
    <bpmn:sequenceFlow id="Flow_6" sourceRef="Node_f4" targetRef="Node_f5" />
    <bpmn:sequenceFlow id="Flow_7" sourceRef="Node_f5" targetRef="Node_f6" />
    <bpmn:sequenceFlow id="Flow_8" name="Fraud" sourceRef="Node_f6" targetRef="Node_f7" />
    <bpmn:sequenceFlow id="Flow_9" name="Yes" sourceRef="Node_f6" targetRef="Node_f9" />
    <bpmn:sequenceFlow id="Flow_10" sourceRef="Node_f7" targetRef="Node_f8" />
    <bpmn:sequenceFlow id="Flow_11" sourceRef="Node_f9" targetRef="Node_f10" />
    <bpmn:sequenceFlow id="Flow_12" sourceRef="Node_f10" targetRef="Node_f11" />
  </bpmn:process>
  <bpmndi:BPMNDiagram id="BPMNDiagram_1" name="Fraud: screening alert, hold, PDNG, then reject">
    <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="1258" height="52" /></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Participant_dbtr_di" bpmnElement="Participant_dbtr" isHorizontal="true"><dc:Bounds x="8" y="124" width="1258" height="228" /></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Node_f0_di" bpmnElement="Node_f0"><dc:Bounds x="98" y="168" width="36" height="36" /><bpmndi:BPMNLabel><dc:Bounds x="66" y="208" width="100" height="13" /></bpmndi:BPMNLabel></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Node_f1_di" bpmnElement="Node_f1"><dc:Bounds x="190" y="150" width="100" height="72" /></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Node_f2_di" bpmnElement="Node_f2"><dc:Bounds x="314" y="150" width="100" height="72" /></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Node_f3_di" bpmnElement="Node_f3" isMarkerVisible="true"><dc:Bounds x="463" y="161" width="50" height="50" /><bpmndi:BPMNLabel><dc:Bounds x="438" y="142" width="100" height="13" /></bpmndi:BPMNLabel></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Node_f4_di" bpmnElement="Node_f4"><dc:Bounds x="562" y="150" width="100" height="72" /></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Node_f5_di" bpmnElement="Node_f5"><dc:Bounds x="686" y="150" width="100" height="72" /></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Node_f6_di" bpmnElement="Node_f6" isMarkerVisible="true"><dc:Bounds x="835" y="161" width="50" height="50" /><bpmndi:BPMNLabel><dc:Bounds x="810" y="142" width="100" height="13" /></bpmndi:BPMNLabel></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Node_f7_di" bpmnElement="Node_f7"><dc:Bounds x="934" y="150" width="100" height="72" /></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Node_f8_di" bpmnElement="Node_f8"><dc:Bounds x="1090" y="168" width="36" height="36" /><bpmndi:BPMNLabel><dc:Bounds x="1058" y="208" width="100" height="13" /></bpmndi:BPMNLabel></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Node_f9_di" bpmnElement="Node_f9" isMarkerVisible="true"><dc:Bounds x="835" y="265" width="50" height="50" /></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Node_f10_di" bpmnElement="Node_f10"><dc:Bounds x="934" y="254" width="100" height="72" /></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Node_f11_di" bpmnElement="Node_f11"><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:BPMNEdge id="Flow_1_di" bpmnElement="Flow_1"><di:waypoint x="134" y="186" /><di:waypoint x="190" y="186" /></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_2_di" bpmnElement="Flow_2"><di:waypoint x="290" y="186" /><di:waypoint x="314" y="186" /></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_3_di" bpmnElement="Flow_3"><di:waypoint x="414" y="186" /><di:waypoint x="463" y="186" /></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_4_di" bpmnElement="Flow_4"><di:waypoint x="513" y="186" /><di:waypoint x="562" y="186" /><bpmndi:BPMNLabel><dc:Bounds x="519" y="169" width="60" height="14" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_5_di" bpmnElement="Flow_5"><di:waypoint x="488" y="211" /><di:waypoint x="488" y="290" /><di:waypoint x="835" y="290" /><bpmndi:BPMNLabel><dc:Bounds x="494" y="214" width="60" height="14" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_6_di" bpmnElement="Flow_6"><di:waypoint x="662" y="186" /><di:waypoint x="686" y="186" /></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_7_di" bpmnElement="Flow_7"><di:waypoint x="786" y="186" /><di:waypoint x="835" y="186" /></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_8_di" bpmnElement="Flow_8"><di:waypoint x="885" y="186" /><di:waypoint x="934" y="186" /><bpmndi:BPMNLabel><dc:Bounds x="891" y="169" width="60" height="14" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_9_di" bpmnElement="Flow_9"><di:waypoint x="860" y="211" /><di:waypoint x="860" y="265" /><bpmndi:BPMNLabel><dc:Bounds x="866" y="214" width="60" height="14" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_10_di" bpmnElement="Flow_10"><di:waypoint x="1034" y="186" /><di:waypoint x="1090" y="186" /></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_11_di" bpmnElement="Flow_11"><di:waypoint x="885" y="290" /><di:waypoint x="934" y="290" /></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_12_di" bpmnElement="Flow_12"><di:waypoint x="1034" y="290" /><di:waypoint x="1090" y="290" /></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Message_1_di" bpmnElement="Message_1"><di:waypoint x="116" y="60" /><di:waypoint x="116" y="168" /><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="240" y="150" /><di:waypoint x="240" y="60" /><bpmndi:BPMNLabel><dc:Bounds x="247" y="78" width="96" height="28" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Message_3_di" bpmnElement="Message_3"><di:waypoint x="612" y="150" /><di:waypoint x="612" y="60" /><bpmndi:BPMNLabel><dc:Bounds x="619" y="78" width="96" height="28" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Message_4_di" bpmnElement="Message_4"><di:waypoint x="1108" y="168" /><di:waypoint x="1108" y="60" /><bpmndi:BPMNLabel><dc:Bounds x="1115" y="78" width="96" height="28" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</bpmn:definitions>
