Skip to content

Instantly share code, notes, and snippets.

@jomarko
jomarko / get-structure.dmn
Created February 22, 2023 13:50
DMN model returning structure example
<?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" isCollect
@jomarko
jomarko / traffic-lights-demo.dmn
Created January 16, 2023 14:48
Decision table with column header constraints
<?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: