Decision table with column header constraints
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/_FD492778-1EF9-475D-9E7A-F7BC17AE6828" xmlns:dc="http://www.omg.org/spec/DMN/20180521/DC/" xmlns:di="http://www.omg.org/spec/DMN/20180521/DI/" xmlns:dmndi="http://www.omg.org/spec/DMN/20180521/DMNDI/" xmlns:feel="http://www.omg.org/spec/DMN/20180521/FEEL/" xmlns:kie="http://www.drools.org/kie/dmn/1.2" id="_C06FF86B-B878-4AC3-B7F8-89373289A840" name="Traffic Lights" typeLanguage="http://www.omg.org/spec/DMN/20180521/FEEL/" namespace="https://kiegroup.org/dmn/_FD492778-1EF9-475D-9E7A-F7BC17AE6828"> | |
<dmn:extensionElements /> | |
<dmn:itemDefinition id="_C7EB3913-22A5-42E8-B5CA-2DA6FEF8E81C" name="tColor" isCollection="false"> | |
<dmn:typeRef>string</dmn:typeRef> | |
<dmn:allowedValues kie:constraintType="enumeration" id="_15E39F17-9BC1-407E-8C9C-F021F00E33DC"> | |
<dmn:text>"red", "green"</dmn:text> | |
</dmn:allowedValues> | |
</dmn:itemDefinition> | |
<dmn:itemDefinition id="_01F6ACCC-B9C5-4BBA-BF62-CC2548E99B5E" name="tMeaning" isCollection="false"> | |
<dmn:typeRef>string</dmn:typeRef> | |
<dmn:allowedValues kie:constraintType="enumeration" id="_3920C59D-8B20-4E5E-94A9-B7DFADB06BAF"> | |
<dmn:text>"do not walk", "walk"</dmn:text> | |
</dmn:allowedValues> | |
</dmn:itemDefinition> | |
<dmn:inputData id="_242C9942-6047-40FD-A7FE-6549C3BEC358" name="Traffic Light Color"> | |
<dmn:extensionElements /> | |
<dmn:variable id="_1EF86382-D00F-407E-92D4-F35FCE55A8EF" name="Traffic Light Color" typeRef="tColor" /> | |
</dmn:inputData> | |
<dmn:decision id="_E9C48766-305E-4547-B81C-2D731AC125A2" name="Human Meaning"> | |
<dmn:extensionElements /> | |
<dmn:variable id="_B10442B0-0684-4EEC-8A15-493D0A28C888" name="Human Meaning" typeRef="tMeaning" /> | |
<dmn:informationRequirement id="_201718A2-3828-4295-A275-2463BF2D6FF3"> | |
<dmn:requiredInput href="#_242C9942-6047-40FD-A7FE-6549C3BEC358" /> | |
</dmn:informationRequirement> | |
<dmn:decisionTable id="_05EAC428-F9DC-44C1-97B8-A2D3D555E5FC" hitPolicy="UNIQUE" preferredOrientation="Rule-as-Row"> | |
<dmn:input id="_6CF4F24A-CBA8-478C-A54C-570F53208787"> | |
<dmn:inputExpression id="_BF415120-F71B-4108-97AA-C1CE9E39568C" typeRef="tColor"> | |
<dmn:text>Traffic Light Color</dmn:text> | |
</dmn:inputExpression> | |
<dmn:inputValues kie:constraintType="enumeration" id="_B2C18081-B404-4015-820E-16B29F992CAA"> | |
<dmn:text>"red", "green"</dmn:text> | |
</dmn:inputValues> | |
</dmn:input> | |
<dmn:output id="_C5A20969-C6E4-470F-8013-F76DC21E45D5"> | |
<dmn:outputValues id="_51BD79D9-5673-434C-9B10-E843BBA1A5D8"> | |
<dmn:text>"do not walk", "walk"</dmn:text> | |
</dmn:outputValues> | |
</dmn:output> | |
<dmn:annotation name="annotation-1" /> | |
<dmn:rule id="_FFD58AA8-6809-4F0B-BBAB-47E1A884A225"> | |
<dmn:inputEntry id="_018D071D-75C5-40E9-B029-93114B19711C"> | |
<dmn:text>"red"</dmn:text> | |
</dmn:inputEntry> | |
<dmn:outputEntry id="_0B363CD3-16BB-4D66-B5E9-80A49ED6E44D"> | |
<dmn:text>"do not walk"</dmn:text> | |
</dmn:outputEntry> | |
<dmn:annotationEntry> | |
<dmn:text /> | |
</dmn:annotationEntry> | |
</dmn:rule> | |
<dmn:rule id="_0047F6A7-D1EA-41AF-87D2-0B1BA44328D6"> | |
<dmn:inputEntry id="_CDF6758D-1B64-4198-AC62-4800E78E0EB4"> | |
<dmn:text>"green"</dmn:text> | |
</dmn:inputEntry> | |
<dmn:outputEntry id="_F966AC4B-D57E-4567-BA69-03DB9D8CEE5F"> | |
<dmn:text>"walk"</dmn:text> | |
</dmn:outputEntry> | |
<dmn:annotationEntry> | |
<dmn:text /> | |
</dmn:annotationEntry> | |
</dmn:rule> | |
</dmn:decisionTable> | |
</dmn:decision> | |
<dmndi:DMNDI> | |
<dmndi:DMNDiagram id="_41DE644F-2CC4-4DC0-9269-2FDC005D659B" name="DRG"> | |
<di:extension> | |
<kie:ComponentsWidthsExtension> | |
<kie:ComponentWidths dmnElementRef="_05EAC428-F9DC-44C1-97B8-A2D3D555E5FC"> | |
<kie:width>50</kie:width> | |
<kie:width>147</kie:width> | |
<kie:width>154</kie:width> | |
<kie:width>100</kie:width> | |
</kie:ComponentWidths> | |
</kie:ComponentsWidthsExtension> | |
</di:extension> | |
<dmndi:DMNShape id="dmnshape-drg-_242C9942-6047-40FD-A7FE-6549C3BEC358" dmnElementRef="_242C9942-6047-40FD-A7FE-6549C3BEC358" 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="196" y="384" width="100" height="50" /> | |
<dmndi:DMNLabel /> | |
</dmndi:DMNShape> | |
<dmndi:DMNShape id="dmnshape-drg-_E9C48766-305E-4547-B81C-2D731AC125A2" dmnElementRef="_E9C48766-305E-4547-B81C-2D731AC125A2" 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="517" y="385" width="100" height="50" /> | |
<dmndi:DMNLabel /> | |
</dmndi:DMNShape> | |
<dmndi:DMNEdge id="dmnedge-drg-_201718A2-3828-4295-A275-2463BF2D6FF3-AUTO-SOURCE-AUTO-TARGET" dmnElementRef="_201718A2-3828-4295-A275-2463BF2D6FF3"> | |
<di:waypoint x="246" y="384" /> | |
<di:waypoint x="567" y="435" /> | |
</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