<?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_f6aLe3Jf" 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="incident-severity" name="Incident severity">
    <decisionTable id="DecisionTable_C0FVPFgl" hitPolicy="FIRST">
      <input id="Input_CSot0n5L" label="Customers affected">
        <inputExpression id="InputExpression_buN87ns5" typeRef="number">
          <text>affectedCustomers</text>
        </inputExpression>
      </input>
      <input id="Input_dlt9gStL" label="Error rate">
        <inputExpression id="InputExpression_ammmlyzF" typeRef="number">
          <text>errorRate</text>
        </inputExpression>
      </input>
      <output id="Output_dC00sZPM" label="Severity" name="severity" typeRef="string"/>
      <rule id="DecisionRule_biS6Q0rb">
        <description>Broad customer outage</description>
        <inputEntry id="UnaryTests_p31Nsl7v">
          <text>&gt;= 100</text>
        </inputEntry>
        <inputEntry id="UnaryTests_D7fDOiyb">
          <text>&gt;= 0.05</text>
        </inputEntry>
        <outputEntry id="LiteralExpression_M2q4Z8lw">
          <text>"sev1"</text>
        </outputEntry>
      </rule>
      <rule id="DecisionRule_9EpkQJBt">
        <description>Customer-facing degradation</description>
        <inputEntry id="UnaryTests_lghjIxTA">
          <text>&gt; 0</text>
        </inputEntry>
        <inputEntry id="UnaryTests_Ofas9RaP">
          <text>-</text>
        </inputEntry>
        <outputEntry id="LiteralExpression_GcDBiDdg">
          <text>"sev2"</text>
        </outputEntry>
      </rule>
      <rule id="DecisionRule_tQuSI9o6">
        <description>Internal but severe</description>
        <inputEntry id="UnaryTests_YKJX60gh">
          <text>-</text>
        </inputEntry>
        <inputEntry id="UnaryTests_lOteCQin">
          <text>&gt;= 0.2</text>
        </inputEntry>
        <outputEntry id="LiteralExpression_UpY9RvNr">
          <text>"sev2"</text>
        </outputEntry>
      </rule>
      <rule id="DecisionRule_JPya4CEL">
        <description>Everything else</description>
        <inputEntry id="UnaryTests_zHjaT4Xp">
          <text>-</text>
        </inputEntry>
        <inputEntry id="UnaryTests_iHVGNXv3">
          <text>-</text>
        </inputEntry>
        <outputEntry id="LiteralExpression_oGeWU9jC">
          <text>"sev3"</text>
        </outputEntry>
      </rule>
    </decisionTable>
  </decision>
  <dmndi:DMNDI>
    <dmndi:DMNDiagram>
      <dmndi:DMNShape dmnElementRef="incident-severity">
        <dc:Bounds height="80" width="180" x="160" y="100"/>
      </dmndi:DMNShape>
    </dmndi:DMNDiagram>
  </dmndi:DMNDI>
</definitions>

