58 lines
2.2 KiB
XML
58 lines
2.2 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<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/" id="Definitions_76910d7" name="DRD" namespace="http://camunda.org/schema/1.0/dmn">
|
|
<decision id="decision_1" name="pizza_cost">
|
|
<decisionTable id="decisionTable_1">
|
|
<input id="input_1">
|
|
<inputExpression id="inputExpression_1" typeRef="string">
|
|
<text>pizza_size</text>
|
|
</inputExpression>
|
|
</input>
|
|
<output id="output_1" name="base_price" typeRef="string" />
|
|
<output id="OutputClause_15k9tra" label="topping_price" typeRef="string" />
|
|
<rule id="DecisionRule_0i4b74k">
|
|
<description>small pizza</description>
|
|
<inputEntry id="UnaryTests_17n3onl">
|
|
<text>"small"</text>
|
|
</inputEntry>
|
|
<outputEntry id="LiteralExpression_13f6id7">
|
|
<text>12.99</text>
|
|
</outputEntry>
|
|
<outputEntry id="LiteralExpression_1v7j0nk">
|
|
<text>0.50</text>
|
|
</outputEntry>
|
|
</rule>
|
|
<rule id="DecisionRule_02truu0">
|
|
<description>medium pizza</description>
|
|
<inputEntry id="UnaryTests_0negt1m">
|
|
<text>"medium"</text>
|
|
</inputEntry>
|
|
<outputEntry id="LiteralExpression_1u7t5hw">
|
|
<text>14.99</text>
|
|
</outputEntry>
|
|
<outputEntry id="LiteralExpression_0bethe5">
|
|
<text>1.00</text>
|
|
</outputEntry>
|
|
</rule>
|
|
<rule id="DecisionRule_0o2zlfp">
|
|
<description>large pizza</description>
|
|
<inputEntry id="UnaryTests_0lypcqb">
|
|
<text>"large"</text>
|
|
</inputEntry>
|
|
<outputEntry id="LiteralExpression_0l8qhp2">
|
|
<text>50.99</text>
|
|
</outputEntry>
|
|
<outputEntry id="LiteralExpression_1y1ews1">
|
|
<text>2.00</text>
|
|
</outputEntry>
|
|
</rule>
|
|
</decisionTable>
|
|
</decision>
|
|
<dmndi:DMNDI>
|
|
<dmndi:DMNDiagram id="DMNDiagram_1cykosu">
|
|
<dmndi:DMNShape id="DMNShape_1dhfq2s" dmnElementRef="decision_1">
|
|
<dc:Bounds height="80" width="180" x="157" y="151" />
|
|
</dmndi:DMNShape>
|
|
</dmndi:DMNDiagram>
|
|
</dmndi:DMNDI>
|
|
</definitions>
|