Constant dmntk_examples::DMN_3_0056[][src]

pub const DMN_3_0056: &str = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<definitions namespace=\"http://www.montera.com.au/spec/DMN/0056-feel-modulo-function\" name=\"0056-feel-modulo-function\" id=\"_i9fboPUUEeesLuP4RHs4vC\" xmlns=\"https://www.omg.org/spec/DMN/20191111/MODEL/\"\n             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/\"\n             xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\n    <description>FEEL built-in function \'modulo(dividend,divisor)\' in category numeric functions</description>\n    <decision name=\"decision001\" id=\"_decision001\">\n        <description>Tests FEEL expression: \'modulo(10, 4)\' and expects result: \'2 (number)\'</description>\n        <question>Result of FEEL expression \'modulo(10, 4)\'?</question>\n        <allowedAnswers>2 (number)</allowedAnswers>\n        <variable typeRef=\"number\" name=\"decision001\"/>\n        <literalExpression>\n            <text>modulo(10, 4)</text>\n        </literalExpression>\n    </decision>\n    <decision name=\"decision001_a\" id=\"_decision001_a\">\n        <description>Tests FEEL expression: \'modulo(10, -4)\' and expects result: \'-2 (number)\'</description>\n        <question>Result of FEEL expression \'modulo(10, -4)\'?</question>\n        <allowedAnswers>-2 (number)</allowedAnswers>\n        <variable typeRef=\"number\" name=\"decision001_a\"/>\n        <literalExpression>\n            <text>modulo(10, -4)</text>\n        </literalExpression>\n    </decision>\n    <decision name=\"decision002\" id=\"_decision002\">\n        <description>Tests FEEL expression: \'modulo(-10, 4)\' and expects result: \'2 (number)\'</description>\n        <question>Result of FEEL expression \'modulo(v)\'?</question>\n        <allowedAnswers>2 (number)</allowedAnswers>\n        <variable typeRef=\"number\" name=\"decision002\"/>\n        <literalExpression>\n            <text>modulo(-10, 4)</text>\n        </literalExpression>\n    </decision>\n    <decision name=\"decision003\" id=\"_decision003\">\n        <description>Tests FEEL expression: \'modulo(0, 4)\' and expects result: \'0 (number)\'</description>\n        <question>Result of FEEL expression \'modulo(0, 4)\'?</question>\n        <allowedAnswers>0 (number)</allowedAnswers>\n        <variable typeRef=\"number\" name=\"decision003\"/>\n        <literalExpression>\n            <text>modulo(0, 4)</text>\n        </literalExpression>\n    </decision>\n    <decision name=\"decision003_a\" id=\"_decision003_a\">\n        <description>Tests FEEL expression: \'modulo(10, 0)\' and expects result: \'null (number)\'</description>\n        <question>Result of FEEL expression \'modulo(10, 0)\'?</question>\n        <allowedAnswers>null (number)</allowedAnswers>\n        <variable typeRef=\"number\" name=\"decision003_a\"/>\n        <literalExpression>\n            <text>modulo(10, 0)</text>\n        </literalExpression>\n    </decision>\n    <decision name=\"decision004\" id=\"_decision004\">\n        <description>Tests FEEL expression: \'modulo()\' and expects result: \'null (number)\'</description>\n        <question>Result of FEEL expression \'modulo()\'?</question>\n        <allowedAnswers>null (number)</allowedAnswers>\n        <variable typeRef=\"number\" name=\"decision004\"/>\n        <literalExpression>\n            <text>modulo()</text>\n        </literalExpression>\n    </decision>\n    <decision name=\"decision005\" id=\"_decision005\">\n        <description>Tests FEEL expression: \'modulo(4)\' and expects result: \'null (number)\'</description>\n        <question>Result of FEEL expression \'modulo(4)\'?</question>\n        <allowedAnswers>null (number)</allowedAnswers>\n        <variable typeRef=\"number\" name=\"decision005\"/>\n        <literalExpression>\n            <text>modulo(4)</text>\n        </literalExpression>\n    </decision>\n    <decision name=\"decision005_a\" id=\"_decision005_a\">\n        <description>Tests FEEL expression: \'modulo(4,4,4)\' and expects result: \'null (number)\'</description>\n        <question>Result of FEEL expression \'modulo(4,4,4)\'?</question>\n        <allowedAnswers>null (number)</allowedAnswers>\n        <variable typeRef=\"number\" name=\"decision005_a\"/>\n        <literalExpression>\n            <text>modulo(4,4,4)</text>\n        </literalExpression>\n    </decision>\n    <decision name=\"decision006\" id=\"_decision006\">\n        <description>Tests FEEL expression: \'modulo(dividend:10, divisor:4)\' and expects result: \'2 (number)\'</description>\n        <question>Result of FEEL expression \'modulo(dividend:10, divisor:4)\'?</question>\n        <allowedAnswers>2 (number)</allowedAnswers>\n        <variable typeRef=\"number\" name=\"decision006\"/>\n        <literalExpression>\n            <text>modulo(dividend:10, divisor:4)</text>\n        </literalExpression>\n    </decision>\n    <decision name=\"decision007\" id=\"_decision007\">\n        <description>Tests FEEL expression: \'modulo(dividend:10, foo:4)\' and expects result: \'null (number)\'</description>\n        <question>Result of FEEL expression \'modulo(dividend:10, foo:4)\'?</question>\n        <allowedAnswers>null (number)</allowedAnswers>\n        <variable typeRef=\"number\" name=\"decision007\"/>\n        <literalExpression>\n            <text>modulo(dividend:10, foo:4)</text>\n        </literalExpression>\n    </decision>\n    <decision name=\"decision008\" id=\"_decision008\">\n        <description>Tests FEEL expression: \'modulo(null, null)\' and expects result: \'null (number)\'</description>\n        <question>Result of FEEL expression \'modulo(null, null)\'?</question>\n        <allowedAnswers>null (number)</allowedAnswers>\n        <variable typeRef=\"number\" name=\"decision008\"/>\n        <literalExpression>\n            <text>modulo(null, null)</text>\n        </literalExpression>\n    </decision>\n    <decision name=\"decision008_a\" id=\"_decision008_a\">\n        <description>Tests FEEL expression: \'modulo(10, null)\' and expects result: \'null (number)\'</description>\n        <question>Result of FEEL expression \'modulo(10, null)\'?</question>\n        <allowedAnswers>null (number)</allowedAnswers>\n        <variable typeRef=\"number\" name=\"decision008_a\"/>\n        <literalExpression>\n            <text>modulo(10, null)</text>\n        </literalExpression>\n    </decision>\n    <decision name=\"decision008_b\" id=\"_decision008_b\">\n        <description>Tests FEEL expression: \'modulo(null, 4)\' and expects result: \'null (number)\'</description>\n        <question>Result of FEEL expression \'modulo(null, 4)\'?</question>\n        <allowedAnswers>null (number)</allowedAnswers>\n        <variable typeRef=\"number\" name=\"decision008_b\"/>\n        <literalExpression>\n            <text>modulo(null, 4)</text>\n        </literalExpression>\n    </decision>\n    <decision name=\"decision009\" id=\"_decision009\">\n        <description>Tests FEEL expression: \'modulo(\"10\", \"4\")\' and expects result: \'null (number)\'</description>\n        <question>Result of FEEL expression \'modulo(\"10\", \"4\")\'?</question>\n        <allowedAnswers>null (number)</allowedAnswers>\n        <variable typeRef=\"number\" name=\"decision009\"/>\n        <literalExpression>\n            <text>modulo(\"10\", \"4\")</text>\n        </literalExpression>\n    </decision>\n    <decision name=\"decision010\" id=\"_decision010\">\n        <description>Tests FEEL expression: \'modulo(true, true)\' and expects result: \'null (number)\'</description>\n        <question>Result of FEEL expression \'modulo(true, true)\'?</question>\n        <allowedAnswers>null (number)</allowedAnswers>\n        <variable typeRef=\"number\" name=\"decision010\"/>\n        <literalExpression>\n            <text>modulo(true, true)</text>\n        </literalExpression>\n    </decision>\n    <decision name=\"decision011\" id=\"_decision011\">\n        <description>Tests FEEL expression: \'modulo(duration(\"P10D\"), 4)\' and expects result: \'null (number)\'</description>\n        <question>Result of FEEL expression \'modulo(duration(\"P10D\"), 4)\'?</question>\n        <allowedAnswers>null (number)</allowedAnswers>\n        <variable typeRef=\"number\" name=\"decision011\"/>\n        <literalExpression>\n            <text>modulo(duration(\"P10D\"), 4)</text>\n        </literalExpression>\n    </decision>\n    <decision name=\"decision012\" id=\"_decision012\">\n        <description>Tests FEEL expression: \'modulo(duration(\"P10Y\"), 4)\' and expects result: \'null (number)\'</description>\n        <question>Result of FEEL expression \'modulo(duration(\"P10Y\"), 4)\'?</question>\n        <allowedAnswers>null (number)</allowedAnswers>\n        <variable typeRef=\"number\" name=\"decision012\"/>\n        <literalExpression>\n            <text>modulo(duration(\"P10Y\"), 4)</text>\n        </literalExpression>\n    </decision>\n    <decision name=\"decision013\" id=\"_decision013\">\n        <description>Tests FEEL expression: \'modulo(date(\"2018-12-06\"), 4)\' and expects result: \'null (number)\'</description>\n        <question>Result of FEEL expression \'modulo(date(\"2018-12-06\"), 4)\'?</question>\n        <allowedAnswers>null (number)</allowedAnswers>\n        <variable typeRef=\"number\" name=\"decision013\"/>\n        <literalExpression>\n            <text>modulo(date(\"2018-12-06\"), 4)</text>\n        </literalExpression>\n    </decision>\n    <decision name=\"decision014\" id=\"_decision014\">\n        <description>Tests FEEL expression: \'modulo(time(\"10:00:00\"), 4)\' and expects result: \'null (number)\'</description>\n        <question>Result of FEEL expression \'modulo(time(\"10:00:00\"), 4)\'?</question>\n        <allowedAnswers>null (number)</allowedAnswers>\n        <variable typeRef=\"number\" name=\"decision014\"/>\n        <literalExpression>\n            <text>modulo(time(\"10:00:00\"), 4)</text>\n        </literalExpression>\n    </decision>\n    <decision name=\"decision015\" id=\"_decision015\">\n        <description>Tests FEEL expression: \'modulo(date and time(\"2018-12-06T00:00:00\"), 4)\' and expects result: \'null (number)\'</description>\n        <question>Result of FEEL expression \'modulo(date and time(\"2018-12-06T00:00:00\"), 4)\'?</question>\n        <allowedAnswers>null (number)</allowedAnswers>\n        <variable typeRef=\"number\" name=\"decision015\"/>\n        <literalExpression>\n            <text>modulo(date and time(\"2018-12-06T00:00:00\"), 4)</text>\n        </literalExpression>\n    </decision>\n    <decision name=\"decision016a\" id=\"_decision016a\">\n        <description>Example from the DMN Specification, ref DMN13-125</description>\n        <variable typeRef=\"number\" name=\"decision016a\"/>\n        <literalExpression>\n            <text>modulo(12, 5)</text>\n        </literalExpression>\n    </decision>\n    <decision name=\"decision016b\" id=\"_decision016b\">\n        <description>Example from the DMN Specification, ref DMN13-125</description>\n        <variable typeRef=\"number\" name=\"decision016b\"/>\n        <literalExpression>\n            <text>modulo(-12, 5)</text>\n        </literalExpression>\n    </decision>\n    <decision name=\"decision016c\" id=\"_decision016c\">\n        <description>Example from the DMN Specification, ref DMN13-125</description>\n        <variable typeRef=\"number\" name=\"decision016c\"/>\n        <literalExpression>\n            <text>modulo(12, -5)</text>\n        </literalExpression>\n    </decision>\n    <decision name=\"decision016d\" id=\"_decision016d\">\n        <description>Example from the DMN Specification, ref DMN13-125</description>\n        <variable typeRef=\"number\" name=\"decision016d\"/>\n        <literalExpression>\n            <text>modulo(-12, -5)</text>\n        </literalExpression>\n    </decision>\n    <decision name=\"decision017a\" id=\"_decision017a\">\n        <description>Example from the DMN Specification, ref DMN13-125</description>\n        <variable typeRef=\"number\" name=\"decision017a\"/>\n        <literalExpression>\n            <text>decimal(modulo(10.1, 4.5),1)</text>\n        </literalExpression>\n    </decision>\n    <decision name=\"decision017b\" id=\"_decision017b\">\n        <description>Example from the DMN Specification, ref DMN13-125</description>\n        <variable typeRef=\"number\" name=\"decision017b\"/>\n        <literalExpression>\n            <text>decimal(modulo(-10.1, 4.5),1)</text>\n        </literalExpression>\n    </decision>\n    <decision name=\"decision017c\" id=\"_decision017c\">\n        <description>Example from the DMN Specification, ref DMN13-125</description>\n        <variable typeRef=\"number\" name=\"decision017c\"/>\n        <literalExpression>\n            <text>decimal(modulo(10.1, -4.5),1)</text>\n        </literalExpression>\n    </decision>\n    <decision name=\"decision017d\" id=\"_decision017d\">\n        <description>Example from the DMN Specification, ref DMN13-125</description>\n        <variable typeRef=\"number\" name=\"decision017d\"/>\n        <literalExpression>\n            <text>decimal(modulo(-10.1, -4.5),1)</text>\n        </literalExpression>\n    </decision>\n</definitions>\n\n";