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