<?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:twiggy="https://twiggy.app/schema/bpmn/1.0" id="Definitions_decide_sme_loan" targetNamespace="https://twiggy.app/schema/bpmn/1.0/decide-sme-loan" exporter="Twiggy Modeller" exporterVersion="1">
  <bpmn:collaboration id="Collaboration_1">
    <bpmn:participant id="Participant_decide_sme_loan" name="Decide on the SME loan" processRef="Process_decide_sme_loan" />
    <bpmn:participant id="Participant_verify_sme_loan_applicant" name="Verify and screen the applicant"><bpmn:documentation>Twiggy process verify-sme-loan-applicant</bpmn:documentation></bpmn:participant>
    <bpmn:participant id="Participant_provision_sme_loan" name="Provision the SME loan"><bpmn:documentation>Twiggy process provision-sme-loan</bpmn:documentation></bpmn:participant>
    <bpmn:participant id="Participant_assess_credit_risk" name="Assess credit risk"><bpmn:documentation>Twiggy process assess-credit-risk</bpmn:documentation></bpmn:participant>
    <bpmn:messageFlow id="MessageFlow_handoff_1" sourceRef="Participant_verify_sme_loan_applicant" targetRef="applicant_verified" />
    <bpmn:messageFlow id="MessageFlow_handoff_2" sourceRef="loan_accepted" targetRef="Participant_provision_sme_loan" />
    <bpmn:messageFlow id="MessageFlow_handoff_3" sourceRef="referred_to_credit" targetRef="Participant_assess_credit_risk" />
    <bpmn:messageFlow id="MessageFlow_handoff_4" sourceRef="Participant_assess_credit_risk" targetRef="review_approved" />
  </bpmn:collaboration>
  <bpmn:process id="Process_decide_sme_loan" name="Decide on the SME loan" isExecutable="false" twiggy:id="decide-sme-loan" twiggy:level="L3" twiggy:parent="twiggy-bank" twiggy:status="draft">
    <bpmn:laneSet id="LaneSet_1">
      <bpmn:lane id="Lane_loan_origination_system" name="Loan origination system"><bpmn:flowNodeRef>applicant_verified</bpmn:flowNodeRef><bpmn:flowNodeRef>loan_declined</bpmn:flowNodeRef><bpmn:flowNodeRef>referred_to_credit</bpmn:flowNodeRef><bpmn:flowNodeRef>run_credit_decisioning</bpmn:flowNodeRef><bpmn:flowNodeRef>loan_approved</bpmn:flowNodeRef></bpmn:lane>
      <bpmn:lane id="Lane_origination_app" name="Origination app"><bpmn:flowNodeRef>loan_accepted</bpmn:flowNodeRef><bpmn:flowNodeRef>review_approved</bpmn:flowNodeRef><bpmn:flowNodeRef>present_loan_terms</bpmn:flowNodeRef><bpmn:flowNodeRef>terms_accepted</bpmn:flowNodeRef></bpmn:lane>
      <bpmn:lane id="Lane_retention_department" name="Retention department"><bpmn:flowNodeRef>referred_to_retention</bpmn:flowNodeRef><bpmn:flowNodeRef>attempt_customer_retention</bpmn:flowNodeRef></bpmn:lane>
    </bpmn:laneSet>
    <bpmn:startEvent id="applicant_verified" name="Applicant verified" twiggy:direction="inbound" twiggy:link="verify-sme-loan-applicant.applicant_verified"><bpmn:outgoing>Flow_1</bpmn:outgoing><bpmn:messageEventDefinition /></bpmn:startEvent>
    <bpmn:endEvent id="loan_accepted" name="Customer accepts loan" twiggy:direction="outbound" twiggy:link="provision-sme-loan.loan_accepted"><bpmn:incoming>Flow_8</bpmn:incoming><bpmn:messageEventDefinition /></bpmn:endEvent>
    <bpmn:endEvent id="loan_declined" name="Loan not approved"><bpmn:incoming>Flow_4</bpmn:incoming></bpmn:endEvent>
    <bpmn:endEvent id="referred_to_credit" name="Referred to credit risk" twiggy:direction="outbound" twiggy:link="assess-credit-risk.credit_review_requested"><bpmn:incoming>Flow_5</bpmn:incoming><bpmn:messageEventDefinition /></bpmn:endEvent>
    <bpmn:startEvent id="review_approved" name="Approved by credit risk" twiggy:direction="inbound" twiggy:link="assess-credit-risk.exposure_accepted"><bpmn:outgoing>Flow_6</bpmn:outgoing><bpmn:messageEventDefinition /></bpmn:startEvent>
    <bpmn:endEvent id="referred_to_retention" name="Referred to retention"><bpmn:incoming>Flow_10</bpmn:incoming></bpmn:endEvent>
    <bpmn:serviceTask id="run_credit_decisioning" name="Perform credit decisioning"><bpmn:documentation>The loan origination system assesses the application and decides whether the loan is approved, declined or needs a credit review.</bpmn:documentation><bpmn:extensionElements><twiggy:properties><twiggy:property name="how" value="1. Pull the credit bureau report for the business and its directors
