<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="https://www.omg.org/spec/DMN/20191111/MODEL/" xmlns:dmndi="https://www.omg.org/spec/DMN/20191111/DMNDI/" xmlns:dc="http://www.omg.org/spec/DMN/20180521/DC/" xmlns:modeler="http://camunda.org/schema/modeler/1.0" id="Definitions_d13HaAk1" name="DRD" namespace="http://camunda.org/schema/1.0/dmn" exporter="bpmn-sdk" exporterVersion="0.0.1" modeler:executionPlatform="Camunda Cloud" modeler:executionPlatformVersion="8.5.0">
  <decision id="kyc-risk-tier" name="KYC risk tier">
    <decisionTable id="DecisionTable_YNlzCogw" hitPolicy="FIRST">
      <input id="Input_exkdoE0B" label="Identity check">
        <inputExpression id="InputExpression_7fQ6V6rI" typeRef="string">
          <text>identityStatus</text>
        </inputExpression>
      </input>
      <input id="Input_vXatM2Pe" label="Sanction hits">
        <inputExpression id="InputExpression_2KwMHCPm" typeRef="number">
          <text>sanctionHits</text>
        </inputExpression>
      </input>
      <input id="Input_jJu8bBg8" label="Country risk">
        <inputExpression id="InputExpression_PFuGnPzG" typeRef="string">
          <text>countryRisk</text>
        </inputExpression>
      </input>
      <output id="Output_znBV0PQc" label="Risk tier" name="tier" typeRef="string"/>
      <rule id="DecisionRule_IsVUzx7z">
        <description>Unverified identity</description>
        <inputEntry id="UnaryTests_X6uxEsu0">
          <text>"failed"</text>
        </inputEntry>
        <inputEntry id="UnaryTests_l9RPikLI">
          <text>-</text>
        </inputEntry>
        <inputEntry id="UnaryTests_bsFUPOfE">
          <text>-</text>
        </inputEntry>
        <outputEntry id="LiteralExpression_BGGUmNPN">
          <text>"high"</text>
        </outputEntry>
      </rule>
      <rule id="DecisionRule_PtgQRqjb">
        <description>Possible sanctions match</description>
        <inputEntry id="UnaryTests_6XMxXbFo">
          <text>-</text>
        </inputEntry>
        <inputEntry id="UnaryTests_dL2wzSvG">
          <text>&gt; 0</text>
        </inputEntry>
        <inputEntry id="UnaryTests_1pLnLUbU">
          <text>-</text>
        </inputEntry>
        <outputEntry id="LiteralExpression_g1XwGAgP">
          <text>"high"</text>
        </outputEntry>
      </rule>
      <rule id="DecisionRule_OXZZsjZz">
        <description>High-risk jurisdiction</description>
        <inputEntry id="UnaryTests_MF2r3Smd">
          <text>-</text>
        </inputEntry>
        <inputEntry id="UnaryTests_ZjNJsMr6">
          <text>-</text>
        </inputEntry>
        <inputEntry id="UnaryTests_l2IVgBLG">
          <text>"high"</text>
        </inputEntry>
        <outputEntry id="LiteralExpression_IC3PpeaI">
          <text>"medium"</text>
        </outputEntry>
      </rule>
      <rule id="DecisionRule_6kIAEHGU">
        <description>Everything else</description>
        <inputEntry id="UnaryTests_fJIR3dNO">
          <text>-</text>
        </inputEntry>
        <inputEntry id="UnaryTests_9i3JL0O2">
          <text>-</text>
        </inputEntry>
        <inputEntry id="UnaryTests_wODa1ggr">
          <text>-</text>
        </inputEntry>
        <outputEntry id="LiteralExpression_aW8XaJD5">
          <text>"low"</text>
        </outputEntry>
      </rule>
    </decisionTable>
  </decision>
  <dmndi:DMNDI>
    <dmndi:DMNDiagram>
      <dmndi:DMNShape dmnElementRef="kyc-risk-tier">
        <dc:Bounds height="80" width="180" x="160" y="100"/>
      </dmndi:DMNShape>
    </dmndi:DMNDiagram>
  </dmndi:DMNDI>
</definitions>

