<?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_dSq3lsHP" 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_bQc0u0iV" hitPolicy="FIRST">
      <input id="Input_9l1Ky4gH" label="Identity check">
        <inputExpression id="InputExpression_EcefoUJL" typeRef="string">
          <text>identityStatus</text>
        </inputExpression>
      </input>
      <input id="Input_dPVfNngC" label="Sanction hits">
        <inputExpression id="InputExpression_wHx3tSku" typeRef="number">
          <text>sanctionHits</text>
        </inputExpression>
      </input>
      <input id="Input_M7tBIC6l" label="Country risk">
        <inputExpression id="InputExpression_snIvgFdW" typeRef="string">
          <text>countryRisk</text>
        </inputExpression>
      </input>
      <output id="Output_JCb4ZFvJ" label="Risk tier" name="tier" typeRef="string"/>
      <rule id="DecisionRule_WZ0Rnh50">
        <description>Unverified identity</description>
        <inputEntry id="UnaryTests_XrFlWX8L">
          <text>"failed"</text>
        </inputEntry>
        <inputEntry id="UnaryTests_PSKNaZ4p">
          <text>-</text>
        </inputEntry>
        <inputEntry id="UnaryTests_zNuXd71h">
          <text>-</text>
        </inputEntry>
        <outputEntry id="LiteralExpression_LyzAdPx2">
          <text>"high"</text>
        </outputEntry>
      </rule>
      <rule id="DecisionRule_QAB0KqhS">
        <description>Possible sanctions match</description>
        <inputEntry id="UnaryTests_vb54JgeX">
          <text>-</text>
        </inputEntry>
        <inputEntry id="UnaryTests_Vx0ez4mA">
          <text>&gt; 0</text>
        </inputEntry>
        <inputEntry id="UnaryTests_OUJEgNEB">
          <text>-</text>
        </inputEntry>
        <outputEntry id="LiteralExpression_iZxYaV3O">
          <text>"high"</text>
        </outputEntry>
      </rule>
      <rule id="DecisionRule_96mbo8wj">
        <description>High-risk jurisdiction</description>
        <inputEntry id="UnaryTests_DxWX8Ln9">
          <text>-</text>
        </inputEntry>
        <inputEntry id="UnaryTests_slxLHNKt">
          <text>-</text>
        </inputEntry>
        <inputEntry id="UnaryTests_wrZrwYij">
          <text>"high"</text>
        </inputEntry>
        <outputEntry id="LiteralExpression_Xf394ykW">
          <text>"medium"</text>
        </outputEntry>
      </rule>
      <rule id="DecisionRule_KcVAgaAK">
        <description>Everything else</description>
        <inputEntry id="UnaryTests_WfeRSc3O">
          <text>-</text>
        </inputEntry>
        <inputEntry id="UnaryTests_3iruFnoB">
          <text>-</text>
        </inputEntry>
        <inputEntry id="UnaryTests_G1TxzfLh">
          <text>-</text>
        </inputEntry>
        <outputEntry id="LiteralExpression_026ZDgGr">
          <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>

