<?xml version="1.0" encoding="UTF-8"?>
<!-- Example 3: which team takes a service request and in how many days. Request type, priority and customer tier come from Jira (Jira Service Management). Synthetic example of Flower BPM. -->
<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:di="http://www.omg.org/spec/DMN/20180521/DI/" id="request-triage_defs" name="Request triage" namespace="https://flower-bpm.com/dmn/examples">
  <decision id="triage" name="Triage">

    <decisionTable id="triage_table" hitPolicy="FIRST">
      <input id="in_1" label="Request type"><inputExpression id="ie_2" typeRef="string"><text>pi.fields.customfield_10010.requestType.name</text></inputExpression></input>
      <input id="in_3" label="Priority"><inputExpression id="ie_4" typeRef="string"><text>pi.fields.priority.name</text></inputExpression></input>
      <input id="in_5" label="Customer tier"><inputExpression id="ie_6" typeRef="string"><text>pi.fields.customfield_10103.value</text></inputExpression></input>
      <output id="out_7" label="Team" name="team" typeRef="string"></output>
      <output id="out_8" label="Days" name="days" typeRef="number"></output>
      <rule id="r_9"><description>Outage of a gold customer</description><inputEntry id="e_10"><text>&quot;Report an outage&quot;</text></inputEntry><inputEntry id="e_11"><text>-</text></inputEntry><inputEntry id="e_12"><text>&quot;Gold&quot;</text></inputEntry><outputEntry id="o_13"><text>&quot;Specialists&quot;</text></outputEntry><outputEntry id="o_14"><text>1</text></outputEntry></rule>
      <rule id="r_15"><description>Outage</description><inputEntry id="e_16"><text>&quot;Report an outage&quot;</text></inputEntry><inputEntry id="e_17"><text>-</text></inputEntry><inputEntry id="e_18"><text>-</text></inputEntry><outputEntry id="o_19"><text>&quot;2nd level&quot;</text></outputEntry><outputEntry id="o_20"><text>1</text></outputEntry></rule>
      <rule id="r_21"><description>Urgent bug</description><inputEntry id="e_22"><text>&quot;Report a bug&quot;</text></inputEntry><inputEntry id="e_23"><text>&quot;Highest&quot;, &quot;High&quot;</text></inputEntry><inputEntry id="e_24"><text>-</text></inputEntry><outputEntry id="o_25"><text>&quot;2nd level&quot;</text></outputEntry><outputEntry id="o_26"><text>2</text></outputEntry></rule>
      <rule id="r_27"><description>Bug</description><inputEntry id="e_28"><text>&quot;Report a bug&quot;</text></inputEntry><inputEntry id="e_29"><text>-</text></inputEntry><inputEntry id="e_30"><text>-</text></inputEntry><outputEntry id="o_31"><text>&quot;2nd level&quot;</text></outputEntry><outputEntry id="o_32"><text>5</text></outputEntry></rule>
      <rule id="r_33"><description>Gold customers get answers faster</description><inputEntry id="e_34"><text>-</text></inputEntry><inputEntry id="e_35"><text>-</text></inputEntry><inputEntry id="e_36"><text>&quot;Gold&quot;</text></inputEntry><outputEntry id="o_37"><text>&quot;1st level&quot;</text></outputEntry><outputEntry id="o_38"><text>2</text></outputEntry></rule>
      <rule id="r_39"><description>Everything else</description><inputEntry id="e_40"><text>-</text></inputEntry><inputEntry id="e_41"><text>-</text></inputEntry><inputEntry id="e_42"><text>-</text></inputEntry><outputEntry id="o_43"><text>&quot;1st level&quot;</text></outputEntry><outputEntry id="o_44"><text>5</text></outputEntry></rule>
    </decisionTable>
  </decision>
  <dmndi:DMNDI><dmndi:DMNDiagram id="request-triage_drd">
      <dmndi:DMNShape id="triage_di" dmnElementRef="triage"><dc:Bounds height="80" width="180" x="160" y="80" /></dmndi:DMNShape>

  </dmndi:DMNDiagram></dmndi:DMNDI>
</definitions>
