xref: /plugin/bpmnio/data/dmn_close.text (revision 962d7b81eacf3a5589ab5a5379dff53898ee8445)
1    " namespace="http://camunda.org/schema/1.0/dmn">
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="integer" />
7        </inputData>
8        <knowledgeSource id="host_ks" name="Host" />
9        <knowledgeSource id="guest_ks" name="Guest Type">
10        <authorityRequirement id="AuthorityRequirement_0hyfuzo">
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_05tgz9d">
17            <requiredDecision href="#guestCount" />
18        </informationRequirement>
19        <informationRequirement id="InformationRequirement_1r8doop">
20            <requiredDecision href="#season" />
21        </informationRequirement>
22        <authorityRequirement id="AuthorityRequirement_1sk6rin">
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="integer">
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_1vzoh7s">
107            <requiredInput href="#temperature_id" />
108        </informationRequirement>
109        <decisionTable id="seasonDecisionTable">
110            <input id="temperatureInput" label="Weather in Celsius">
111            <inputExpression id="temperatureInputExpression" typeRef="integer">
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_038230q">
144            <requiredInput href="#dayType_id" />
145        </informationRequirement>
146        <knowledgeRequirement id="KnowledgeRequirement_0cql475">
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="integer" />
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_1ejukud">
191                <dmndi:DMNShape id="DMNShape_1pny77l" dmnElementRef="dayType_id">
192                <dc:Bounds height="45" width="125" x="303" y="363" />
193                </dmndi:DMNShape>
194                <dmndi:DMNShape id="DMNShape_1b88mi9" dmnElementRef="temperature_id">
195                <dc:Bounds height="45" width="125" x="105" y="316" />
196                </dmndi:DMNShape>
197                <dmndi:DMNShape id="DMNShape_0w9hu9e" dmnElementRef="host_ks">
198                <dc:Bounds height="63" width="100" x="595" y="56" />
199                </dmndi:DMNShape>
200                <dmndi:DMNShape id="DMNShape_0159egh" dmnElementRef="guest_ks">
201                <dc:Bounds height="63" width="100" x="587" y="194" />
202                </dmndi:DMNShape>
203                <dmndi:DMNEdge id="DMNEdge_1gafs9m" dmnElementRef="AuthorityRequirement_0hyfuzo">
204                <di:waypoint x="510" y="226" />
205                <di:waypoint x="587" y="226" />
206                </dmndi:DMNEdge>
207                <dmndi:DMNShape id="DMNShape_0j9biml" dmnElementRef="elMenu">
208                <dc:Bounds height="46" width="135" x="542" y="364" />
209                </dmndi:DMNShape>
210                <dmndi:DMNShape id="DMNShape_1f9xq97" dmnElementRef="dish-decision">
211                <dc:Bounds height="80" width="180" x="250" y="56" />
212                </dmndi:DMNShape>
213                <dmndi:DMNEdge id="DMNEdge_0wk9owu" dmnElementRef="InformationRequirement_05tgz9d">
214                <di:waypoint x="395" y="186" />
215                <di:waypoint x="365" y="136" />
216                </dmndi:DMNEdge>
217                <dmndi:DMNEdge id="DMNEdge_0glygnk" dmnElementRef="InformationRequirement_1r8doop">
218                <di:waypoint x="243" y="186" />
219                <di:waypoint x="297" y="136" />
220                </dmndi:DMNEdge>
221                <dmndi:DMNEdge id="DMNEdge_1jf14ck" dmnElementRef="AuthorityRequirement_1sk6rin">
222                <di:waypoint x="595" y="89" />
223                <di:waypoint x="430" y="94" />
224                </dmndi:DMNEdge>
225                <dmndi:DMNShape id="DMNShape_1dlhv62" dmnElementRef="season">
226                <dc:Bounds height="80" width="180" x="110" y="186" />
227                </dmndi:DMNShape>
228                <dmndi:DMNEdge id="DMNEdge_01c572k" dmnElementRef="InformationRequirement_1vzoh7s">
229                <di:waypoint x="180" y="316" />
230                <di:waypoint x="191" y="266" />
231                </dmndi:DMNEdge>
232                <dmndi:DMNShape id="DMNShape_0tndkvg" dmnElementRef="guestCount">
233                <dc:Bounds height="80" width="180" x="330" y="186" />
234                </dmndi:DMNShape>
235                <dmndi:DMNEdge id="DMNEdge_0wrc9rz" dmnElementRef="KnowledgeRequirement_0cql475">
236                <di:waypoint x="591" y="364" />
237                <di:waypoint x="510" y="265" />
238                </dmndi:DMNEdge>
239                <dmndi:DMNEdge id="DMNEdge_0m045nr" dmnElementRef="InformationRequirement_038230q">
240                <di:waypoint x="369" y="363" />
241                <di:waypoint x="405" y="266" />
242                </dmndi:DMNEdge>
243                <dmndi:DMNShape id="DMNShape_1izzhzd" dmnElementRef="TextAnnotation_1">
244                <dc:Bounds height="45" width="125" x="273" y="466" />
245                </dmndi:DMNShape>
246                <dmndi:DMNEdge id="DMNEdge_1mkr3rl" dmnElementRef="Association_18hoj4i">
247                <di:waypoint x="366" y="408" />
248                <di:waypoint x="336" y="466" />
249                </dmndi:DMNEdge>
250            </dmndi:DMNDiagram>
251        </dmndi:DMNDI>
252    </definitions>
253</bpmnio>
254