2. Calculate affordability from 6 months of bank-statement data
3. Apply the eligibility and lending policy rules
4. Approve, decline with reasons, or refer to credit risk when the score is borderline or the amount is over $250,000" /><twiggy:property name="app" value="app_backend" /><twiggy:property name="rule" value="credit_eligibility_criteria" /><twiggy:property name="risk" value="r_credit_loss" /><twiggy:property name="control" value="c_credit_policy" /><twiggy:property name="kpi" value="Loan approval rate" /><twiggy:property name="rule" value="affordability_check" /><twiggy:property name="rule" value="document_list" /><twiggy:property name="risk" value="r_irresponsible_lending" /><twiggy:property name="control" value="c_affordability_model" /><twiggy:property name="requirement" value="req_responsible_lending" /><twiggy:property name="requirement" value="req_decline_reasons" /></twiggy:properties></bpmn:extensionElements><bpmn:incoming>Flow_1</bpmn:incoming><bpmn:outgoing>Flow_2</bpmn:outgoing></bpmn:serviceTask>
    <bpmn:serviceTask id="present_loan_terms" name="Present final loan terms"><bpmn:documentation>The app presents the final terms of the approved loan for the customer to accept or reject.</bpmn:documentation><bpmn:extensionElements><twiggy:properties><twiggy:property name="app" value="mobile_app" /><twiggy:property name="kpi" value="Terms acceptance rate" /><twiggy:property name="how" value="1. Show the amount, term, rate and repayment in plain words
