<?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_udSK4b1c" 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="credit-decision" name="Credit decision">
    <decisionTable id="DecisionTable_l2GKe8hP" hitPolicy="FIRST">
      <input id="Input_BlYRdfqf" label="Order total">
        <inputExpression id="InputExpression_YeB8L2mw" typeRef="number">
          <text>orderTotal</text>
        </inputExpression>
      </input>
      <input id="Input_ve5X3wHF" label="Customer rating">
        <inputExpression id="InputExpression_qvF2WUpp" typeRef="string">
          <text>customerRating</text>
        </inputExpression>
      </input>
      <output id="Output_ZAjdi8fT" label="Decision" name="decision" typeRef="string"/>
      <output id="Output_cJDPahWx" label="Payment terms (days)" name="termsDays" typeRef="number"/>
      <rule id="DecisionRule_bbKYmaf1">
        <description>Poor rating</description>
        <inputEntry id="UnaryTests_Cat7BXZu">
          <text>-</text>
        </inputEntry>
        <inputEntry id="UnaryTests_o9JgSdoi">
          <text>"C"</text>
        </inputEntry>
        <outputEntry id="LiteralExpression_UzjQ43IR">
          <text>"decline"</text>
        </outputEntry>
        <outputEntry id="LiteralExpression_wLH6g5aX">
          <text>0</text>
        </outputEntry>
      </rule>
      <rule id="DecisionRule_QmYpEG8y">
        <description>Over credit limit</description>
        <inputEntry id="UnaryTests_89ZkakRf">
          <text>&gt; 25000</text>
        </inputEntry>
        <inputEntry id="UnaryTests_0qEwJkqA">
          <text>-</text>
        </inputEntry>
        <outputEntry id="LiteralExpression_8pvG3iZz">
          <text>"decline"</text>
        </outputEntry>
        <outputEntry id="LiteralExpression_fEkLSzKn">
          <text>0</text>
        </outputEntry>
      </rule>
      <rule id="DecisionRule_kSyk6b7t">
        <description>Good customer</description>
        <inputEntry id="UnaryTests_XNs6sr6k">
          <text>&lt;= 5000</text>
        </inputEntry>
        <inputEntry id="UnaryTests_n4VppfKt">
          <text>"A"</text>
        </inputEntry>
        <outputEntry id="LiteralExpression_hAR57Q8T">
          <text>"approve"</text>
        </outputEntry>
        <outputEntry id="LiteralExpression_VggWfrBe">
          <text>30</text>
        </outputEntry>
      </rule>
      <rule id="DecisionRule_ptm2mWXy">
        <description>Default terms</description>
        <inputEntry id="UnaryTests_lfL4lebe">
          <text>-</text>
        </inputEntry>
        <inputEntry id="UnaryTests_PcN18IB9">
          <text>-</text>
        </inputEntry>
        <outputEntry id="LiteralExpression_TY3rmr5P">
          <text>"approve"</text>
        </outputEntry>
        <outputEntry id="LiteralExpression_JNY0D2GK">
          <text>14</text>
        </outputEntry>
      </rule>
    </decisionTable>
  </decision>
  <dmndi:DMNDI>
    <dmndi:DMNDiagram>
      <dmndi:DMNShape dmnElementRef="credit-decision">
        <dc:Bounds height="80" width="180" x="160" y="100"/>
      </dmndi:DMNShape>
    </dmndi:DMNDiagram>
  </dmndi:DMNDI>
</definitions>

