Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
254 lines (253 sloc) 9.09 KB
<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://www.omg.org/spec/DMN/20151101/dmn.xsd" xmlns:biodi="http://bpmn.io/schema/dmn/biodi/1.0" id="dish" name="Dish" namespace="http://camunda.org/schema/1.0/dmn">
<inputData id="dayType_id" name="Type of day">
<extensionElements>
<biodi:bounds x="303" y="363" width="125" height="45" />
</extensionElements>
<variable id="dayType_ii" name="Type of day" typeRef="string" />
</inputData>
<inputData id="temperature_id" name="Weather in Celsius">
<extensionElements>
<biodi:bounds x="105" y="316" width="125" height="45" />
</extensionElements>
<variable id="temperature_ii" name="Weather in Celsius" typeRef="integer" />
</inputData>
<knowledgeSource id="host_ks" name="Host">
<extensionElements>
<biodi:bounds x="595" y="56" width="100" height="63" />
</extensionElements>
</knowledgeSource>
<knowledgeSource id="guest_ks" name="Guest Type">
<extensionElements>
<biodi:bounds x="587" y="194" width="100" height="63" />
<biodi:edge source="guestCount">
<biodi:waypoints x="510" y="226" />
<biodi:waypoints x="587" y="226" />
</biodi:edge>
</extensionElements>
<authorityRequirement>
<requiredDecision href="#guestCount" />
</authorityRequirement>
</knowledgeSource>
<businessKnowledgeModel id="elMenu" name="El menú">
<extensionElements>
<biodi:bounds x="542" y="364" width="135" height="46" />
</extensionElements>
</businessKnowledgeModel>
<decision id="dish-decision" name="Dish Decision">
<extensionElements>
<biodi:bounds x="250" y="56" width="180" height="80" />
<biodi:edge source="guestCount">
<biodi:waypoints x="395" y="186" />
<biodi:waypoints x="365" y="136" />
</biodi:edge>
<biodi:edge source="season">
<biodi:waypoints x="243" y="186" />
<biodi:waypoints x="297" y="136" />
</biodi:edge>
<biodi:edge source="host_ks">
<biodi:waypoints x="595" y="89" />
<biodi:waypoints x="430" y="94" />
</biodi:edge>
</extensionElements>
<informationRequirement>
<requiredDecision href="#guestCount" />
</informationRequirement>
<informationRequirement>
<requiredDecision href="#season" />
</informationRequirement>
<authorityRequirement>
<requiredAuthority href="#host_ks" />
</authorityRequirement>
<decisionTable id="dishDecisionTable">
<input id="seasonInput" label="Season">
<inputExpression id="seasonInputExpression" typeRef="string">
<text>season</text>
</inputExpression>
</input>
<input id="guestCountInput" label="How many guests">
<inputExpression id="guestCountInputExpression" typeRef="integer">
<text>guestCount</text>
</inputExpression>
</input>
<output id="output1" label="Dish" name="desiredDish" typeRef="string" />
<rule id="row-495762709-1">
<inputEntry id="UnaryTests_1nxcsjr">
<text><![CDATA["Winter"]]></text>
</inputEntry>
<inputEntry id="UnaryTests_1r9yorj">
<text><![CDATA[<= 8]]></text>
</inputEntry>
<outputEntry id="LiteralExpression_1mtwzqz">
<text><![CDATA["Spareribs"]]></text>
</outputEntry>
</rule>
<rule id="row-495762709-2">
<inputEntry id="UnaryTests_1lxjbif">
<text><![CDATA["Winter"]]></text>
</inputEntry>
<inputEntry id="UnaryTests_0nhiedb">
<text><![CDATA[> 8]]></text>
</inputEntry>
<outputEntry id="LiteralExpression_1h30r12">
<text><![CDATA["Pasta"]]></text>
</outputEntry>
</rule>
<rule id="row-495762709-3">
<inputEntry id="UnaryTests_0ifgmfm">
<text><![CDATA["Summer"]]></text>
</inputEntry>
<inputEntry id="UnaryTests_12cib9m">
<text><![CDATA[> 10]]></text>
</inputEntry>
<outputEntry id="LiteralExpression_0wgaegy">
<text><![CDATA["Light salad"]]></text>
</outputEntry>
</rule>
<rule id="row-495762709-7">
<inputEntry id="UnaryTests_0ozm9s7">
<text><![CDATA["Summer"]]></text>
</inputEntry>
<inputEntry id="UnaryTests_0sesgov">
<text><![CDATA[<= 10]]></text>
</inputEntry>
<outputEntry id="LiteralExpression_1dvc5x3">
<text><![CDATA["Beans salad"]]></text>
</outputEntry>
</rule>
<rule id="row-445981423-3">
<inputEntry id="UnaryTests_1er0je1">
<text><![CDATA["Spring"]]></text>
</inputEntry>
<inputEntry id="UnaryTests_1uzqner">
<text><![CDATA[< 10]]></text>
</inputEntry>
<outputEntry id="LiteralExpression_1pxy4g1">
<text><![CDATA["Stew"]]></text>
</outputEntry>
</rule>
<rule id="row-445981423-4">
<inputEntry id="UnaryTests_06or48g">
<text><![CDATA["Spring"]]></text>
</inputEntry>
<inputEntry id="UnaryTests_0wa71sy">
<text><![CDATA[>= 10]]></text>
</inputEntry>
<outputEntry id="LiteralExpression_09ggol9">
<text><![CDATA["Steak"]]></text>
</outputEntry>
</rule>
</decisionTable>
</decision>
<decision id="season" name="Season decision">
<extensionElements>
<biodi:bounds x="110" y="186" width="180" height="80" />
<biodi:edge source="temperature_id">
<biodi:waypoints x="180" y="316" />
<biodi:waypoints x="191" y="266" />
</biodi:edge>
</extensionElements>
<informationRequirement>
<requiredInput href="#temperature_id" />
</informationRequirement>
<decisionTable id="seasonDecisionTable">
<input id="temperatureInput" label="Weather in Celsius">
<inputExpression id="temperatureInputExpression" typeRef="integer">
<text>temperature</text>
</inputExpression>
</input>
<output id="seasonOutput" label="season" name="season" typeRef="string" />
<rule id="row-495762709-5">
<inputEntry id="UnaryTests_1fd0eqo">
<text><![CDATA[>30]]></text>
</inputEntry>
<outputEntry id="LiteralExpression_0l98klb">
<text><![CDATA["Summer"]]></text>
</outputEntry>
</rule>
<rule id="row-495762709-6">
<inputEntry id="UnaryTests_1nz6at2">
<text><![CDATA[<10]]></text>
</inputEntry>
<outputEntry id="LiteralExpression_08moy1k">
<text><![CDATA["Winter"]]></text>
</outputEntry>
</rule>
<rule id="row-445981423-2">
<inputEntry id="UnaryTests_1a0imxy">
<text>[10..30]</text>
</inputEntry>
<outputEntry id="LiteralExpression_1poftw4">
<text><![CDATA["Spring"]]></text>
</outputEntry>
</rule>
</decisionTable>
</decision>
<decision id="guestCount" name="Guest Count">
<extensionElements>
<biodi:bounds x="330" y="186" width="180" height="80" />
<biodi:edge source="elMenu">
<biodi:waypoints x="591" y="364" />
<biodi:waypoints x="510" y="265" />
</biodi:edge>
<biodi:edge source="dayType_id">
<biodi:waypoints x="369" y="363" />
<biodi:waypoints x="405" y="266" />
</biodi:edge>
</extensionElements>
<informationRequirement>
<requiredInput href="#dayType_id" />
</informationRequirement>
<knowledgeRequirement>
<requiredKnowledge href="#elMenu" />
</knowledgeRequirement>
<decisionTable id="guestCountDecisionTable">
<input id="typeOfDayInput" label="Type of day">
<inputExpression id="typeOfDayInputExpression" typeRef="string">
<text>dayType</text>
</inputExpression>
</input>
<output id="guestCountOutput" label="Guest count" name="guestCount" typeRef="integer" />
<rule id="row-495762709-8">
<inputEntry id="UnaryTests_0l72u8n">
<text><![CDATA["Weekday"]]></text>
</inputEntry>
<outputEntry id="LiteralExpression_0wuwqaz">
<text>4</text>
</outputEntry>
</rule>
<rule id="row-495762709-9">
<inputEntry id="UnaryTests_03a73o9">
<text><![CDATA["Holiday"]]></text>
</inputEntry>
<outputEntry id="LiteralExpression_1whn119">
<text>10</text>
</outputEntry>
</rule>
<rule id="row-495762709-10">
<inputEntry id="UnaryTests_12tygwt">
<text><![CDATA["Weekend"]]></text>
</inputEntry>
<outputEntry id="LiteralExpression_1b5k9t8">
<text>15</text>
</outputEntry>
</rule>
</decisionTable>
</decision>
<textAnnotation id="TextAnnotation_1">
<extensionElements>
<biodi:bounds x="273" y="466" width="125" height="45" />
</extensionElements>
<text>Week day or week end</text>
</textAnnotation>
<association id="Association_18hoj4i">
<extensionElements>
<biodi:edge source="dayType_id">
<biodi:waypoints x="366" y="408" />
<biodi:waypoints x="336" y="466" />
</biodi:edge>
</extensionElements>
<sourceRef href="#dayType_id" />
<targetRef href="#TextAnnotation_1" />
</association>
</definitions>
You can’t perform that action at this time.