dsntk-examples 0.3.0

ÐecisionToolkit | Examples
Documentation
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<definitions namespace="https://dsntk.io"
             name="compliance-level-2-test-0005"
             id="_6cb03678-38e5-4ee3-826b-d6622c738563"
             xmlns="https://www.omg.org/spec/DMN/20191111/MODEL/"
             xmlns:di="http://www.omg.org/spec/DMN/20180521/DI/"
             xmlns:dmndi="https://www.omg.org/spec/DMN/20191111/DMNDI/"
             xmlns:dc="http://www.omg.org/spec/DMN/20180521/DC/">
    <decision name="Approval Status" id="_fa58b906-1987-4378-bdd7-10b10a01bd08">
        <variable typeRef="string" name="Approval Status"/>
        <informationRequirement id="fb6f56c3-d3ff-45e6-919c-c32e2e753863">
            <requiredInput href="#_5a4bdb64-f0ef-4978-9e03-6f1ae64a1f17"/>
        </informationRequirement>
        <informationRequirement id="_696269b9-1b2e-4194-b1fd-4bdbc1fae0e3">
            <requiredInput href="#_41effb45-b3c4-46ac-b1da-122b3e428a98"/>
        </informationRequirement>
        <informationRequirement id="_113e6550-70cc-4247-9ea1-99c294d6d79a">
            <requiredInput href="#_8ff18665-84e9-49f2-a8df-8981b1844549"/>
        </informationRequirement>
        <decisionTable hitPolicy="ANY" outputLabel="Approval Status">
            <input id="_62d2bb2d-dcf4-49fc-a96a-0c11dd6dee70" label="Age">
                <inputExpression typeRef="number">
                    <text>Age</text>
                </inputExpression>
            </input>
            <input id="_d924d584-b27a-4288-921d-04e0ede1096d" label="RiskCategory">
                <inputExpression typeRef="string">
                    <text>RiskCategory</text>
                </inputExpression>
                <inputValues>
                    <text>"High", "Low", "Medium"</text>
                </inputValues>
            </input>
            <input id="_bfebcb06-fc90-490f-a060-5bfd3d12fdb9" label="isAffordable">
                <inputExpression typeRef="boolean">
                    <text>isAffordable</text>
                </inputExpression>
            </input>
            <output id="_ad9c87b6-994e-4009-9118-7a2e861912e9">
                <outputValues>
                    <text>"Approved", "Declined"</text>
                </outputValues>
            </output>
            <rule id="_ce051810-0ddf-4423-8de4-2474df9ab864">
                <inputEntry id="_ce051810-0ddf-4423-8de4-2474df9ab864-0">
                    <text>&gt;=18</text>
                </inputEntry>
                <inputEntry id="_ce051810-0ddf-4423-8de4-2474df9ab864-1">
                    <text>"Medium","Low"</text>
                </inputEntry>
                <inputEntry id="_ce051810-0ddf-4423-8de4-2474df9ab864-2">
                    <text>true</text>
                </inputEntry>
                <outputEntry id="_ce051810-0ddf-4423-8de4-2474df9ab864-3">
                    <text>"Approved"</text>
                </outputEntry>
            </rule>
            <rule id="_c40019d2-e426-4786-87ba-8421a918adb7">
                <inputEntry id="_c40019d2-e426-4786-87ba-8421a918adb7-0">
                    <text>&lt;18</text>
                </inputEntry>
                <inputEntry id="_c40019d2-e426-4786-87ba-8421a918adb7-1">
                    <text>-</text>
                </inputEntry>
                <inputEntry id="_c40019d2-e426-4786-87ba-8421a918adb7-2">
                    <text>-</text>
                </inputEntry>
                <outputEntry id="_c40019d2-e426-4786-87ba-8421a918adb7-3">
                    <text>"Declined"</text>
                </outputEntry>
            </rule>
            <rule id="_71054262-f580-4eb6-aa37-0c48eb974e07">
                <inputEntry id="_71054262-f580-4eb6-aa37-0c48eb974e07-0">
                    <text>-</text>
                </inputEntry>
                <inputEntry id="_71054262-f580-4eb6-aa37-0c48eb974e07-1">
                    <text>"High"</text>
                </inputEntry>
                <inputEntry id="_71054262-f580-4eb6-aa37-0c48eb974e07-2">
                    <text>-</text>
                </inputEntry>
                <outputEntry id="_71054262-f580-4eb6-aa37-0c48eb974e07-3">
                    <text>"Declined"</text>
                </outputEntry>
            </rule>
            <rule id="_b4ca4f5f-86f9-4657-8bcc-637424f00da2">
                <inputEntry id="_b4ca4f5f-86f9-4657-8bcc-637424f00da2-0">
                    <text>-</text>
                </inputEntry>
                <inputEntry id="_b4ca4f5f-86f9-4657-8bcc-637424f00da2-1">
                    <text>-</text>
                </inputEntry>
                <inputEntry id="_b4ca4f5f-86f9-4657-8bcc-637424f00da2-2">
                    <text>false</text>
                </inputEntry>
                <outputEntry id="_b4ca4f5f-86f9-4657-8bcc-637424f00da2-3">
                    <text>"Declined"</text>
                </outputEntry>
            </rule>
        </decisionTable>
    </decision>
    <inputData name="Age" id="_41effb45-b3c4-46ac-b1da-122b3e428a98">
        <variable typeRef="number" name="Age"/>
    </inputData>
    <inputData name="RiskCategory" id="_5a4bdb64-f0ef-4978-9e03-6f1ae64a1f17">
        <variable typeRef="string" name="RiskCategory"/>
    </inputData>
    <inputData name="isAffordable" id="_8ff18665-84e9-49f2-a8df-8981b1844549">
        <variable typeRef="boolean" name="isAffordable"/>
    </inputData>
    <dmndi:DMNDI>
        <dmndi:DMNDiagram id="_6cb03678-38e5-4ee3-826b-d6622c738563_D1">
            <dmndi:Size height="650.0" width="879.0"/>
            <dmndi:DMNShape dmnElementRef="_3b2953a3-745f-4d2e-b55d-75c8c5ae653c" id="_6cb03678-38e5-4ee3-826b-d6622c738563_s1">
                <dc:Bounds height="61.0" width="154.0" x="362.0" y="150.0"/>
            </dmndi:DMNShape>
            <dmndi:DMNShape dmnElementRef="_41effb45-b3c4-46ac-b1da-122b3e428a98" id="_6cb03678-38e5-4ee3-826b-d6622c738563_s2">
                <dc:Bounds height="60.0" width="153.0" x="150.0" y="331.0"/>
            </dmndi:DMNShape>
            <dmndi:DMNShape dmnElementRef="_5a4bdb64-f0ef-4978-9e03-6f1ae64a1f17" id="_6cb03678-38e5-4ee3-826b-d6622c738563_s3">
                <dc:Bounds height="60.0" width="153.0" x="363.0" y="331.0"/>
            </dmndi:DMNShape>
            <dmndi:DMNShape dmnElementRef="_8ff18665-84e9-49f2-a8df-8981b1844549" id="_6cb03678-38e5-4ee3-826b-d6622c738563_s4">
                <dc:Bounds height="60.0" width="153.0" x="576.0" y="331.0"/>
            </dmndi:DMNShape>
            <dmndi:DMNEdge dmnElementRef="fb6f56c3-d3ff-45e6-919c-c32e2e753863" id="_6cb03678-38e5-4ee3-826b-d6622c738563_e1">
                <di:waypoint x="439.0" y="331.0"/>
                <di:waypoint x="439.0" y="211.0"/>
            </dmndi:DMNEdge>
            <dmndi:DMNEdge dmnElementRef="_696269b9-1b2e-4194-b1fd-4bdbc1fae0e3" id="_6cb03678-38e5-4ee3-826b-d6622c738563_e2">
                <di:waypoint x="226.0" y="331.0"/>
                <di:waypoint x="439.0" y="211.0"/>
            </dmndi:DMNEdge>
            <dmndi:DMNEdge dmnElementRef="_113e6550-70cc-4247-9ea1-99c294d6d79a" id="_6cb03678-38e5-4ee3-826b-d6622c738563_e3">
                <di:waypoint x="652.0" y="331.0"/>
                <di:waypoint x="439.0" y="211.0"/>
            </dmndi:DMNEdge>
        </dmndi:DMNDiagram>
    </dmndi:DMNDI>
</definitions>