1<?xml version="1.0" encoding="UTF-8"?> 2<definitions 3 xmlns="https://www.omg.org/spec/DMN/20191111/MODEL/" 4 xmlns:dmndi="https://www.omg.org/spec/DMN/20191111/DMNDI/" 5 xmlns:dc="http://www.omg.org/spec/DMN/20180521/DC/" 6 xmlns:di="http://www.omg.org/spec/DMN/20180521/DI/" 7 namespace="http://camunda.org/schema/1.0/dmn" 8 exporter="dmn-js (https://demo.bpmn.io/dmn)" 9 exporterVersion="17.0.2" 10 name="Add a DMN diagram"> 11 <inputData id="dayType_id" name="Type of day"> 12 <variable id="dayType_ii" name="Type of day" typeRef="string" /> 13 </inputData> 14 <inputData id="temperature_id" name="Weather in Celsius"> 15 <variable id="temperature_ii" name="Weather in Celsius" typeRef="number" /> 16 </inputData> 17 <knowledgeSource id="host_ks" name="Host" /> 18 <knowledgeSource id="guest_ks" name="Guest Type"> 19 <authorityRequirement id="AuthorityRequirement_0vkhray"> 20 <requiredDecision href="#guestCount" /> 21 </authorityRequirement> 22 </knowledgeSource> 23 <businessKnowledgeModel id="elMenu" name="El menu" /> 24 <decision id="dish-decision" name="Dish Decision"> 25 <informationRequirement id="InformationRequirement_1d56kg6"> 26 <requiredDecision href="#guestCount" /> 27 </informationRequirement> 28 <informationRequirement id="InformationRequirement_11onl5b"> 29 <requiredDecision href="#season" /> 30 </informationRequirement> 31 <authorityRequirement id="AuthorityRequirement_142y75e"> 32 <requiredAuthority href="#host_ks" /> 33 </authorityRequirement> 34 <decisionTable id="dishDecisionTable"> 35 <input id="seasonInput" label="Season"> 36 <inputExpression id="seasonInputExpression" typeRef="string"> 37 <text>season</text> 38 </inputExpression> 39 </input> 40 <input id="guestCountInput" label="How many guests"> 41 <inputExpression id="guestCountInputExpression" typeRef="number"> 42 <text>guestCount</text> 43 </inputExpression> 44 </input> 45 <output id="output1" label="Dish" name="desiredDish" typeRef="string" /> 46 <rule id="row-495762709-1"> 47 <inputEntry id="UnaryTests_1nxcsjr"> 48 <text>"Winter"</text> 49 </inputEntry> 50 <inputEntry id="UnaryTests_1r9yorj"> 51 <text><= 8</text> 52 </inputEntry> 53 <outputEntry id="LiteralExpression_1mtwzqz"> 54 <text>"Spareribs"</text> 55 </outputEntry> 56 </rule> 57 <rule id="row-495762709-2"> 58 <inputEntry id="UnaryTests_1lxjbif"> 59 <text>"Winter"</text> 60 </inputEntry> 61 <inputEntry id="UnaryTests_0nhiedb"> 62 <text>> 8</text> 63 </inputEntry> 64 <outputEntry id="LiteralExpression_1h30r12"> 65 <text>"Pasta"</text> 66 </outputEntry> 67 </rule> 68 <rule id="row-495762709-3"> 69 <inputEntry id="UnaryTests_0ifgmfm"> 70 <text>"Summer"</text> 71 </inputEntry> 72 <inputEntry id="UnaryTests_12cib9m"> 73 <text>> 10</text> 74 </inputEntry> 75 <outputEntry id="LiteralExpression_0wgaegy"> 76 <text>"Light salad"</text> 77 </outputEntry> 78 </rule> 79 <rule id="row-495762709-7"> 80 <inputEntry id="UnaryTests_0ozm9s7"> 81 <text>"Summer"</text> 82 </inputEntry> 83 <inputEntry id="UnaryTests_0sesgov"> 84 <text><= 10</text> 85 </inputEntry> 86 <outputEntry id="LiteralExpression_1dvc5x3"> 87 <text>"Beans salad"</text> 88 </outputEntry> 89 </rule> 90 <rule id="row-445981423-3"> 91 <inputEntry id="UnaryTests_1er0je1"> 92 <text>"Spring"</text> 93 </inputEntry> 94 <inputEntry id="UnaryTests_1uzqner"> 95 <text>< 10</text> 96 </inputEntry> 97 <outputEntry id="LiteralExpression_1pxy4g1"> 98 <text>"Stew"</text> 99 </outputEntry> 100 </rule> 101 <rule id="row-445981423-4"> 102 <inputEntry id="UnaryTests_06or48g"> 103 <text>"Spring"</text> 104 </inputEntry> 105 <inputEntry id="UnaryTests_0wa71sy"> 106 <text>>= 10</text> 107 </inputEntry> 108 <outputEntry id="LiteralExpression_09ggol9"> 109 <text>"Steak"</text> 110 </outputEntry> 111 </rule> 112 </decisionTable> 113 </decision> 114 <decision id="season" name="Season decision"> 115 <informationRequirement id="InformationRequirement_1sdwefx"> 116 <requiredInput href="#temperature_id" /> 117 </informationRequirement> 118 <decisionTable id="seasonDecisionTable"> 119 <input id="temperatureInput" label="Weather in Celsius"> 120 <inputExpression id="temperatureInputExpression" typeRef="number"> 121 <text>temperature</text> 122 </inputExpression> 123 </input> 124 <output id="seasonOutput" label="season" name="season" typeRef="string" /> 125 <rule id="row-495762709-5"> 126 <inputEntry id="UnaryTests_1fd0eqo"> 127 <text>>30</text> 128 </inputEntry> 129 <outputEntry id="LiteralExpression_0l98klb"> 130 <text>"Summer"</text> 131 </outputEntry> 132 </rule> 133 <rule id="row-495762709-6"> 134 <inputEntry id="UnaryTests_1nz6at2"> 135 <text><10</text> 136 </inputEntry> 137 <outputEntry id="LiteralExpression_08moy1k"> 138 <text>"Winter"</text> 139 </outputEntry> 140 </rule> 141 <rule id="row-445981423-2"> 142 <inputEntry id="UnaryTests_1a0imxy"> 143 <text>[10..30]</text> 144 </inputEntry> 145 <outputEntry id="LiteralExpression_1poftw4"> 146 <text>"Spring"</text> 147 </outputEntry> 148 </rule> 149 </decisionTable> 150 </decision> 151 <decision id="guestCount" name="Guest Count"> 152 <informationRequirement id="InformationRequirement_0j60f3j"> 153 <requiredInput href="#dayType_id" /> 154 </informationRequirement> 155 <knowledgeRequirement id="KnowledgeRequirement_0n56cqb"> 156 <requiredKnowledge href="#elMenu" /> 157 </knowledgeRequirement> 158 <decisionTable id="guestCountDecisionTable"> 159 <input id="typeOfDayInput" label="Type of day"> 160 <inputExpression id="typeOfDayInputExpression" typeRef="string"> 161 <text>dayType</text> 162 </inputExpression> 163 </input> 164 <output id="guestCountOutput" label="Guest count" name="guestCount" typeRef="number" /> 165 <rule id="row-495762709-8"> 166 <inputEntry id="UnaryTests_0l72u8n"> 167 <text>"Weekday"</text> 168 </inputEntry> 169 <outputEntry id="LiteralExpression_0wuwqaz"> 170 <text>4</text> 171 </outputEntry> 172 </rule> 173 <rule id="row-495762709-9"> 174 <inputEntry id="UnaryTests_03a73o9"> 175 <text>"Holiday"</text> 176 </inputEntry> 177 <outputEntry id="LiteralExpression_1whn119"> 178 <text>10</text> 179 </outputEntry> 180 </rule> 181 <rule id="row-495762709-10"> 182 <inputEntry id="UnaryTests_12tygwt"> 183 <text>"Weekend"</text> 184 </inputEntry> 185 <outputEntry id="LiteralExpression_1b5k9t8"> 186 <text>15</text> 187 </outputEntry> 188 </rule> 189 </decisionTable> 190 </decision> 191 <textAnnotation id="TextAnnotation_1"> 192 <text>Week day or week end</text> 193 </textAnnotation> 194 <association id="Association_18hoj4i"> 195 <sourceRef href="#dayType_id" /> 196 <targetRef href="#TextAnnotation_1" /> 197 </association> 198 <dmndi:DMNDI> 199 <dmndi:DMNDiagram id="DMNDiagram_05sfxgt"> 200 <dmndi:DMNShape id="DMNShape_1nkrqp5" dmnElementRef="dayType_id"> 201 <dc:Bounds height="45" width="125" x="417" y="377" /> 202 </dmndi:DMNShape> 203 <dmndi:DMNShape id="DMNShape_0wgwr3t" dmnElementRef="temperature_id"> 204 <dc:Bounds height="45" width="125" x="188" y="377" /> 205 </dmndi:DMNShape> 206 <dmndi:DMNShape id="DMNShape_17n98pm" dmnElementRef="host_ks"> 207 <dc:Bounds height="63" width="100" x="646" y="48" /> 208 </dmndi:DMNShape> 209 <dmndi:DMNShape id="DMNShape_1i9incu" dmnElementRef="guest_ks"> 210 <dc:Bounds height="63" width="100" x="660" y="198" /> 211 </dmndi:DMNShape> 212 <dmndi:DMNEdge id="DMNEdge_0tdfvdg" dmnElementRef="AuthorityRequirement_0vkhray"> 213 <di:waypoint x="570" y="245" /> 214 <di:waypoint x="660" y="235" /> 215 </dmndi:DMNEdge> 216 <dmndi:DMNShape id="DMNShape_1uo50vq" dmnElementRef="elMenu"> 217 <dc:Bounds height="46" width="135" x="642" y="307" /> 218 </dmndi:DMNShape> 219 <dmndi:DMNShape id="DMNShape_0s7a8pk" dmnElementRef="dish-decision"> 220 <dc:Bounds height="80" width="180" x="301" y="48" /> 221 </dmndi:DMNShape> 222 <dmndi:DMNEdge id="DMNEdge_1cvfntf" dmnElementRef="InformationRequirement_1d56kg6"> 223 <di:waypoint x="480" y="210" /> 224 <di:waypoint x="421" y="148" /> 225 <di:waypoint x="421" y="128" /> 226 </dmndi:DMNEdge> 227 <dmndi:DMNEdge id="DMNEdge_0djoiii" dmnElementRef="InformationRequirement_11onl5b"> 228 <di:waypoint x="251" y="210" /> 229 <di:waypoint x="361" y="148" /> 230 <di:waypoint x="361" y="128" /> 231 </dmndi:DMNEdge> 232 <dmndi:DMNEdge id="DMNEdge_0qqxexx" dmnElementRef="AuthorityRequirement_142y75e"> 233 <di:waypoint x="646" y="81" /> 234 <di:waypoint x="481" y="86" /> 235 </dmndi:DMNEdge> 236 <dmndi:DMNShape id="DMNShape_06z5z89" dmnElementRef="season"> 237 <dc:Bounds height="80" width="180" x="161" y="210" /> 238 </dmndi:DMNShape> 239 <dmndi:DMNEdge id="DMNEdge_1383eyj" dmnElementRef="InformationRequirement_1sdwefx"> 240 <di:waypoint x="251" y="377" /> 241 <di:waypoint x="251" y="310" /> 242 <di:waypoint x="251" y="290" /> 243 </dmndi:DMNEdge> 244 <dmndi:DMNShape id="DMNShape_0qbhe8q" dmnElementRef="guestCount"> 245 <dc:Bounds height="80" width="180" x="390" y="210" /> 246 </dmndi:DMNShape> 247 <dmndi:DMNEdge id="DMNEdge_131oa1j" dmnElementRef="KnowledgeRequirement_0n56cqb"> 248 <di:waypoint x="691" y="307" /> 249 <di:waypoint x="570" y="262" /> 250 </dmndi:DMNEdge> 251 <dmndi:DMNEdge id="DMNEdge_1avtdb1" dmnElementRef="InformationRequirement_0j60f3j"> 252 <di:waypoint x="480" y="377" /> 253 <di:waypoint x="480" y="310" /> 254 <di:waypoint x="480" y="290" /> 255 </dmndi:DMNEdge> 256 <dmndi:DMNShape id="DMNShape_0bblyhb" dmnElementRef="TextAnnotation_1"> 257 <dc:Bounds height="45" width="125" x="328" y="477" /> 258 </dmndi:DMNShape> 259 <dmndi:DMNEdge id="DMNEdge_0aqnkob" dmnElementRef="Association_18hoj4i"> 260 <di:waypoint x="480" y="422" /> 261 <di:waypoint x="391" y="477" /> 262 </dmndi:DMNEdge> 263 </dmndi:DMNDiagram> 264 </dmndi:DMNDI> 265</definitions> 266