Constant dmntk_examples::DMN_3_0085[][src]

pub const DMN_3_0085: &str = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<definitions namespace=\"https://github.com/dmn-tck/tck\"\n             name=\"0085-decision-services\"\n             id=\"_56ed8ec7-c342-4abc-9278-27b46ca991c6\"\n             xmlns=\"https://www.omg.org/spec/DMN/20191111/MODEL/\">\n    <description>Decision Services</description>\n\n    <!-- Direct invocation: no params -->\n\n    <decisionService name=\"decisionService_001\" id=\"_decisionService_001\">\n        <variable name=\"decisionService_001\"/>\n        <outputDecision href=\"#_decision_001\"/>\n    </decisionService>\n\n    <decision name=\"decision_001\" id=\"_decision_001\">\n        <variable name=\"decision_001\" typeRef=\"string\"/>\n        <literalExpression>\n            <text>\"foo\"</text>\n        </literalExpression>\n    </decision>\n\n    <!-- Direct invocation: an input decision param -->\n\n    <decisionService name=\"decisionService_002\" id=\"_decisionService_002\">\n        <variable name=\"decisionService_002\"/>\n        <outputDecision href=\"#_decision_002\"/>\n        <inputDecision href=\"#_decision_002_input\"/>\n    </decisionService>\n\n    <decision name=\"decision_002\" id=\"_decision_002\">\n        <variable name=\"decision_002\"  typeRef=\"string\"/>\n        <informationRequirement>\n            <requiredDecision href=\"#_decision_002_input\"/>\n        </informationRequirement>\n        <literalExpression>\n            <text>\"foo \" + decision_002_input</text>\n        </literalExpression>\n    </decision>\n\n    <decision name=\"decision_002_input\" id=\"_decision_002_input\">\n        <variable name=\"decision_002_input\"  typeRef=\"string\"/>\n        <literalExpression>\n            <text>\"bar\"</text>\n        </literalExpression>\n    </decision>\n\n    <!-- Direct invocation: with multiple input decision params and an input data -->\n\n    <decisionService name=\"decisionService_003\" id=\"_decisionService_003\">\n        <variable name=\"decisionService_003\"/>\n        <outputDecision href=\"#_decision_003\"/>\n        <inputDecision href=\"#_decision_003_input_1\"/>\n        <inputDecision href=\"#_decision_003_input_2\"/>\n        <inputData href=\"#_inputData_003\"/>\n    </decisionService>\n\n    <decision name=\"decision_003\" id=\"_decision_003\">\n        <variable name=\"decision_003\"/>\n        <informationRequirement>\n            <requiredDecision href=\"#_decision_003_input_1\"/>\n        </informationRequirement>\n        <informationRequirement>\n            <requiredDecision href=\"#_decision_003_input_2\"/>\n        </informationRequirement>\n        <informationRequirement>\n            <requiredInput href=\"#_inputData_003\"/>\n        </informationRequirement>\n        <literalExpression>\n            <text>\"A \" + decision_003_input_1 + \" \" + decision_003_input_2 + \" \" + inputData_003</text>\n        </literalExpression>\n    </decision>\n\n    <decision name=\"decision_003_input_1\" id=\"_decision_003_input_1\">\n        <variable name=\"decision_003_input_1\"/>\n        <literalExpression>\n            <text>\"d3_1\"</text>\n        </literalExpression>\n    </decision>\n\n    <decision name=\"decision_003_input_2\" id=\"_decision_003_input_2\">\n        <variable name=\"decision_003_input_2\"/>\n        <literalExpression>\n            <text>\"d3_2\"</text>\n        </literalExpression>\n    </decision>\n\n    <inputData name=\"inputData_003\" id=\"_inputData_003\">\n        <variable name=\"inputData_003\" typeRef=\"string\"/>\n    </inputData>\n\n    <!-- with no params, when none are expected -->\n\n    <decisionService name=\"decisionService_004\" id=\"_decisionService_004\">\n        <variable name=\"decisionService_004\"/>\n        <outputDecision href=\"#_decision_004_2\"/>\n    </decisionService>\n\n    <decision name=\"decision_004_1\" id=\"_decision_004_1\">\n        <variable name=\"decision_004_1\"/>\n        <knowledgeRequirement>\n            <requiredKnowledge href=\"#_decisionService_004\"/>\n        </knowledgeRequirement>\n        <literalExpression>\n            <text>decisionService_004()</text>\n        </literalExpression>\n    </decision>\n\n    <decision name=\"decision_004_2\" id=\"_decision_004_2\">\n        <variable name=\"decision_004_2\"/>\n        <literalExpression>\n            <text>\"foo\"</text>\n        </literalExpression>\n    </decision>\n\n    <!-- passing a param when DS accepts none -->\n\n    <decisionService name=\"decisionService_005\" id=\"_decisionService_005\">\n        <variable name=\"decisionService_005\"/>\n        <outputDecision href=\"#_decision_005_2\"/>\n    </decisionService>\n\n    <decision name=\"decision_005_1\" id=\"_decision_005_1\">\n        <variable name=\"decision_005_1\"/>\n        <knowledgeRequirement>\n            <requiredKnowledge href=\"#_decisionService_005\"/>\n        </knowledgeRequirement>\n        <literalExpression>\n            <text>decisionService_005(\"bar\")</text>\n        </literalExpression>\n    </decision>\n\n    <decision name=\"decision_005_2\" id=\"_decision_005_2\">\n        <variable typeRef=\"string\" name=\"decision_005_2\"/>\n        <literalExpression>\n            <text>\"foo\"</text>\n        </literalExpression>\n    </decision>\n\n    <!-- passing a single input decision param -->\n\n    <decisionService name=\"decisionService_006\" id=\"_decisionService_006\">\n        <variable name=\"decisionService_006\"/>\n        <outputDecision href=\"#_decision_006_2\"/>\n        <inputDecision href=\"#_decision_006_3\"/>\n    </decisionService>\n\n    <decision name=\"decision_006_1\" id=\"_decision_006_1\">\n        <variable name=\"decision_006_1\"/>\n        <knowledgeRequirement>\n            <requiredKnowledge href=\"#_decisionService_006\"/>\n        </knowledgeRequirement>\n        <literalExpression>\n            <text>decisionService_006(\"bar\")</text>\n        </literalExpression>\n    </decision>\n\n    <decision name=\"decision_006_2\" id=\"_decision_006_2\">\n        <variable name=\"decision_006_2\"/>\n        <informationRequirement>\n            <requiredDecision href=\"#_decision_006_3\"/>\n        </informationRequirement>\n        <literalExpression>\n            <text>\"foo \" + decision_006_3</text>\n        </literalExpression>\n    </decision>\n\n    <!-- provided as input, so never gets invoked -->\n    <decision name=\"decision_006_3\" id=\"_decision_006_3\">\n        <variable typeRef=\"string\" name=\"decision_006_3\"/>\n        <literalExpression>\n            <text>\"I never get invoked\"</text>\n        </literalExpression>\n    </decision>\n\n\n    <!-- passing an incorrect type value as single input decision param -->\n\n    <decisionService name=\"decisionService_007\" id=\"_decisionService_007\">\n        <variable name=\"decisionService_007\"/>\n        <outputDecision href=\"#_decision_007_2\"/>\n        <inputDecision href=\"#_decision_007_3\"/>\n    </decisionService>\n\n    <decision name=\"decision_007_1\" id=\"_decision_007_1\">\n        <variable name=\"decision_007_1\"/>\n        <knowledgeRequirement>\n            <requiredKnowledge href=\"#_decisionService_007\"/>\n        </knowledgeRequirement>\n        <literalExpression>\n            <text>decisionService_007(123)</text>\n        </literalExpression>\n    </decision>\n\n    <decision name=\"decision_007_2\" id=\"_decision_007_2\">\n        <variable name=\"decision_007_2\"/>\n        <informationRequirement>\n            <requiredDecision href=\"#_decision_007_3\"/>\n        </informationRequirement>\n        <literalExpression>\n            <text>decision_007_3 = null</text>\n        </literalExpression>\n    </decision>\n\n    <!-- provided as input, so never gets invoked -->\n    <decision name=\"decision_007_3\" id=\"_decision_007_3\">\n        <variable typeRef=\"string\" name=\"decision_007_3\"/>\n        <literalExpression>\n            <text>\"I never get invoked\"</text>\n        </literalExpression>\n    </decision>\n\n\n    <!-- passing no params when expects a single param -->\n\n    <decisionService name=\"decisionService_008\" id=\"_decisionService_008\">\n        <variable name=\"decisionService_008\"/>\n        <outputDecision href=\"#_decision_008_2\"/>\n        <inputDecision href=\"#_decision_008_3\"/>\n    </decisionService>\n\n    <decision name=\"decision_008_1\" id=\"_decision_008_1\">\n        <variable name=\"decision_008_1\"/>\n        <knowledgeRequirement>\n            <requiredKnowledge href=\"#_decisionService_008\"/>\n        </knowledgeRequirement>\n        <literalExpression>\n            <text>decisionService_008()</text>\n        </literalExpression>\n    </decision>\n\n    <decision name=\"decision_008_2\" id=\"_decision_008_2\">\n        <variable name=\"decision_008_2\"/>\n        <informationRequirement>\n            <requiredDecision href=\"#_decision_008_3\"/>\n        </informationRequirement>\n        <literalExpression>\n            <text>decision_008_3 = null</text>\n        </literalExpression>\n    </decision>\n\n    <!-- provided as input, so never gets invoked -->\n    <decision name=\"decision_008_3\" id=\"_decision_008_3\">\n        <variable typeRef=\"string\" name=\"decision_008_3\"/>\n        <literalExpression>\n            <text>\"I never get invoked\"</text>\n        </literalExpression>\n    </decision>\n\n    <!-- passing named param -->\n\n    <decisionService name=\"decisionService_009\" id=\"_decisionService_009\">\n        <variable name=\"decisionService_009\"/>\n        <outputDecision href=\"#_decision_009_2\"/>\n        <inputDecision href=\"#_decision_009_3\"/>\n    </decisionService>\n\n    <decision name=\"decision_009_1\" id=\"_decision_009_1\">\n        <variable name=\"decision_009_1\"/>\n        <knowledgeRequirement>\n            <requiredKnowledge href=\"#_decisionService_009\"/>\n        </knowledgeRequirement>\n        <literalExpression>\n            <text>decisionService_009(decision_009_3: \"bar\")</text>\n        </literalExpression>\n    </decision>\n\n    <decision name=\"decision_009_2\" id=\"_decision_009_2\">\n        <variable name=\"decision_009_2\"/>\n        <informationRequirement>\n            <requiredDecision href=\"#_decision_009_3\"/>\n        </informationRequirement>\n        <literalExpression>\n            <text>\"foo \" + decision_009_3</text>\n        </literalExpression>\n    </decision>\n\n    <!-- provided as input, so never gets invoked -->\n    <decision name=\"decision_009_3\" id=\"_decision_009_3\">\n        <variable typeRef=\"string\" name=\"decision_009_3\"/>\n        <literalExpression>\n            <text>\"I never get invoked\"</text>\n        </literalExpression>\n    </decision>\n\n    <!-- passing badly named param -->\n\n    <decisionService name=\"decisionService_010\" id=\"_decisionService_010\">\n        <variable name=\"decisionService_010\"/>\n        <outputDecision href=\"#_decision_010_2\"/>\n        <inputDecision href=\"#_decision_010_3\"/>\n    </decisionService>\n\n    <decision name=\"decision_010_1\" id=\"_decision_010_1\">\n        <variable name=\"decision_010_1\"/>\n        <knowledgeRequirement>\n            <requiredKnowledge href=\"#_decisionService_010\"/>\n        </knowledgeRequirement>\n        <literalExpression>\n            <text>decisionService_010(foo: \"bar\")</text>\n        </literalExpression>\n    </decision>\n\n    <decision name=\"decision_010_2\" id=\"_decision_010_2\">\n        <variable name=\"decision_010_2\"/>\n        <informationRequirement>\n            <requiredDecision href=\"#_decision_010_3\"/>\n        </informationRequirement>\n        <literalExpression>\n            <text>\"foo \" + decision_010_3</text>\n        </literalExpression>\n    </decision>\n\n    <!-- provided as input, so never gets invoked -->\n    <decision name=\"decision_010_3\" id=\"_decision_010_3\">\n        <variable typeRef=\"string\" name=\"decision_010_3\"/>\n        <literalExpression>\n            <text>\"I never get invoked\"</text>\n        </literalExpression>\n    </decision>\n\n    <!-- verify params accepted in correct order : passing two input decision and two input data -->\n\n    <decisionService name=\"decisionService_011\" id=\"_decisionService_011\">\n        <variable name=\"decisionService_011\"/>\n        <outputDecision href=\"#_decision_011_2\"/>\n        <inputDecision href=\"#_decision_011_3\"/>\n        <inputDecision href=\"#_decision_011_4\"/>\n        <inputData href=\"#_inputData_011_1\"/>\n        <inputData href=\"#_inputData_011_2\"/>\n    </decisionService>\n\n    <decision name=\"decision_011_1\" id=\"_decision_011_1\">\n        <variable name=\"decision_011_1\"/>\n        <knowledgeRequirement>\n            <requiredKnowledge href=\"#_decisionService_011\"/>\n        </knowledgeRequirement>\n        <literalExpression>\n            <text>decisionService_011(\"A\", \"B\", \"C\", \"D\")</text>\n        </literalExpression>\n    </decision>\n\n    <decision name=\"decision_011_2\" id=\"_decision_011_2\">\n        <variable typeRef=\"string\" name=\"decision_011_2\"/>\n        <informationRequirement>\n            <requiredDecision href=\"#_decision_011_3\"/>\n        </informationRequirement>\n        <informationRequirement>\n            <requiredDecision href=\"#_decision_011_4\"/>\n        </informationRequirement>\n        <informationRequirement>\n            <requiredInput href=\"#_inputData_011_1\"/>\n        </informationRequirement>\n        <informationRequirement>\n            <requiredInput href=\"#_inputData_011_2\"/>\n        </informationRequirement>\n        <literalExpression>\n            <text>inputData_011_1 + \" \" + inputData_011_2 + \" \" + decision_011_3 + \" \" + decision_011_4</text>\n        </literalExpression>\n    </decision>\n\n    <!-- provided as input, so never gets invoked -->\n    <decision name=\"decision_011_3\" id=\"_decision_011_3\">\n        <variable typeRef=\"string\" name=\"decision_011_3\"/>\n        <literalExpression>\n            <text>\"I never get invoked\"</text>\n        </literalExpression>\n    </decision>\n\n    <!-- provided as input, so never gets invoked -->\n    <decision name=\"decision_011_4\" id=\"_decision_011_4\">\n        <variable typeRef=\"string\" name=\"decision_011_4\"/>\n        <literalExpression>\n            <text>\"I never get invoked\"</text>\n        </literalExpression>\n    </decision>\n\n    <!-- provided as input, so never gets invoked -->\n    <inputData name=\"inputData_011_1\" id=\"_inputData_011_1\">\n        <variable name=\"inputData_011_1\" typeRef=\"string\"/>\n    </inputData>\n\n    <!-- provided as input, so never gets invoked -->\n    <inputData name=\"inputData_011_2\" id=\"_inputData_011_2\">\n        <variable name=\"inputData_011_2\" typeRef=\"string\"/>\n    </inputData>\n\n    <!-- verify named params accepted in correct order : passing two input decision and two input data -->\n\n    <decisionService name=\"decisionService_012\" id=\"_decisionService_012\">\n        <variable name=\"decisionService_012\"/>\n        <outputDecision href=\"#_decision_012_2\"/>\n        <inputDecision href=\"#_decision_012_3\"/>\n        <inputDecision href=\"#_decision_012_4\"/>\n        <inputData href=\"#_inputData_012_1\"/>\n        <inputData href=\"#_inputData_012_2\"/>\n    </decisionService>\n\n    <decision name=\"decision_012_1\" id=\"_decision_012_1\">\n        <variable name=\"decision_012_1\"/>\n        <knowledgeRequirement>\n            <requiredKnowledge href=\"#_decisionService_012\"/>\n        </knowledgeRequirement>\n        <literalExpression>\n            <text>decisionService_012(decision_012_3: \"C\", inputData_012_1: \"A\", decision_012_4: \"D\", inputData_012_2: \"B\")</text>\n        </literalExpression>\n    </decision>\n\n    <decision name=\"decision_012_2\" id=\"_decision_012_2\">\n        <variable typeRef=\"string\" name=\"decision_012_2\"/>\n        <informationRequirement>\n            <requiredDecision href=\"#_decision_012_3\"/>\n        </informationRequirement>\n        <informationRequirement>\n            <requiredDecision href=\"#_decision_012_4\"/>\n        </informationRequirement>\n        <informationRequirement>\n            <requiredInput href=\"#_inputData_012_1\"/>\n        </informationRequirement>\n        <informationRequirement>\n            <requiredInput href=\"#_inputData_012_2\"/>\n        </informationRequirement>\n        <literalExpression>\n            <text>inputData_012_1 + \" \" + inputData_012_2 + \" \" + decision_012_3 + \" \" + decision_012_4</text>\n        </literalExpression>\n    </decision>\n\n    <!-- provided as input, so never gets invoked -->\n    <decision name=\"decision_012_3\" id=\"_decision_012_3\">\n        <variable typeRef=\"string\" name=\"decision_012_3\"/>\n        <literalExpression>\n            <text>\"I never get invoked\"</text>\n        </literalExpression>\n    </decision>\n\n    <!-- provided as input, so never gets invoked -->\n    <decision name=\"decision_012_4\" id=\"_decision_012_4\">\n        <variable typeRef=\"string\" name=\"decision_012_4\"/>\n        <literalExpression>\n            <text>\"I never get invoked\"</text>\n        </literalExpression>\n    </decision>\n\n    <!-- provided as input, so never gets invoked -->\n    <inputData name=\"inputData_012_1\" id=\"_inputData_012_1\">\n        <variable name=\"inputData_012_1\" typeRef=\"string\"/>\n    </inputData>\n\n    <!-- provided as input, so never gets invoked -->\n    <inputData name=\"inputData_012_2\" id=\"_inputData_012_2\">\n        <variable name=\"inputData_012_2\" typeRef=\"string\"/>\n    </inputData>\n\n    <!-- verify input decision or data has no bearing on \'global\' usage of same decision or input.\n    That is, the usage of input decision and data is \'scoped\' to within the DS.  To show this\n    we\'ll pass input decision and data to DS AND we\'ll also use them outside of the DS -->\n\n    <!-- We\'ll do two similar tests for this.  One that executes the DS first to assert it had no effect\n    on the global usage, and the other way around - global first to assert it had no effect on DS usage. -->\n\n    <decisionService name=\"decisionService_013\" id=\"_decisionService_013\">\n        <variable name=\"decisionService_013\"/>\n        <outputDecision href=\"#_decision_013_2\"/>\n        <inputDecision href=\"#_decision_013_3\"/>\n        <inputData href=\"#_inputData_013_1\"/>\n    </decisionService>\n\n    <!-- invoke DS using input decision and data, then also use same decision and input _outside_ of the DS -->\n    <decision name=\"decision_013_1\" id=\"_decision_013_1\">\n        <variable name=\"decision_013_1\"/>\n        <informationRequirement>\n            <requiredDecision href=\"#_decision_013_3\"/>\n        </informationRequirement>\n        <informationRequirement>\n            <requiredInput href=\"#_inputData_013_1\"/>\n        </informationRequirement>\n        <knowledgeRequirement>\n            <requiredKnowledge href=\"#_decisionService_013\"/>\n        </knowledgeRequirement>\n        <context>\n            <contextEntry>\n                <variable name=\"decisionService_013\"/>\n                <literalExpression>\n                    <text>decisionService_013(\"A\", \"B\")</text>\n                </literalExpression>\n            </contextEntry>\n            <contextEntry>\n                <variable name=\"inputData_013_1\"/>\n                <literalExpression>\n                    <text>inputData_013_1</text>\n                </literalExpression>\n            </contextEntry>\n            <contextEntry>\n                <variable name=\"decision_013_3\"/>\n                <literalExpression>\n                    <text>decision_013_3</text>\n                </literalExpression>\n            </contextEntry>\n        </context>\n    </decision>\n\n    <!-- invoked from DS with input decicion and data -->\n    <decision name=\"decision_013_2\" id=\"_decision_013_2\">\n        <variable typeRef=\"string\" name=\"decision_013_2\"/>\n        <informationRequirement>\n            <requiredDecision href=\"#_decision_013_3\"/>\n        </informationRequirement>\n        <informationRequirement>\n            <requiredInput href=\"#_inputData_013_1\"/>\n        </informationRequirement>\n        <literalExpression>\n            <text>inputData_013_1 + \" \" + decision_013_3</text>\n        </literalExpression>\n    </decision>\n\n    <decision name=\"decision_013_3\" id=\"_decision_013_3\">\n        <variable typeRef=\"string\" name=\"decision_013_3\"/>\n        <literalExpression>\n            <text>\"D\"</text>\n        </literalExpression>\n    </decision>\n\n    <inputData name=\"inputData_013_1\" id=\"_inputData_013_1\">\n        <variable name=\"inputData_013_1\" typeRef=\"string\"/>\n    </inputData>\n\n\n    <!-- same as 013 but with order of execution of DS /glocal reversed -->\n    <decisionService name=\"decisionService_014\" id=\"_decisionService_014\">\n        <variable name=\"decisionService_014\"/>\n        <outputDecision href=\"#_decision_014_2\"/>\n        <inputDecision href=\"#_decision_014_3\"/>\n        <inputData href=\"#_inputData_014_1\"/>\n    </decisionService>\n\n    <!-- invoke DS using input decision and data, then also use same decision and input _outside_ of the DS -->\n    <decision name=\"decision_014_1\" id=\"_decision_014_1\">\n        <variable name=\"decision_014_1\"/>\n        <informationRequirement>\n            <requiredDecision href=\"#_decision_014_3\"/>\n        </informationRequirement>\n        <informationRequirement>\n            <requiredInput href=\"#_inputData_014_1\"/>\n        </informationRequirement>\n        <knowledgeRequirement>\n            <requiredKnowledge href=\"#_decisionService_014\"/>\n        </knowledgeRequirement>\n        <context>\n            <contextEntry>\n                <variable name=\"inputData_014_1\"/>\n                <literalExpression>\n                    <text>inputData_014_1</text>\n                </literalExpression>\n            </contextEntry>\n            <contextEntry>\n                <variable name=\"decision_014_3\"/>\n                <literalExpression>\n                    <text>decision_014_3</text>\n                </literalExpression>\n            </contextEntry>\n            <contextEntry>\n                <variable name=\"decisionService_014\"/>\n                <literalExpression>\n                    <text>decisionService_014(\"A\", \"B\")</text>\n                </literalExpression>\n            </contextEntry>\n        </context>\n    </decision>\n\n    <!-- invoked from DS with input decision and data -->\n    <decision name=\"decision_014_2\" id=\"_decision_014_2\">\n        <variable typeRef=\"string\" name=\"decision_014_2\"/>\n        <informationRequirement>\n            <requiredDecision href=\"#_decision_014_3\"/>\n        </informationRequirement>\n        <informationRequirement>\n            <requiredInput href=\"#_inputData_014_1\"/>\n        </informationRequirement>\n        <literalExpression>\n            <text>inputData_014_1 + \" \" + decision_014_3</text>\n        </literalExpression>\n    </decision>\n\n    <decision name=\"decision_014_3\" id=\"_decision_014_3\">\n        <variable typeRef=\"string\" name=\"decision_014_3\"/>\n        <literalExpression>\n            <text>\"D\"</text>\n        </literalExpression>\n    </decision>\n\n    <inputData name=\"inputData_014_1\" id=\"_inputData_014_1\">\n        <variable name=\"inputData_014_1\" typeRef=\"string\"/>\n    </inputData>\n\n\n</definitions>\n";