<?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_m2AyX7Nl" 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_PVWxaHBk" hitPolicy="FIRST">
      <input id="Input_NxqaImh5" label="Order total">
        <inputExpression id="InputExpression_dh6JdjIz" typeRef="number">
          <text>orderTotal</text>
        </inputExpression>
      </input>
      <input id="Input_Ara4IiUr" label="Customer rating">
        <inputExpression id="InputExpression_K5grOKwC" typeRef="string">
          <text>customerRating</text>
        </inputExpression>
      </input>
      <output id="Output_yR9CODrd" label="Decision" name="decision" typeRef="string"/>
      <output id="Output_RijT8cCG" label="Payment terms (days)" name="termsDays" typeRef="number"/>
      <rule id="DecisionRule_ED1Gge6z">
        <description>Poor rating</description>
        <inputEntry id="UnaryTests_iT6847Hk">
          <text>-</text>
        </inputEntry>
        <inputEntry id="UnaryTests_ZusefqqP">
          <text>"C"</text>
        </inputEntry>
        <outputEntry id="LiteralExpression_mB54RHDQ">
          <text>"decline"</text>
        </outputEntry>
        <outputEntry id="LiteralExpression_ySd3xrXm">
          <text>0</text>
        </outputEntry>
      </rule>
      <rule id="DecisionRule_aF4wZG5U">
        <description>Over credit limit</description>
        <inputEntry id="UnaryTests_vq5loqnf">
          <text>&gt; 25000</text>
        </inputEntry>
        <inputEntry id="UnaryTests_e30tEh19">
          <text>-</text>
        </inputEntry>
        <outputEntry id="LiteralExpression_ddiVucHn">
          <text>"decline"</text>
        </outputEntry>
        <outputEntry id="LiteralExpression_QxwPO1Ck">
          <text>0</text>
        </outputEntry>
      </rule>
      <rule id="DecisionRule_g6lvYuCN">
        <description>Good customer</description>
        <inputEntry id="UnaryTests_2phLU4Uq">
          <text>&lt;= 5000</text>
        </inputEntry>
        <inputEntry id="UnaryTests_BCOJYjSo">
          <text>"A"</text>
        </inputEntry>
        <outputEntry id="LiteralExpression_u76aHm2v">
          <text>"approve"</text>
        </outputEntry>
        <outputEntry id="LiteralExpression_427hqevW">
          <text>30</text>
        </outputEntry>
      </rule>
      <rule id="DecisionRule_U0rQzrP3">
        <description>Default terms</description>
        <inputEntry id="UnaryTests_OhXHHOa2">
          <text>-</text>
        </inputEntry>
        <inputEntry id="UnaryTests_ac3FfdIO">
          <text>-</text>
        </inputEntry>
        <outputEntry id="LiteralExpression_JNR2hbBH">
          <text>"approve"</text>
        </outputEntry>
        <outputEntry id="LiteralExpression_DApiych8">
          <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>

