Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@karreiro
Created June 4, 2020 23:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save karreiro/eb6442a6bb95a427aeb5564dda458d46 to your computer and use it in GitHub Desktop.
Save karreiro/eb6442a6bb95a427aeb5564dda458d46 to your computer and use it in GitHub Desktop.
<?xml version='1.0' encoding='UTF-8'?>
<dmn:definitions xmlns:dmn="http://www.omg.org/spec/DMN/20180521/MODEL/" xmlns="https://kiegroup.org/dmn/_E06BB47C-7B91-4B06-B3B9-E75B3681DAAB" xmlns:included1="https://github.com/kiegroup/drools/kie-dmn/_A4BCA8B8-CF08-433F-93B2-A2598F19ECFF" xmlns:di="http://www.omg.org/spec/DMN/20180521/DI/" xmlns:kie="http://www.drools.org/kie/dmn/1.2" xmlns:feel="http://www.omg.org/spec/DMN/20180521/FEEL/" xmlns:dmndi="http://www.omg.org/spec/DMN/20180521/DMNDI/" xmlns:dc="http://www.omg.org/spec/DMN/20180521/DC/" id="_CFE2BCA5-84D8-4C58-9A53-F42D38E70D41" name="example" expressionLanguage="http://www.omg.org/spec/DMN/20180521/FEEL/" typeLanguage="http://www.omg.org/spec/DMN/20180521/FEEL/" namespace="https://kiegroup.org/dmn/_E06BB47C-7B91-4B06-B3B9-E75B3681DAAB">
<dmn:extensionElements/>
<dmn:import id="_A5C3931F-04B0-49F8-BCB1-B3E0C98F2BBC" name="model1" namespace="https://github.com/kiegroup/drools/kie-dmn/_A4BCA8B8-CF08-433F-93B2-A2598F19ECFF" locationURI="Traffic Violation updated.dmn" importType="http://www.omg.org/spec/DMN/20180521/MODEL/"/>
<dmn:decision id="_2EF68846-62D4-43BC-B8A5-6D6915931B7A" name="message">
<dmn:extensionElements/>
<dmn:variable id="_9AA57816-D030-4BBB-B78C-128D0F8621C3" name="message" typeRef="string"/>
<dmn:informationRequirement id="_576D7C6B-5544-45E0-AFA9-165C08F5B3E9">
<dmn:requiredInput href="https://github.com/kiegroup/drools/kie-dmn/_A4BCA8B8-CF08-433F-93B2-A2598F19ECFF#_1929CBD5-40E0-442D-B909-49CEDE0101DC"/>
</dmn:informationRequirement>
<dmn:informationRequirement id="_0A781C24-EF5D-4066-BC94-E9A4D049C7C3">
<dmn:requiredInput href="https://github.com/kiegroup/drools/kie-dmn/_A4BCA8B8-CF08-433F-93B2-A2598F19ECFF#_1F9350D7-146D-46F1-85D8-15B5B68AF22A"/>
</dmn:informationRequirement>
<dmn:knowledgeRequirement id="_6EA9E3F9-D5B0-4113-A1AA-38C07CDC8527">
<dmn:requiredKnowledge href="https://github.com/kiegroup/drools/kie-dmn/_A4BCA8B8-CF08-433F-93B2-A2598F19ECFF#_98352767-750C-4561-B80D-CCE66B1C4712"/>
</dmn:knowledgeRequirement>
<dmn:literalExpression id="_0AAEE534-4AB5-4DC3-9F62-88DFE6122E4E">
<dmn:text>"Should " + model1.Driver.Name + " be suspended? I say " + model1.Traffic Violation Service(model1.Driver, model1.Violation) + "!"</dmn:text>
</dmn:literalExpression>
</dmn:decision>
<dmndi:DMNDI>
<dmndi:DMNDiagram>
<di:extension>
<kie:ComponentsWidthsExtension>
<kie:ComponentWidths dmnElementRef="_0AAEE534-4AB5-4DC3-9F62-88DFE6122E4E">
<kie:width>1241.0</kie:width>
</kie:ComponentWidths>
</kie:ComponentsWidthsExtension>
</di:extension>
<dmndi:DMNShape id="dmnshape-_1929CBD5-40E0-442D-B909-49CEDE0101DC" dmnElementRef="included1:_1929CBD5-40E0-442D-B909-49CEDE0101DC" 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="615" y="341" width="132" height="63"/>
<dmndi:DMNLabel/>
</dmndi:DMNShape>
<dmndi:DMNShape id="dmnshape-_2EF68846-62D4-43BC-B8A5-6D6915931B7A" dmnElementRef="_2EF68846-62D4-43BC-B8A5-6D6915931B7A" 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="452" y="180" width="100" height="50"/>
<dmndi:DMNLabel/>
</dmndi:DMNShape>
<dmndi:DMNShape id="dmnshape-_1F9350D7-146D-46F1-85D8-15B5B68AF22A" dmnElementRef="included1:_1F9350D7-146D-46F1-85D8-15B5B68AF22A" 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="227" y="294" width="126" height="66"/>
<dmndi:DMNLabel/>
</dmndi:DMNShape>
<dmndi:DMNShape id="dmnshape-_98352767-750C-4561-B80D-CCE66B1C4712" dmnElementRef="included1:_98352767-750C-4561-B80D-CCE66B1C4712" 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="373" y="418" width="197" height="100"/>
<dmndi:DMNLabel/>
<dmndi:DMNDecisionServiceDividerLine>
<di:waypoint x="373" y="468"/>
<di:waypoint x="570" y="468"/>
</dmndi:DMNDecisionServiceDividerLine>
</dmndi:DMNShape>
<dmndi:DMNEdge id="dmnedge-_576D7C6B-5544-45E0-AFA9-165C08F5B3E9" dmnElementRef="_576D7C6B-5544-45E0-AFA9-165C08F5B3E9">
<di:waypoint x="681" y="372.5"/>
<di:waypoint x="452" y="205"/>
</dmndi:DMNEdge>
<dmndi:DMNEdge id="dmnedge-_0A781C24-EF5D-4066-BC94-E9A4D049C7C3" dmnElementRef="_0A781C24-EF5D-4066-BC94-E9A4D049C7C3">
<di:waypoint x="290" y="327"/>
<di:waypoint x="502" y="230"/>
</dmndi:DMNEdge>
<dmndi:DMNEdge id="dmnedge-_6EA9E3F9-D5B0-4113-A1AA-38C07CDC8527" dmnElementRef="_6EA9E3F9-D5B0-4113-A1AA-38C07CDC8527">
<di:waypoint x="471.5" y="468"/>
<di:waypoint x="502" y="205"/>
</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