dsntk-examples 0.3.0

ÐecisionToolkit | Examples
Documentation
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<definitions namespace="http://www.actico.com/spec/DMN/1107-feel-substring-before-function" name="1107-feel-substring-before-function" id="_jBACoPUUEeesLuP4RHs4vA"
             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/" xmlns:triso="http://www.trisotech.com/2015/triso/modeling" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <description>FEEL built-in function 'substring before(string, match) in category string functions</description>
    <itemDefinition name="tfeel-substring-before-function_001_2e948ccdc7_Result" id="_jBACovUUEeesLuP4RHs4vA">
        <typeRef>string</typeRef>
    </itemDefinition>
    <itemDefinition name="tfeel-substring-before-function_002_f4de663db7_Result" id="_jBACpvUUEeesLuP4RHs4vA">
        <typeRef>string</typeRef>
    </itemDefinition>
    <itemDefinition name="tfeel-substring-before-function_003_60bc15bade_Result" id="_jBACqvUUEeesLuP4RHs4vA">
        <typeRef>string</typeRef>
    </itemDefinition>
    <itemDefinition name="tfeel-substring-before-function_004_6f93aa7654_Result" id="_jBACrvUUEeesLuP4RHs4vA">
        <typeRef>string</typeRef>
    </itemDefinition>
    <itemDefinition name="tfeel-substring-before-function_005_c8e030633c_Result" id="_jBACsvUUEeesLuP4RHs4vA">
        <typeRef>string</typeRef>
    </itemDefinition>
    <itemDefinition name="tfeel-substring-before-function_006_1c3d39811d_Result" id="_jBACtvUUEeesLuP4RHs4vA">
        <typeRef>string</typeRef>
    </itemDefinition>
    <itemDefinition name="tfeel-substring-before-function_007_ea4e4a38b0_Result" id="_jBACuvUUEeesLuP4RHs4vA">
        <typeRef>string</typeRef>
    </itemDefinition>
    <itemDefinition name="tfeel-substring-before-function_008_501b0a5990_Result" id="_jBACvvUUEeesLuP4RHs4vA">
        <typeRef>string</typeRef>
    </itemDefinition>
    <itemDefinition name="tfeel-substring-before-function_009_a79c5a4111_Result" id="_jBACwvUUEeesLuP4RHs4vA">
        <typeRef>string</typeRef>
    </itemDefinition>
    <decision name="feel-substring-before-function_001_2e948ccdc7" id="_jBACpPUUEeesLuP4RHs4vA">
        <description>Tests FEEL expression: 'substring before("foobar","bar")' and expects result: '"foo" (string)'</description>
        <question>Result of FEEL expression 'substring before("foobar","bar")'?</question>
        <allowedAnswers>"foo" (string)</allowedAnswers>
        <variable typeRef="tfeel-substring-before-function_001_2e948ccdc7_Result" name="feel-substring-before-function_001_2e948ccdc7" id="_jBACpfUUEeesLuP4RHs4vA"/>
        <literalExpression id="_jBACo_UUEeesLuP4RHs4vA">
            <text>substring before("foobar","bar")</text>
        </literalExpression>
    </decision>
    <decision name="feel-substring-before-function_002_f4de663db7" id="_jBACqPUUEeesLuP4RHs4vA">
        <description>Tests FEEL expression: 'substring before("foobar","o")' and expects result: '"f" (string)'</description>
        <question>Result of FEEL expression 'substring before("foobar","o")'?</question>
        <allowedAnswers>"f" (string)</allowedAnswers>
        <variable typeRef="tfeel-substring-before-function_002_f4de663db7_Result" name="feel-substring-before-function_002_f4de663db7" id="_jBACqfUUEeesLuP4RHs4vA"/>
        <literalExpression id="_jBACp_UUEeesLuP4RHs4vA">
            <text>substring before("foobar","o")</text>
        </literalExpression>
    </decision>
    <decision name="feel-substring-before-function_003_60bc15bade" id="_jBACrPUUEeesLuP4RHs4vA">
        <description>Tests FEEL expression: 'substring before("foobar","x")' and expects result: '"" (string)'</description>
        <question>Result of FEEL expression 'substring before("foobar","x")'?</question>
        <allowedAnswers>"" (string)</allowedAnswers>
        <variable typeRef="tfeel-substring-before-function_003_60bc15bade_Result" name="feel-substring-before-function_003_60bc15bade" id="_jBACrfUUEeesLuP4RHs4vA"/>
        <literalExpression id="_jBACq_UUEeesLuP4RHs4vA">
            <text>substring before("foobar","x")</text>
        </literalExpression>
    </decision>
    <decision name="feel-substring-before-function_004_6f93aa7654" id="_jBACsPUUEeesLuP4RHs4vA">
        <description>Tests FEEL expression: 'substring before("","")' and expects result: '"" (string)'</description>
        <question>Result of FEEL expression 'substring before("","")'?</question>
        <allowedAnswers>"" (string)</allowedAnswers>
        <variable typeRef="tfeel-substring-before-function_004_6f93aa7654_Result" name="feel-substring-before-function_004_6f93aa7654" id="_jBACsfUUEeesLuP4RHs4vA"/>
        <literalExpression id="_jBACr_UUEeesLuP4RHs4vA">
            <text>substring before("","")</text>
        </literalExpression>
    </decision>
    <decision name="feel-substring-before-function_005_c8e030633c" id="_jBACtPUUEeesLuP4RHs4vA">
        <description>Tests FEEL expression: 'substring before("abc","")' and expects result: '"" (string)'</description>
        <question>Result of FEEL expression 'substring before("abc","")'?</question>
        <allowedAnswers>"" (string)</allowedAnswers>
        <variable typeRef="tfeel-substring-before-function_005_c8e030633c_Result" name="feel-substring-before-function_005_c8e030633c" id="_jBACtfUUEeesLuP4RHs4vA"/>
        <literalExpression id="_jBACs_UUEeesLuP4RHs4vA">
            <text>substring before("abc","")</text>
        </literalExpression>
    </decision>
    <decision name="feel-substring-before-function_006_1c3d39811d" id="_jBACuPUUEeesLuP4RHs4vA">
        <description>Tests FEEL expression: 'substring before("abc","a")' and expects result: '"" (string)'</description>
        <question>Result of FEEL expression 'substring before("abc","a")'?</question>
        <allowedAnswers>"" (string)</allowedAnswers>
        <variable typeRef="tfeel-substring-before-function_006_1c3d39811d_Result" name="feel-substring-before-function_006_1c3d39811d" id="_jBACufUUEeesLuP4RHs4vA"/>
        <literalExpression id="_jBACt_UUEeesLuP4RHs4vA">
            <text>substring before("abc","a")</text>
        </literalExpression>
    </decision>
    <decision name="feel-substring-before-function_007_ea4e4a38b0" id="_jBACvPUUEeesLuP4RHs4vA">
        <description>Tests FEEL expression: 'substring before("abc","c")' and expects result: '"ab" (string)'</description>
        <question>Result of FEEL expression 'substring before("abc","c")'?</question>
        <allowedAnswers>"ab" (string)</allowedAnswers>
        <variable typeRef="tfeel-substring-before-function_007_ea4e4a38b0_Result" name="feel-substring-before-function_007_ea4e4a38b0" id="_jBACvfUUEeesLuP4RHs4vA"/>
        <literalExpression id="_jBACu_UUEeesLuP4RHs4vA">
            <text>substring before("abc","c")</text>
        </literalExpression>
    </decision>
    <decision name="feel-substring-before-function_008_501b0a5990" id="_jBACwPUUEeesLuP4RHs4vA">
        <description>Tests FEEL expression: 'substring before(string:"foobar",match:"bar")' and expects result: '"foo" (string)'</description>
        <question>Result of FEEL expression 'substring before(string:"foobar",match:"bar")'?</question>
        <allowedAnswers>"foo" (string)</allowedAnswers>
        <variable typeRef="tfeel-substring-before-function_008_501b0a5990_Result" name="feel-substring-before-function_008_501b0a5990" id="_jBACwfUUEeesLuP4RHs4vA"/>
        <literalExpression id="_jBACv_UUEeesLuP4RHs4vA">
            <text>substring before(string:"foobar",match:"bar")</text>
        </literalExpression>
    </decision>
    <decision name="feel-substring-before-function_009_a79c5a4111" id="_jBACxPUUEeesLuP4RHs4vA">
        <description>Tests FEEL expression: 'substring before(string:"foobar",match:"b")' and expects result: '"foo" (string)'</description>
        <question>Result of FEEL expression 'substring before(string:"foobar",match:"b")'?</question>
        <allowedAnswers>"foo" (string)</allowedAnswers>
        <variable typeRef="tfeel-substring-before-function_009_a79c5a4111_Result" name="feel-substring-before-function_009_a79c5a4111" id="_jBACxfUUEeesLuP4RHs4vA"/>
        <literalExpression id="_jBACw_UUEeesLuP4RHs4vA">
            <text>substring before(string:"foobar",match:"b")</text>
        </literalExpression>
    </decision>
    <knowledgeSource name="DMN 1.1 - 10.3.4.3 Table 60" id="_jBACofUUEeesLuP4RHs4vA"/>
    <dmndi:DMNDI>
        <dmndi:DMNDiagram name="Page 1" id="_jBACoPUUEeesLuP4RHs4vA_D2">
            <dmndi:DMNShape dmnElementRef="_jBACrPUUEeesLuP4RHs4vA" id="_jBACoPUUEeesLuP4RHs4vA_s1">
                <dc:Bounds height="61.0" width="154.0" x="106.0" y="106.0"/>
            </dmndi:DMNShape>
            <dmndi:DMNShape dmnElementRef="_jBACwPUUEeesLuP4RHs4vA" id="_jBACoPUUEeesLuP4RHs4vA_s2">
                <dc:Bounds height="61.0" width="154.0" x="106.0" y="199.0"/>
            </dmndi:DMNShape>
            <dmndi:DMNShape dmnElementRef="_jBACsPUUEeesLuP4RHs4vA" id="_jBACoPUUEeesLuP4RHs4vA_s3">
                <dc:Bounds height="61.0" width="154.0" x="106.0" y="292.0"/>
            </dmndi:DMNShape>
            <dmndi:DMNShape dmnElementRef="_jBACofUUEeesLuP4RHs4vA" id="_jBACoPUUEeesLuP4RHs4vA_s4">
                <dc:Bounds height="69.0" width="100.0" x="133.0" y="385.0"/>
            </dmndi:DMNShape>
            <dmndi:DMNShape dmnElementRef="_jBACqPUUEeesLuP4RHs4vA" id="_jBACoPUUEeesLuP4RHs4vA_s5">
                <dc:Bounds height="61.0" width="154.0" x="106.0" y="486.0"/>
            </dmndi:DMNShape>
            <dmndi:DMNShape dmnElementRef="_jBACpPUUEeesLuP4RHs4vA" id="_jBACoPUUEeesLuP4RHs4vA_s6">
                <dc:Bounds height="61.0" width="154.0" x="106.0" y="579.0"/>
            </dmndi:DMNShape>
            <dmndi:DMNShape dmnElementRef="_jBACuPUUEeesLuP4RHs4vA" id="_jBACoPUUEeesLuP4RHs4vA_s7">
                <dc:Bounds height="61.0" width="154.0" x="106.0" y="672.0"/>
            </dmndi:DMNShape>
            <dmndi:DMNShape dmnElementRef="_jBACtPUUEeesLuP4RHs4vA" id="_jBACoPUUEeesLuP4RHs4vA_s8">
                <dc:Bounds height="61.0" width="154.0" x="106.0" y="765.0"/>
            </dmndi:DMNShape>
            <dmndi:DMNShape dmnElementRef="_jBACvPUUEeesLuP4RHs4vA" id="_jBACoPUUEeesLuP4RHs4vA_s9">
                <dc:Bounds height="61.0" width="154.0" x="276.0" y="106.0"/>
            </dmndi:DMNShape>
            <dmndi:DMNShape dmnElementRef="_jBACxPUUEeesLuP4RHs4vA" id="_jBACoPUUEeesLuP4RHs4vA_s10">
                <dc:Bounds height="61.0" width="154.0" x="276.0" y="199.0"/>
            </dmndi:DMNShape>
        </dmndi:DMNDiagram>
    </dmndi:DMNDI>
</definitions>