Created
February 22, 2023 13:50
-
-
Save jomarko/1152d6dc32589d568b8e4357d5debe2c to your computer and use it in GitHub Desktop.
DMN model returning structure example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<dmn:definitions xmlns:dmn="http://www.omg.org/spec/DMN/20180521/MODEL/" xmlns="https://kiegroup.org/dmn/_E37D9C52-C23E-4089-9D0E-9476C74F95EB" xmlns:feel="http://www.omg.org/spec/DMN/20180521/FEEL/" xmlns:kie="http://www.drools.org/kie/dmn/1.2" xmlns:dmndi="http://www.omg.org/spec/DMN/20180521/DMNDI/" xmlns:di="http://www.omg.org/spec/DMN/20180521/DI/" xmlns:dc="http://www.omg.org/spec/DMN/20180521/DC/" id="_AC074F76-D85E-45D3-9607-836E67BA3469" name="Untitled" typeLanguage="http://www.omg.org/spec/DMN/20180521/FEEL/" namespace="https://kiegroup.org/dmn/_E37D9C52-C23E-4089-9D0E-9476C74F95EB"> | |
<dmn:extensionElements/> | |
<dmn:itemDefinition id="_DCB08392-2228-4337-AD47-312D67E45E8C" name="tMenu" isCollection="false"> | |
<dmn:itemComponent id="_27EE2D39-D701-4C8C-BEEF-F8B2361A0189" name="Soup" isCollection="false"> | |
<dmn:typeRef>string</dmn:typeRef> | |
</dmn:itemComponent> | |
<dmn:itemComponent id="_9992D36D-E4DB-418A-97B7-67F6E8F9E26F" name="Main Dish" isCollection="false"> | |
<dmn:typeRef>string</dmn:typeRef> | |
</dmn:itemComponent> | |
</dmn:itemDefinition> | |
<dmn:decision id="_E22C588E-7D83-468A-B056-1CABBB97BFBF" name="Menu"> | |
<dmn:extensionElements/> | |
<dmn:variable id="_D907FC8B-054A-4A1A-8EBD-6BB5F6482DC4" name="Menu" typeRef="tMenu"/> | |
<dmn:informationRequirement id="_1755DF84-2735-4F16-8D25-5DFDF48F7D71"> | |
<dmn:requiredInput href="#_687B2F24-1633-43E3-878D-41C54C0F9518"/> | |
</dmn:informationRequirement> | |
<dmn:decisionTable id="_CBB27253-E404-4B59-91E1-0039C660282B" hitPolicy="UNIQUE" preferredOrientation="Rule-as-Row"> | |
<dmn:input id="_0B7C7874-9E5B-4082-9011-DFA79CBE57AA"> | |
<dmn:inputExpression id="_16E0454B-6A09-4889-A366-3B11B0BF9179" typeRef="string"> | |
<dmn:text>Day of Week</dmn:text> | |
</dmn:inputExpression> | |
</dmn:input> | |
<dmn:output id="_C37AC8B5-8F39-4CF9-9EE2-E804084E467E" name="Main Dish" typeRef="string"/> | |
<dmn:output id="_843E1075-0F7C-4A83-893D-2953CDA5205A" name="Soup" typeRef="string"/> | |
<dmn:annotation name="annotation-1"/> | |
<dmn:rule id="_A9005FBE-60ED-4CDC-9FE9-CF5E7BEF8C39"> | |
<dmn:inputEntry id="_B78134ED-32B8-4BB1-8A96-883EF9609317"> | |
<dmn:text>"Monday"</dmn:text> | |
</dmn:inputEntry> | |
<dmn:outputEntry id="_C980D269-8953-424E-94C7-F840C367957F"> | |
<dmn:text>"a"</dmn:text> | |
</dmn:outputEntry> | |
<dmn:outputEntry id="_A432853A-04E0-4E2D-BDB7-9B2C1693236B"> | |
<dmn:text>"a"</dmn:text> | |
</dmn:outputEntry> | |
<dmn:annotationEntry> | |
<dmn:text/> | |
</dmn:annotationEntry> | |
</dmn:rule> | |
<dmn:rule id="_AFA42AB1-90B4-41F4-A14A-8F773A6B7948"> | |
<dmn:inputEntry id="_A306D386-4983-4332-8161-9BAE4D2B74C7"> | |
<dmn:text>"Tuesday"</dmn:text> | |
</dmn:inputEntry> | |
<dmn:outputEntry id="_E6DF59F1-5C40-4851-A3F3-79260CE18F48"> | |
<dmn:text>"b"</dmn:text> | |
</dmn:outputEntry> | |
<dmn:outputEntry id="_A351B2BD-D8BE-41D7-85F5-CECE99E77148"> | |
<dmn:text>"b"</dmn:text> | |
</dmn:outputEntry> | |
<dmn:annotationEntry> | |
<dmn:text/> | |
</dmn:annotationEntry> | |
</dmn:rule> | |
</dmn:decisionTable> | |
</dmn:decision> | |
<dmn:inputData id="_687B2F24-1633-43E3-878D-41C54C0F9518" name="Day of Week"> | |
<dmn:extensionElements/> | |
<dmn:variable id="_6E073051-071C-4710-88FE-9A5BF8A01289" name="Day of Week" typeRef="string"/> | |
</dmn:inputData> | |
<dmndi:DMNDI> | |
<dmndi:DMNDiagram id="_27171FE3-D3B3-4960-910C-6E37E4A34759" name="DRG"> | |
<di:extension> | |
<kie:ComponentsWidthsExtension> | |
<kie:ComponentWidths dmnElementRef="_CBB27253-E404-4B59-91E1-0039C660282B"> | |
<kie:width>50</kie:width> | |
<kie:width>100</kie:width> | |
<kie:width>100</kie:width> | |
<kie:width>100</kie:width> | |
<kie:width>100</kie:width> | |
</kie:ComponentWidths> | |
</kie:ComponentsWidthsExtension> | |
</di:extension> | |
<dmndi:DMNShape id="dmnshape-drg-_E22C588E-7D83-468A-B056-1CABBB97BFBF" dmnElementRef="_E22C588E-7D83-468A-B056-1CABBB97BFBF" isCollapsed="false"> | |
<dmndi:DMNStyle> | |
<dmndi:FillColor red="255" green="255" blue="255"/> | |
<dmndi:StrokeColor red="0" green="0" blue="0"/> | |
<dmndi:FontColor red="0" green="0" blue="0"/> | |
</dmndi:DMNStyle> | |
<dc:Bounds x="419" y="245" width="100" height="50"/> | |
<dmndi:DMNLabel/> | |
</dmndi:DMNShape> | |
<dmndi:DMNShape id="dmnshape-drg-_687B2F24-1633-43E3-878D-41C54C0F9518" dmnElementRef="_687B2F24-1633-43E3-878D-41C54C0F9518" isCollapsed="false"> | |
<dmndi:DMNStyle> | |
<dmndi:FillColor red="255" green="255" blue="255"/> | |
<dmndi:StrokeColor red="0" green="0" blue="0"/> | |
<dmndi:FontColor red="0" green="0" blue="0"/> | |
</dmndi:DMNStyle> | |
<dc:Bounds x="419" y="385" width="100" height="50"/> | |
<dmndi:DMNLabel/> | |
</dmndi:DMNShape> | |
<dmndi:DMNEdge id="dmnedge-drg-_1755DF84-2735-4F16-8D25-5DFDF48F7D71-AUTO-TARGET" dmnElementRef="_1755DF84-2735-4F16-8D25-5DFDF48F7D71"> | |
<di:waypoint x="469" y="410"/> | |
<di:waypoint x="469" y="295"/> | |
</dmndi:DMNEdge> | |
</dmndi:DMNDiagram> | |
</dmndi:DMNDI> | |
</dmn:definitions> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment