From 84624d21a1180dee3504c1535233d34798d46d2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tibor=20Zim=C3=A1nyi?= Date: Thu, 18 Apr 2024 15:18:09 +0200 Subject: [PATCH] Upgrade to DMN 1.5 (#650) --- TestCases/DMN15.xsd | 592 ++++++++++++++++++ TestCases/DMNDI15.xsd | 109 ++++ .../0001-input-data-string.dmn | 2 +- .../0002-input-data-number.dmn | 2 +- .../0003-input-data-string-allowed-values.dmn | 2 +- .../0004-simpletable-U/0004-simpletable-U.dmn | 2 +- .../0005-simpletable-A/0005-simpletable-A.dmn | 2 +- .../0006-simpletable-P1.dmn | 2 +- .../0007-simpletable-P2.dmn | 2 +- .../0008-LX-arithmetic/0008-LX-arithmetic.dmn | 2 +- .../0009-invocation-arithmetic.dmn | 4 +- .../0010-multi-output-U.dmn | 2 +- .../0100-feel-constants.dmn | 2 +- .../0101-feel-constants.dmn | 2 +- .../0102-feel-constants.dmn | 2 +- .../0105-feel-math/0105-feel-math.dmn | 2 +- .../0106-feel-ternary-logic.dmn | 2 +- .../0107-feel-ternary-logic-not.dmn | 2 +- .../0108-first-hitpolicy.dmn | 2 +- .../0109-ruleOrder-hitpolicy.dmn | 2 +- .../0110-outputOrder-hitpolicy.dmn | 2 +- .../0111-first-hitpolicy-singleoutputcol.dmn | 2 +- ...112-ruleOrder-hitpolicy-singleinoutcol.dmn | 2 +- ...3-outputOrder-hitpolicy-singleinoutcol.dmn | 2 +- .../0114-min-collect-hitpolicy.dmn | 2 +- .../0115-sum-collect-hitpolicy.dmn | 2 +- .../0116-count-collect-hitpolicy.dmn | 2 +- .../0117-multi-any-hitpolicy.dmn | 2 +- .../0118-multi-priority-hitpolicy.dmn | 2 +- .../0119-multi-collect-hitpolicy.dmn | 2 +- TestCases/compliance-level-2/labeler.xslt | 2 +- .../0001-filter/0001-filter.dmn | 2 +- .../0002-string-functions.dmn | 2 +- .../0003-iteration/0003-iteration.dmn | 2 +- .../0004-lending/0004-lending.dmn | 2 +- .../0005-literal-invocation.dmn | 2 +- .../0006-join/0006-join.dmn | 2 +- .../0007-date-time/0007-date-time.dmn | 2 +- .../0008-listGen/0008-listGen.dmn | 2 +- .../0009-append-flatten.dmn | 2 +- .../0010-concatenate/0010-concatenate.dmn | 2 +- .../0011-insert-remove/0011-insert-remove.dmn | 2 +- .../0012-list-functions.dmn | 2 +- .../0013-sort/0013-sort.dmn | 2 +- .../0014-loan-comparison.dmn | 2 +- .../0016-some-every/0016-some-every.dmn | 2 +- .../0017-tableTests/0017-tableTests.dmn | 2 +- .../0020-vacation-days/0020-vacation-days.dmn | 2 +- .../0021-singleton-list.dmn | 2 +- .../0030-user-defined-functions.dmn | 2 +- .../0031-user-defined-functions.dmn | 2 +- .../0032-conditionals/0032-conditionals.dmn | 2 +- .../0033-for-loops/0033-for-loops.dmn | 2 +- .../0034-drg-scopes/0034-drg-scopes.dmn | 50 +- .../0035-test-structure-output.dmn | 2 +- .../0036-dt-variable-input.dmn | 2 +- .../0037-dt-on-bkm-implicit-params.dmn | 6 +- .../0038-dt-on-bkm-explicit-params.dmn | 6 +- .../0039-dt-list-semantics.dmn | 2 +- .../0040-singlenestedcontext.dmn | 2 +- .../0041-multiple-nestedcontext.dmn | 2 +- .../0050-feel-abs-function.dmn | 2 +- .../0051-feel-sqrt-function.dmn | 2 +- .../0052-feel-exp-function.dmn | 2 +- .../0053-feel-log-function.dmn | 2 +- .../0054-feel-even-function.dmn | 2 +- .../0055-feel-odd-function.dmn | 2 +- .../0056-feel-modulo-function.dmn | 2 +- .../0057-feel-context/0057-feel-context.dmn | 2 +- .../0058-feel-number-function.dmn | 2 +- .../0059-feel-all-function.dmn | 2 +- .../0060-feel-any-function.dmn | 2 +- .../0061-feel-median-function.dmn | 2 +- .../0062-feel-mode-function.dmn | 2 +- .../0063-feel-stddev-function.dmn | 2 +- .../0064-feel-conjunction.dmn | 2 +- .../0065-feel-disjunction.dmn | 2 +- .../0066-feel-negation/0066-feel-negation.dmn | 2 +- .../0067-feel-split-function.dmn | 2 +- .../0068-feel-equality/0068-feel-equality.dmn | 4 +- .../0069-feel-list/0069-feel-list.dmn | 2 +- .../0070-feel-instance-of.dmn | 2 +- .../0071-feel-between/0071-feel-between.dmn | 2 +- .../0072-feel-in/0072-feel-in.dmn | 2 +- .../0073-feel-comments/0073-feel-comments.dmn | 2 +- .../0074-feel-properties.dmn | 2 +- .../0075-feel-exponent/0075-feel-exponent.dmn | 2 +- .../0076-feel-external-java.dmn | 2 +- .../0077-feel-nan/0077-feel-nan.dmn | 2 +- .../0078-feel-infinity/0078-feel-infinity.dmn | 2 +- .../0080-feel-getvalue-function.dmn | 2 +- .../0081-feel-getentries-function.dmn | 2 +- .../0082-feel-coercion/0082-feel-coercion.dmn | 2 +- .../0083-feel-unicode/0083-feel-unicode.dmn | 2 +- .../0084-feel-for-loops.dmn | 2 +- .../0085-decision-services.dmn | 4 +- .../0086-import/0086-import.dmn | 8 +- .../0086-import/Imported_Model.dmn | 6 +- .../0087-chapter-11-example.dmn | 6 +- .../0088-no-decision-logic.dmn | 2 +- .../0089-nested-inputdata-imports.dmn | 14 +- .../0089-nested-inputdata-imports/Model_B.dmn | 12 +- .../Model_B2.dmn | 12 +- .../Say_hello_1ID1D.dmn | 10 +- .../0090-feel-paths/0090-feel-paths.dmn | 2 +- .../0091-local-hrefs/0091-local-hrefs.dmn | 2 +- .../0092-feel-lambda/0092-feel-lambda.dmn | 2 +- .../0093-feel-at-literals.dmn | 4 +- .../0094-feel-product-function.dmn | 4 +- .../0095-feel-day-of-year-function.dmn | 4 +- .../0096-feel-day-of-week-function.dmn | 4 +- .../0097-feel-month-of-year-function.dmn | 4 +- .../0098-feel-week-of-year-function.dmn | 4 +- .../0099-arithmetic-negation.dmn | 4 +- .../0100-arithmetic/0100-arithmetic.dmn | 4 +- .../0100-arithmetic/generateTests.js | 4 +- .../0103-feel-is-function.dmn | 4 +- .../1100-feel-decimal-function.dmn | 2 +- .../1101-feel-floor-function.dmn | 2 +- .../1102-feel-ceiling-function.dmn | 2 +- .../1103-feel-substring-function.dmn | 2 +- .../1104-feel-string-length-function.dmn | 2 +- .../1105-feel-upper-case-function.dmn | 2 +- .../1106-feel-lower-case-function.dmn | 2 +- .../1107-feel-substring-before-function.dmn | 2 +- .../1108-feel-substring-after-function.dmn | 2 +- .../1109-feel-replace-function.dmn | 2 +- .../1110-feel-contains-function.dmn | 2 +- .../1111-feel-matches-function.dmn | 4 +- .../1115-feel-date-function.dmn | 2 +- .../1116-feel-time-function.dmn | 2 +- .../1117-feel-date-and-time-function.dmn | 2 +- .../1120-feel-duration-function.dmn | 2 +- ...eel-years-and-months-duration-function.dmn | 2 +- .../1130-feel-interval/1130-feel-interval.dmn | 266 ++++---- .../1131-feel-function-invocation.dmn | 2 +- .../1140-feel-string-join-function.dmn | 4 +- .../1141-feel-round-up-function.dmn | 4 +- .../1142-feel-round-down-function.dmn | 4 +- .../1143-feel-round-half-up-function.dmn | 4 +- .../1144-feel-round-half-down-function.dmn | 4 +- .../1145-feel-context-function.dmn | 4 +- .../1146-feel-context-put-function.dmn | 4 +- .../1147-feel-context-merge-function.dmn | 4 +- .../1148-feel-now-function.dmn | 4 +- .../1149-feel-today-function.dmn | 4 +- .../1150-boxed-conditional.dmn | 4 +- .../1151-boxed-filter/1151-boxed-filter.dmn | 4 +- .../1152-boxed-for/1152-boxed-for.dmn | 4 +- .../1153-boxed-some/1153-boxed-some.dmn | 4 +- .../1154-boxed-every/1154-boxed-every.dmn | 4 +- TestCases/compliance-level-3/labeler.xslt | 2 +- .../0015-all-any/0015-all-any.dmn | 2 +- .../0019-flight-rebooking.dmn | 4 +- .../0079-feel-string-function.dmn | 2 +- .../0088-recursion/0088-recursion.dmn | 2 +- TestExamples/calc-discount/A.1.dmn | 8 +- TestExamples/calc-discount/A.2.dmn | 6 +- TestExamples/calc-discount/A.3.dmn | 14 +- TestExamples/lending1/lending1.dmn | 2 +- .../order-discount/order-discount.dmn | 2 +- .../0001-input-data-string.dmn | 4 +- .../0002-input-data-number.dmn | 4 +- .../0003-input-data-string-allowed-values.dmn | 4 +- .../dmn/tck/validation/TestCasesFiles.java | 4 +- utils/dmn-tck-packager/README.md | 2 +- 166 files changed, 1097 insertions(+), 396 deletions(-) create mode 100644 TestCases/DMN15.xsd create mode 100644 TestCases/DMNDI15.xsd diff --git a/TestCases/DMN15.xsd b/TestCases/DMN15.xsd new file mode 100644 index 000000000..a6b161ecb --- /dev/null +++ b/TestCases/DMN15.xsd @@ -0,0 +1,592 @@ + + + + + + + Include the DMN Diagram Interchange (DI) schema + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/TestCases/DMNDI15.xsd b/TestCases/DMNDI15.xsd new file mode 100644 index 000000000..17b553534 --- /dev/null +++ b/TestCases/DMNDI15.xsd @@ -0,0 +1,109 @@ + + + + + + + + + + + This element should never be instantiated directly, but rather concrete implementation should. It is placed there only to be referred in the sequence + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/TestCases/compliance-level-2/0001-input-data-string/0001-input-data-string.dmn b/TestCases/compliance-level-2/0001-input-data-string/0001-input-data-string.dmn index 3ee37abbe..a52940fba 100644 --- a/TestCases/compliance-level-2/0001-input-data-string/0001-input-data-string.dmn +++ b/TestCases/compliance-level-2/0001-input-data-string/0001-input-data-string.dmn @@ -1,5 +1,5 @@ - + diff --git a/TestCases/compliance-level-2/0002-input-data-number/0002-input-data-number.dmn b/TestCases/compliance-level-2/0002-input-data-number/0002-input-data-number.dmn index ec5b93fb1..e48f06d56 100644 --- a/TestCases/compliance-level-2/0002-input-data-number/0002-input-data-number.dmn +++ b/TestCases/compliance-level-2/0002-input-data-number/0002-input-data-number.dmn @@ -1,5 +1,5 @@ - + diff --git a/TestCases/compliance-level-2/0003-input-data-string-allowed-values/0003-input-data-string-allowed-values.dmn b/TestCases/compliance-level-2/0003-input-data-string-allowed-values/0003-input-data-string-allowed-values.dmn index b6d1e4612..da8d871b8 100644 --- a/TestCases/compliance-level-2/0003-input-data-string-allowed-values/0003-input-data-string-allowed-values.dmn +++ b/TestCases/compliance-level-2/0003-input-data-string-allowed-values/0003-input-data-string-allowed-values.dmn @@ -1,5 +1,5 @@ - + string diff --git a/TestCases/compliance-level-2/0004-simpletable-U/0004-simpletable-U.dmn b/TestCases/compliance-level-2/0004-simpletable-U/0004-simpletable-U.dmn index 35a93db1d..2ff5c6f77 100644 --- a/TestCases/compliance-level-2/0004-simpletable-U/0004-simpletable-U.dmn +++ b/TestCases/compliance-level-2/0004-simpletable-U/0004-simpletable-U.dmn @@ -1,5 +1,5 @@ - + diff --git a/TestCases/compliance-level-2/0005-simpletable-A/0005-simpletable-A.dmn b/TestCases/compliance-level-2/0005-simpletable-A/0005-simpletable-A.dmn index 93d3146de..94568b8f2 100644 --- a/TestCases/compliance-level-2/0005-simpletable-A/0005-simpletable-A.dmn +++ b/TestCases/compliance-level-2/0005-simpletable-A/0005-simpletable-A.dmn @@ -1,5 +1,5 @@ - + diff --git a/TestCases/compliance-level-2/0006-simpletable-P1/0006-simpletable-P1.dmn b/TestCases/compliance-level-2/0006-simpletable-P1/0006-simpletable-P1.dmn index 03d84f39d..5c654e04a 100644 --- a/TestCases/compliance-level-2/0006-simpletable-P1/0006-simpletable-P1.dmn +++ b/TestCases/compliance-level-2/0006-simpletable-P1/0006-simpletable-P1.dmn @@ -1,5 +1,5 @@ - + diff --git a/TestCases/compliance-level-2/0007-simpletable-P2/0007-simpletable-P2.dmn b/TestCases/compliance-level-2/0007-simpletable-P2/0007-simpletable-P2.dmn index 027bebd88..c16063c7c 100644 --- a/TestCases/compliance-level-2/0007-simpletable-P2/0007-simpletable-P2.dmn +++ b/TestCases/compliance-level-2/0007-simpletable-P2/0007-simpletable-P2.dmn @@ -1,5 +1,5 @@ - + diff --git a/TestCases/compliance-level-2/0008-LX-arithmetic/0008-LX-arithmetic.dmn b/TestCases/compliance-level-2/0008-LX-arithmetic/0008-LX-arithmetic.dmn index b9c70f65e..68c042995 100644 --- a/TestCases/compliance-level-2/0008-LX-arithmetic/0008-LX-arithmetic.dmn +++ b/TestCases/compliance-level-2/0008-LX-arithmetic/0008-LX-arithmetic.dmn @@ -1,5 +1,5 @@ - + number diff --git a/TestCases/compliance-level-2/0009-invocation-arithmetic/0009-invocation-arithmetic.dmn b/TestCases/compliance-level-2/0009-invocation-arithmetic/0009-invocation-arithmetic.dmn index c37762ee9..b128ac2d7 100644 --- a/TestCases/compliance-level-2/0009-invocation-arithmetic/0009-invocation-arithmetic.dmn +++ b/TestCases/compliance-level-2/0009-invocation-arithmetic/0009-invocation-arithmetic.dmn @@ -1,5 +1,5 @@ - + number @@ -32,7 +32,7 @@ - + (p*r/12)/(1-(1+r/12)**-n) diff --git a/TestCases/compliance-level-2/0010-multi-output-U/0010-multi-output-U.dmn b/TestCases/compliance-level-2/0010-multi-output-U/0010-multi-output-U.dmn index dfaa15b3d..91e8ed68a 100644 --- a/TestCases/compliance-level-2/0010-multi-output-U/0010-multi-output-U.dmn +++ b/TestCases/compliance-level-2/0010-multi-output-U/0010-multi-output-U.dmn @@ -1,5 +1,5 @@ - + string diff --git a/TestCases/compliance-level-2/0100-feel-constants/0100-feel-constants.dmn b/TestCases/compliance-level-2/0100-feel-constants/0100-feel-constants.dmn index a342e338c..02cc92d50 100644 --- a/TestCases/compliance-level-2/0100-feel-constants/0100-feel-constants.dmn +++ b/TestCases/compliance-level-2/0100-feel-constants/0100-feel-constants.dmn @@ -1,5 +1,5 @@ - + diff --git a/TestCases/compliance-level-2/0101-feel-constants/0101-feel-constants.dmn b/TestCases/compliance-level-2/0101-feel-constants/0101-feel-constants.dmn index 03b7d854d..d8f220487 100644 --- a/TestCases/compliance-level-2/0101-feel-constants/0101-feel-constants.dmn +++ b/TestCases/compliance-level-2/0101-feel-constants/0101-feel-constants.dmn @@ -1,5 +1,5 @@ - + diff --git a/TestCases/compliance-level-2/0102-feel-constants/0102-feel-constants.dmn b/TestCases/compliance-level-2/0102-feel-constants/0102-feel-constants.dmn index c352d41d4..477d57e44 100644 --- a/TestCases/compliance-level-2/0102-feel-constants/0102-feel-constants.dmn +++ b/TestCases/compliance-level-2/0102-feel-constants/0102-feel-constants.dmn @@ -1,5 +1,5 @@ - + diff --git a/TestCases/compliance-level-2/0105-feel-math/0105-feel-math.dmn b/TestCases/compliance-level-2/0105-feel-math/0105-feel-math.dmn index 366c527b4..ddffa1a41 100644 --- a/TestCases/compliance-level-2/0105-feel-math/0105-feel-math.dmn +++ b/TestCases/compliance-level-2/0105-feel-math/0105-feel-math.dmn @@ -1,5 +1,5 @@ - + diff --git a/TestCases/compliance-level-2/0106-feel-ternary-logic/0106-feel-ternary-logic.dmn b/TestCases/compliance-level-2/0106-feel-ternary-logic/0106-feel-ternary-logic.dmn index 46f39c713..ab955761e 100644 --- a/TestCases/compliance-level-2/0106-feel-ternary-logic/0106-feel-ternary-logic.dmn +++ b/TestCases/compliance-level-2/0106-feel-ternary-logic/0106-feel-ternary-logic.dmn @@ -1,5 +1,5 @@ - + diff --git a/TestCases/compliance-level-2/0107-feel-ternary-logic-not/0107-feel-ternary-logic-not.dmn b/TestCases/compliance-level-2/0107-feel-ternary-logic-not/0107-feel-ternary-logic-not.dmn index 39c16a9f3..a10647e7b 100644 --- a/TestCases/compliance-level-2/0107-feel-ternary-logic-not/0107-feel-ternary-logic-not.dmn +++ b/TestCases/compliance-level-2/0107-feel-ternary-logic-not/0107-feel-ternary-logic-not.dmn @@ -1,5 +1,5 @@ - + diff --git a/TestCases/compliance-level-2/0108-first-hitpolicy/0108-first-hitpolicy.dmn b/TestCases/compliance-level-2/0108-first-hitpolicy/0108-first-hitpolicy.dmn index 331180c24..7b23dc0c8 100644 --- a/TestCases/compliance-level-2/0108-first-hitpolicy/0108-first-hitpolicy.dmn +++ b/TestCases/compliance-level-2/0108-first-hitpolicy/0108-first-hitpolicy.dmn @@ -1,5 +1,5 @@ - + diff --git a/TestCases/compliance-level-2/0109-ruleOrder-hitpolicy/0109-ruleOrder-hitpolicy.dmn b/TestCases/compliance-level-2/0109-ruleOrder-hitpolicy/0109-ruleOrder-hitpolicy.dmn index 361231396..0be4dee47 100644 --- a/TestCases/compliance-level-2/0109-ruleOrder-hitpolicy/0109-ruleOrder-hitpolicy.dmn +++ b/TestCases/compliance-level-2/0109-ruleOrder-hitpolicy/0109-ruleOrder-hitpolicy.dmn @@ -1,5 +1,5 @@ - + diff --git a/TestCases/compliance-level-2/0110-outputOrder-hitpolicy/0110-outputOrder-hitpolicy.dmn b/TestCases/compliance-level-2/0110-outputOrder-hitpolicy/0110-outputOrder-hitpolicy.dmn index 551270372..0eb41104c 100644 --- a/TestCases/compliance-level-2/0110-outputOrder-hitpolicy/0110-outputOrder-hitpolicy.dmn +++ b/TestCases/compliance-level-2/0110-outputOrder-hitpolicy/0110-outputOrder-hitpolicy.dmn @@ -1,5 +1,5 @@ - + diff --git a/TestCases/compliance-level-2/0111-first-hitpolicy-singleoutputcol/0111-first-hitpolicy-singleoutputcol.dmn b/TestCases/compliance-level-2/0111-first-hitpolicy-singleoutputcol/0111-first-hitpolicy-singleoutputcol.dmn index 4fd8c9260..4eeab784c 100644 --- a/TestCases/compliance-level-2/0111-first-hitpolicy-singleoutputcol/0111-first-hitpolicy-singleoutputcol.dmn +++ b/TestCases/compliance-level-2/0111-first-hitpolicy-singleoutputcol/0111-first-hitpolicy-singleoutputcol.dmn @@ -1,5 +1,5 @@ - +