Skip to content

Instantly share code, notes, and snippets.

@karreiro
Created June 10, 2020 21:44
Show Gist options
  • Select an option

  • Save karreiro/1e5920ddafa7848c4234954ba67cc950 to your computer and use it in GitHub Desktop.

Select an option

Save karreiro/1e5920ddafa7848c4234954ba67cc950 to your computer and use it in GitHub Desktop.
EmbeddedDataTable.dmn
<dmn:definitions xmlns:dmn="http://www.omg.org/spec/DMN/20180521/MODEL/" xmlns="https://kiegroup.org/dmn/_FC75913D-81CF-49A3-A6F4-A56FB341C574" xmlns:di="http://www.omg.org/spec/DMN/20180521/DI/" xmlns:kie="http://www.drools.org/kie/dmn/1.2" xmlns:dmndi="http://www.omg.org/spec/DMN/20180521/DMNDI/" xmlns:dc="http://www.omg.org/spec/DMN/20180521/DC/" xmlns:feel="http://www.omg.org/spec/DMN/20180521/FEEL/" id="_72BA4308-069E-4F8D-8608-D4FDDFA5A1A5" name="new-file" typeLanguage="http://www.omg.org/spec/DMN/20180521/FEEL/" namespace="https://kiegroup.org/dmn/_FC75913D-81CF-49A3-A6F4-A56FB341C574">
<dmn:extensionElements/>
<dmn:itemDefinition id="_B8E3371A-9B39-4914-8C74-C7C0A8C808FB" name="tLoanProduct" isCollection="false">
<dmn:itemComponent id="_D849B756-2A5A-4000-B1EA-A2274AD15659" name="lenderName" isCollection="false">
<dmn:typeRef>string</dmn:typeRef>
</dmn:itemComponent>
<dmn:itemComponent id="_C9E5C508-D4FA-42E2-AA56-39A3DBB3D127" name="rate" isCollection="false">
<dmn:typeRef>number</dmn:typeRef>
</dmn:itemComponent>
<dmn:itemComponent id="_B941F547-0849-4110-B493-242F550332A1" name="points" isCollection="false">
<dmn:typeRef>number</dmn:typeRef>
</dmn:itemComponent>
<dmn:itemComponent id="_B41F7D0C-783B-495A-BE8E-492F2484C5FB" name="fees" isCollection="false">
<dmn:typeRef>number</dmn:typeRef>
</dmn:itemComponent>
</dmn:itemDefinition>
<dmn:itemDefinition id="_B0C507BF-0C1A-4F90-8C61-EA24CB19694C" name="tLoanTable" isCollection="true">
<dmn:typeRef>tLoanProduct</dmn:typeRef>
</dmn:itemDefinition>
<dmn:itemDefinition id="_146DEB09-8F8F-4558-970D-4363A9C6C139" name="Lender sames" isCollection="true">
<dmn:typeRef>string</dmn:typeRef>
</dmn:itemDefinition>
<dmn:decision id="_5F27A3D9-84AD-4C58-997B-A3DCFF92363F" name="Loan Static Table">
<dmn:extensionElements/>
<dmn:variable id="_EEBBA17A-316C-4DDB-A5B0-828946BC8665" name="Loan Static Table" typeRef="tLoanProduct"/>
<dmn:relation id="_0B318FF1-FCC6-4038-94E1-601F9AE54493">
<dmn:column id="_322B1E06-2F69-46D3-AF38-C31AA317B5B7" name="lenderName" typeRef="string"/>
<dmn:column id="_84E4EB7E-C44B-436E-8D92-F4CE7DB37CF2" name="rate" typeRef="number"/>
<dmn:column id="_6A5E9C6B-19BF-4050-B5EF-10AD92A6697A" name="points" typeRef="number"/>
<dmn:column id="_07A00E26-2AA9-4186-80A8-160D230DF7F3" name="fees" typeRef="number"/>
<dmn:row id="_5B084A89-C64C-402E-9377-DE2DE717EFCE">
<dmn:literalExpression id="_E98B6201-29D6-4C57-9733-6DAF3E083A6E">
<dmn:text>"lender 1"</dmn:text>
</dmn:literalExpression>
<dmn:literalExpression id="_9F74EBE5-0320-49E6-8596-4961D55C4FD8">
<dmn:text>.3</dmn:text>
</dmn:literalExpression>
<dmn:literalExpression id="_5CBE16C8-7B86-4838-A89A-97CE932872E9">
<dmn:text>2</dmn:text>
</dmn:literalExpression>
<dmn:literalExpression id="_D8313C8A-C782-47C3-8D2E-DD6A66897A61">
<dmn:text>0</dmn:text>
</dmn:literalExpression>
</dmn:row>
<dmn:row id="_8DD3B20E-D803-4369-8FDB-2C8ABE407656">
<dmn:literalExpression id="_A8DF1717-F864-45ED-A1E3-B8A197309359">
<dmn:text>"lender 2"</dmn:text>
</dmn:literalExpression>
<dmn:literalExpression id="_082BDDC3-30B1-4B27-B0BE-71E215D563D7">
<dmn:text>.4</dmn:text>
</dmn:literalExpression>
<dmn:literalExpression id="_2583E4B2-CCD6-48B7-BBB7-CD1DA7675860">
<dmn:text>1</dmn:text>
</dmn:literalExpression>
<dmn:literalExpression id="_E7CCA448-9C68-49C4-994C-4745AB914C81">
<dmn:text>50</dmn:text>
</dmn:literalExpression>
</dmn:row>
<dmn:row id="_8A67EF58-95C7-4AD0-BAEA-1064AE64D3D6">
<dmn:literalExpression id="_6FA98517-D917-4378-ABB4-848A21499284">
<dmn:text>"lender 3"</dmn:text>
</dmn:literalExpression>
<dmn:literalExpression id="_C7EFCDFB-E9DE-485B-8B49-EACE42EA7303">
<dmn:text>.5</dmn:text>
</dmn:literalExpression>
<dmn:literalExpression id="_E4AFB033-AEA8-45A7-A923-59D91A52AA61">
<dmn:text>4</dmn:text>
</dmn:literalExpression>
<dmn:literalExpression id="_DF61F6A3-90C9-4FFB-9842-D05CF4B3BDE7">
<dmn:text>100</dmn:text>
</dmn:literalExpression>
</dmn:row>
</dmn:relation>
</dmn:decision>
<dmn:decision id="_8DEA5689-AC0D-4A2D-94E4-7028DC8C561E" name="extracted list">
<dmn:extensionElements/>
<dmn:variable id="_DF802AA8-5929-4C0C-AB08-E2BB7C4D99E9" name="extracted list" typeRef="Lender sames"/>
<dmn:informationRequirement id="_E276E3EB-1708-4402-9206-11523ADE19A9">
<dmn:requiredDecision href="#_5F27A3D9-84AD-4C58-997B-A3DCFF92363F"/>
</dmn:informationRequirement>
<dmn:literalExpression id="_1D745C7B-B8D3-41A9-A281-2382CF092E44">
<dmn:text>Loan Static Table.lender name</dmn:text>
</dmn:literalExpression>
</dmn:decision>
<dmndi:DMNDI>
<dmndi:DMNDiagram>
<di:extension>
<kie:ComponentsWidthsExtension>
<kie:ComponentWidths dmnElementRef="_0B318FF1-FCC6-4038-94E1-601F9AE54493">
<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:ComponentWidths dmnElementRef="_E98B6201-29D6-4C57-9733-6DAF3E083A6E"/>
<kie:ComponentWidths dmnElementRef="_9F74EBE5-0320-49E6-8596-4961D55C4FD8"/>
<kie:ComponentWidths dmnElementRef="_5CBE16C8-7B86-4838-A89A-97CE932872E9"/>
<kie:ComponentWidths dmnElementRef="_D8313C8A-C782-47C3-8D2E-DD6A66897A61"/>
<kie:ComponentWidths dmnElementRef="_A8DF1717-F864-45ED-A1E3-B8A197309359"/>
<kie:ComponentWidths dmnElementRef="_082BDDC3-30B1-4B27-B0BE-71E215D563D7"/>
<kie:ComponentWidths dmnElementRef="_2583E4B2-CCD6-48B7-BBB7-CD1DA7675860"/>
<kie:ComponentWidths dmnElementRef="_E7CCA448-9C68-49C4-994C-4745AB914C81"/>
<kie:ComponentWidths dmnElementRef="_6FA98517-D917-4378-ABB4-848A21499284"/>
<kie:ComponentWidths dmnElementRef="_C7EFCDFB-E9DE-485B-8B49-EACE42EA7303"/>
<kie:ComponentWidths dmnElementRef="_E4AFB033-AEA8-45A7-A923-59D91A52AA61"/>
<kie:ComponentWidths dmnElementRef="_DF61F6A3-90C9-4FFB-9842-D05CF4B3BDE7"/>
<kie:ComponentWidths dmnElementRef="_1D745C7B-B8D3-41A9-A281-2382CF092E44">
<kie:width>300</kie:width>
</kie:ComponentWidths>
</kie:ComponentsWidthsExtension>
</di:extension>
<dmndi:DMNShape id="dmnshape-_5F27A3D9-84AD-4C58-997B-A3DCFF92363F" dmnElementRef="_5F27A3D9-84AD-4C58-997B-A3DCFF92363F" 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="421" y="272" width="100" height="50"/>
<dmndi:DMNLabel/>
</dmndi:DMNShape>
<dmndi:DMNShape id="dmnshape-_8DEA5689-AC0D-4A2D-94E4-7028DC8C561E" dmnElementRef="_8DEA5689-AC0D-4A2D-94E4-7028DC8C561E" 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="509" y="169" width="100" height="50"/>
<dmndi:DMNLabel/>
</dmndi:DMNShape>
<dmndi:DMNEdge id="dmnedge-_E276E3EB-1708-4402-9206-11523ADE19A9" dmnElementRef="_E276E3EB-1708-4402-9206-11523ADE19A9">
<di:waypoint x="471" y="297"/>
<di:waypoint x="559" y="194"/>
</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