2. Link the key facts sheet: https://www.twiggybank.example/sme/key-facts
3. The customer accepts or rejects in the app; the offer lapses after 14 days" /></twiggy:properties></bpmn:extensionElements><bpmn:incoming>Flow_3</bpmn:incoming><bpmn:incoming>Flow_6</bpmn:incoming><bpmn:outgoing>Flow_7</bpmn:outgoing></bpmn:serviceTask>
    <bpmn:userTask id="attempt_customer_retention" name="Attempt customer retention" twiggy:queried="true"><bpmn:documentation>The retention department follows up with customers who rejected the loan terms.</bpmn:documentation><bpmn:extensionElements><twiggy:properties><twiggy:property name="kpi" value="Retention success rate" /><twiggy:property name="note" value="Inferred: confirm that retention, not the relationship manager, calls these customers." /></twiggy:properties></bpmn:extensionElements><bpmn:incoming>Flow_9</bpmn:incoming><bpmn:outgoing>Flow_10</bpmn:outgoing></bpmn:userTask>
    <bpmn:exclusiveGateway id="loan_approved" name="Loan approved?" default="Flow_3"><bpmn:incoming>Flow_2</bpmn:incoming><bpmn:outgoing>Flow_3</bpmn:outgoing><bpmn:outgoing>Flow_4</bpmn:outgoing><bpmn:outgoing>Flow_5</bpmn:outgoing></bpmn:exclusiveGateway>
    <bpmn:exclusiveGateway id="terms_accepted" name="Customer accepts loan terms?" default="Flow_8"><bpmn:incoming>Flow_7</bpmn:incoming><bpmn:outgoing>Flow_8</bpmn:outgoing><bpmn:outgoing>Flow_9</bpmn:outgoing></bpmn:exclusiveGateway>
    <bpmn:sequenceFlow id="Flow_1" sourceRef="applicant_verified" targetRef="run_credit_decisioning" />
    <bpmn:sequenceFlow id="Flow_2" sourceRef="run_credit_decisioning" targetRef="loan_approved" />
    <bpmn:sequenceFlow id="Flow_3" sourceRef="loan_approved" targetRef="present_loan_terms" name="Approved" />
    <bpmn:sequenceFlow id="Flow_4" sourceRef="loan_approved" targetRef="loan_declined" name="Declined" />
    <bpmn:sequenceFlow id="Flow_5" sourceRef="loan_approved" targetRef="referred_to_credit" name="Needs a credit review" />
    <bpmn:sequenceFlow id="Flow_6" sourceRef="review_approved" targetRef="present_loan_terms" />
    <bpmn:sequenceFlow id="Flow_7" sourceRef="present_loan_terms" targetRef="terms_accepted" />
    <bpmn:sequenceFlow id="Flow_8" sourceRef="terms_accepted" targetRef="loan_accepted" name="Accepted" />
    <bpmn:sequenceFlow id="Flow_9" sourceRef="terms_accepted" targetRef="attempt_customer_retention" name="Else" />
    <bpmn:sequenceFlow id="Flow_10" sourceRef="attempt_customer_retention" targetRef="referred_to_retention" />
  </bpmn:process>
  <bpmndi:BPMNDiagram id="Diagram_1" name="Decide on the SME loan">
    <bpmndi:BPMNPlane id="Plane_1" bpmnElement="Collaboration_1">
      <bpmndi:BPMNShape id="Participant_decide_sme_loan_di" bpmnElement="Participant_decide_sme_loan" isHorizontal="true"><dc:Bounds x="0" y="0" width="1204" height="368" /></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Lane_loan_origination_system_di" bpmnElement="Lane_loan_origination_system" isHorizontal="true"><dc:Bounds x="30" y="0" width="1174" height="176" /></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Lane_origination_app_di" bpmnElement="Lane_origination_app" isHorizontal="true"><dc:Bounds x="30" y="176" width="1174" height="96" /></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Lane_retention_department_di" bpmnElement="Lane_retention_department" isHorizontal="true"><dc:Bounds x="30" y="272" width="1174" height="96" /></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="applicant_verified_di" bpmnElement="applicant_verified"><dc:Bounds x="101" y="31" width="34" height="34" /><bpmndi:BPMNLabel><dc:Bounds x="68" y="69" width="100" height="28" /></bpmndi:BPMNLabel></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="loan_accepted_di" bpmnElement="loan_accepted"><dc:Bounds x="1127" y="207" width="34" height="34" /><bpmndi:BPMNLabel><dc:Bounds x="1094" y="245" width="100" height="28" /></bpmndi:BPMNLabel></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="loan_declined_di" bpmnElement="loan_declined"><dc:Bounds x="586.6" y="111" width="34" height="34" /><bpmndi:BPMNLabel><dc:Bounds x="553.6" y="149" width="100" height="28" /></bpmndi:BPMNLabel></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="referred_to_credit_di" bpmnElement="referred_to_credit"><dc:Bounds x="1127" y="31" width="34" height="34" /><bpmndi:BPMNLabel><dc:Bounds x="1094" y="69" width="100" height="28" /></bpmndi:BPMNLabel></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="review_approved_di" bpmnElement="review_approved"><dc:Bounds x="101" y="207" width="34" height="34" /><bpmndi:BPMNLabel><dc:Bounds x="68" y="245" width="100" height="28" /></bpmndi:BPMNLabel></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="referred_to_retention_di" bpmnElement="referred_to_retention"><dc:Bounds x="1005.2" y="303" width="34" height="34" /><bpmndi:BPMNLabel><dc:Bounds x="972.2" y="341" width="100" height="28" /></bpmndi:BPMNLabel></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="run_credit_decisioning_di" bpmnElement="run_credit_decisioning"><dc:Bounds x="198" y="24" width="120" height="48" /></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="present_loan_terms_di" bpmnElement="present_loan_terms"><dc:Bounds x="547.6" y="200" width="112" height="48" /></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="attempt_customer_retention_di" bpmnElement="attempt_customer_retention"><dc:Bounds x="816.4" y="296" width="128" height="48" /></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="loan_approved_di" bpmnElement="loan_approved" isMarkerVisible="true"><dc:Bounds x="362" y="28" width="40" height="40" /><bpmndi:BPMNLabel><dc:Bounds x="332" y="72" width="100" height="28" /></bpmndi:BPMNLabel></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="terms_accepted_di" bpmnElement="terms_accepted" isMarkerVisible="true"><dc:Bounds x="703.6" y="204" width="40" height="40" /><bpmndi:BPMNLabel><dc:Bounds x="673.6" y="248" width="100" height="28" /></bpmndi:BPMNLabel></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Participant_verify_sme_loan_applicant_di" bpmnElement="Participant_verify_sme_loan_applicant" isHorizontal="true" isExpanded="false"><dc:Bounds x="30" y="418" width="1174" height="60" /></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Participant_provision_sme_loan_di" bpmnElement="Participant_provision_sme_loan" isHorizontal="true" isExpanded="false"><dc:Bounds x="30" y="498" width="1174" height="60" /></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Participant_assess_credit_risk_di" bpmnElement="Participant_assess_credit_risk" isHorizontal="true" isExpanded="false"><dc:Bounds x="30" y="578" width="1174" height="60" /></bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="Flow_1_di" bpmnElement="Flow_1"><di:waypoint x="135" y="48" /><di:waypoint x="198" y="48" /></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_2_di" bpmnElement="Flow_2"><di:waypoint x="318" y="48" /><di:waypoint x="362" y="48" /></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_3_di" bpmnElement="Flow_3"><di:waypoint x="382" y="68" /><di:waypoint x="382" y="224" /><di:waypoint x="547.6" y="224" /><bpmndi:BPMNLabel><dc:Bounds x="345" y="208" width="90" height="18" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_4_di" bpmnElement="Flow_4"><di:waypoint x="382" y="68" /><di:waypoint x="382" y="128" /><di:waypoint x="586.6" y="128" /><bpmndi:BPMNLabel><dc:Bounds x="345" y="112" width="90" height="18" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_5_di" bpmnElement="Flow_5"><di:waypoint x="402" y="48" /><di:waypoint x="1127" y="48" /><bpmndi:BPMNLabel><dc:Bounds x="365" y="32" width="90" height="18" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_6_di" bpmnElement="Flow_6"><di:waypoint x="135" y="224" /><di:waypoint x="547.6" y="224" /></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_7_di" bpmnElement="Flow_7"><di:waypoint x="659.6" y="224" /><di:waypoint x="703.6" y="224" /></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_8_di" bpmnElement="Flow_8"><di:waypoint x="743.6" y="224" /><di:waypoint x="1127" y="224" /><bpmndi:BPMNLabel><dc:Bounds x="706.6" y="208" width="90" height="18" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_9_di" bpmnElement="Flow_9"><di:waypoint x="723.6" y="244" /><di:waypoint x="723.6" y="320" /><di:waypoint x="816.4" y="320" /><bpmndi:BPMNLabel><dc:Bounds x="686.6" y="304" width="90" height="18" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_10_di" bpmnElement="Flow_10"><di:waypoint x="944.4" y="320" /><di:waypoint x="1005.2" y="320" /></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="MessageFlow_handoff_1_di" bpmnElement="MessageFlow_handoff_1"><di:waypoint x="85" y="418" /><di:waypoint x="85" y="48" /><di:waypoint x="101" y="48" /></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="MessageFlow_handoff_2_di" bpmnElement="MessageFlow_handoff_2"><di:waypoint x="1161" y="224" /><di:waypoint x="1177" y="224" /><di:waypoint x="1177" y="498" /></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="MessageFlow_handoff_3_di" bpmnElement="MessageFlow_handoff_3"><di:waypoint x="1161" y="48" /><di:waypoint x="1177" y="48" /><di:waypoint x="1177" y="578" /></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="MessageFlow_handoff_4_di" bpmnElement="MessageFlow_handoff_4"><di:waypoint x="85" y="578" /><di:waypoint x="85" y="224" /><di:waypoint x="101" y="224" /></bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</bpmn:definitions>
