This is an automated email from the ASF dual-hosted git repository.
yamer pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-kie-tools.git
The following commit(s) were added to refs/heads/main by this push:
new 66dcaa05c72 kie-issues#1844: Test Scenario Editor: Extend
`@kie-tools/scesim-marshaller` test cases (#2924)
66dcaa05c72 is described below
commit 66dcaa05c72e76a87bd804c2eb28abcdb3b4323b
Author: Yeser Amer <[email protected]>
AuthorDate: Tue Feb 25 09:45:12 2025 +0100
kie-issues#1844: Test Scenario Editor: Extend
`@kie-tools/scesim-marshaller` test cases (#2924)
---
.../{ => dmn}/TrafficViolationTest.scesim | 0
.../{simple.scesim => dmn/collection.scesim} | 112 +++--
.../{simple.scesim => dmn/expression.scesim} | 88 ++--
.../imported.scesim} | 553 +++++++++++----------
.../tests-data--manual/{ => dmn}/simple.dmn | 0
.../tests-data--manual/{ => dmn}/simple.scesim | 0
.../{simple.scesim => dmn/simpleTypes.scesim} | 80 ++-
.../{simple.scesim => dmn/undefined.scesim} | 78 ++-
.../{ => rule}/OldEnoughTest.scesim | 0
.../scesim-marshaller/tests/idempotency.test.ts | 11 +-
.../scesim-marshaller/tests/typeSafety.test.ts | 11 +-
packages/scesim-marshaller/tests/versions.test.ts | 11 +-
12 files changed, 506 insertions(+), 438 deletions(-)
diff --git
a/packages/scesim-marshaller/tests-data--manual/TrafficViolationTest.scesim
b/packages/scesim-marshaller/tests-data--manual/dmn/TrafficViolationTest.scesim
similarity index 100%
copy from
packages/scesim-marshaller/tests-data--manual/TrafficViolationTest.scesim
copy to
packages/scesim-marshaller/tests-data--manual/dmn/TrafficViolationTest.scesim
diff --git a/packages/scesim-marshaller/tests-data--manual/simple.scesim
b/packages/scesim-marshaller/tests-data--manual/dmn/collection.scesim
similarity index 66%
copy from packages/scesim-marshaller/tests-data--manual/simple.scesim
copy to packages/scesim-marshaller/tests-data--manual/dmn/collection.scesim
index 3c4d916361c..4a3ef1c8b02 100644
--- a/packages/scesim-marshaller/tests-data--manual/simple.scesim
+++ b/packages/scesim-marshaller/tests-data--manual/dmn/collection.scesim
@@ -54,43 +54,70 @@
<FactMapping>
<expressionElements>
<ExpressionElement>
- <step>Monthly Salary</step>
+ <step>input</step>
</ExpressionElement>
</expressionElements>
<expressionIdentifier>
- <name>1|1</name>
+ <name>_33694C8E-C795-435F-B0F0-F1101F9DE403</name>
<type>GIVEN</type>
</expressionIdentifier>
<factIdentifier>
- <name>Monthly Salary</name>
- <className>Monthly Salary</className>
+ <name>input</name>
+ <className>tNumber</className>
</factIdentifier>
- <className>tSalary</className>
- <factAlias>Monthly Salary</factAlias>
+ <className>java.util.List</className>
+ <factAlias>input</factAlias>
<expressionAlias>value</expressionAlias>
- <genericTypes />
- <columnWidth>632</columnWidth>
+ <genericTypes>
+ <string>tNumber</string>
+ </genericTypes>
+ <columnWidth>141</columnWidth>
+ <factMappingValueType>NOT_EXPRESSION</factMappingValueType>
+ </FactMapping>
+ <FactMapping>
+ <expressionElements>
+ <ExpressionElement>
+ <step>input2</step>
+ </ExpressionElement>
+ <ExpressionElement>
+ <step>nums</step>
+ </ExpressionElement>
+ </expressionElements>
+ <expressionIdentifier>
+ <name>_11DBB39A-5749-420D-A007-3A0D19A66916</name>
+ <type>GIVEN</type>
+ </expressionIdentifier>
+ <factIdentifier>
+ <name>input2</name>
+ <className>tComplex</className>
+ </factIdentifier>
+ <className>java.util.List</className>
+ <factAlias>input2</factAlias>
+ <expressionAlias>nums</expressionAlias>
+ <genericTypes>
+ <string>number</string>
+ </genericTypes>
+ <columnWidth>157</columnWidth>
<factMappingValueType>NOT_EXPRESSION</factMappingValueType>
</FactMapping>
<FactMapping>
<expressionElements>
<ExpressionElement>
- <step>Yearly Salary</step>
+ <step>output</step>
</ExpressionElement>
</expressionElements>
<expressionIdentifier>
- <name>1|2</name>
+ <name>_E38BFF0C-040B-464E-8C18-7BD1C7372EEA</name>
<type>EXPECT</type>
</expressionIdentifier>
<factIdentifier>
- <name>Yearly Salary</name>
- <className>Yearly Salary</className>
+ <name>output</name>
+ <className>boolean</className>
</factIdentifier>
- <className>tSalary</className>
- <factAlias>Yearly Salary</factAlias>
+ <className>boolean</className>
+ <factAlias>output</factAlias>
<expressionAlias>value</expressionAlias>
- <genericTypes />
- <columnWidth>632</columnWidth>
+ <columnWidth>100</columnWidth>
<factMappingValueType>NOT_EXPRESSION</factMappingValueType>
</FactMapping>
</factMappings>
@@ -98,6 +125,17 @@
<scesimData>
<Scenario>
<factMappingValues>
+ <FactMappingValue>
+ <factIdentifier>
+ <name>#</name>
+ <className>java.lang.Integer</className>
+ </factIdentifier>
+ <expressionIdentifier>
+ <name>Index</name>
+ <type>OTHER</type>
+ </expressionIdentifier>
+ <rawValue class="string">1</rawValue>
+ </FactMappingValue>
<FactMappingValue>
<factIdentifier>
<name>Scenario description</name>
@@ -107,40 +145,39 @@
<name>Description</name>
<type>OTHER</type>
</expressionIdentifier>
- <rawValue class="string">Description</rawValue>
</FactMappingValue>
<FactMappingValue>
<factIdentifier>
- <name>Monthly Salary</name>
- <className>Monthly Salary</className>
+ <name>input</name>
+ <className>tNumber</className>
</factIdentifier>
<expressionIdentifier>
- <name>1|1</name>
+ <name>_33694C8E-C795-435F-B0F0-F1101F9DE403</name>
<type>GIVEN</type>
</expressionIdentifier>
- <rawValue class="string">100</rawValue>
+ <rawValue class="string">"[10,20,30]"</rawValue>
</FactMappingValue>
<FactMappingValue>
<factIdentifier>
- <name>Yearly Salary</name>
- <className>Yearly Salary</className>
+ <name>input2</name>
+ <className>tComplex</className>
</factIdentifier>
<expressionIdentifier>
- <name>1|2</name>
- <type>EXPECT</type>
+ <name>_11DBB39A-5749-420D-A007-3A0D19A66916</name>
+ <type>GIVEN</type>
</expressionIdentifier>
- <rawValue class="string">1200</rawValue>
+ <rawValue class="string">"[40,50,60]"</rawValue>
</FactMappingValue>
<FactMappingValue>
<factIdentifier>
- <name>#</name>
- <className>java.lang.Integer</className>
+ <name>output</name>
+ <className>boolean</className>
</factIdentifier>
<expressionIdentifier>
- <name>Index</name>
- <type>OTHER</type>
+ <name>_E38BFF0C-040B-464E-8C18-7BD1C7372EEA</name>
+ <type>EXPECT</type>
</expressionIdentifier>
- <rawValue class="string">1</rawValue>
+ <rawValue class="string">true</rawValue>
</FactMappingValue>
</factMappingValues>
</Scenario>
@@ -160,9 +197,9 @@
<className>java.lang.Void</className>
</factIdentifier>
<className>java.lang.Void</className>
- <factAlias>INSTANCE 1</factAlias>
- <expressionAlias>PROPERTY 1</expressionAlias>
- <columnWidth>114</columnWidth>
+ <factAlias>INSTANCE-1</factAlias>
+ <expressionAlias>PROPERTY-1</expressionAlias>
+ <columnWidth>150</columnWidth>
<factMappingValueType>NOT_EXPRESSION</factMappingValueType>
</FactMapping>
</factMappings>
@@ -185,12 +222,11 @@
</scesimData>
</background>
<settings>
- <dmnFilePath>simple.dmn</dmnFilePath>
+ <dmnFilePath>dev-webapp/available-dmn-models/collection.dmn</dmnFilePath>
<type>DMN</type>
- <dmnNamespace>https://kie.apache.org/dmn/itemdef</dmnNamespace>
- <dmnName>simple-item-def</dmnName>
+
<dmnNamespace>https://kie.apache.org/dmn/_D1C37750-2078-4CB7-AF77-850947718867</dmnNamespace>
+ <dmnName>Collection</dmnName>
<skipFromBuild>false</skipFromBuild>
- <stateless>false</stateless>
</settings>
<imports>
<imports />
diff --git a/packages/scesim-marshaller/tests-data--manual/simple.scesim
b/packages/scesim-marshaller/tests-data--manual/dmn/expression.scesim
similarity index 76%
copy from packages/scesim-marshaller/tests-data--manual/simple.scesim
copy to packages/scesim-marshaller/tests-data--manual/dmn/expression.scesim
index 3c4d916361c..27bde06cb26 100644
--- a/packages/scesim-marshaller/tests-data--manual/simple.scesim
+++ b/packages/scesim-marshaller/tests-data--manual/dmn/expression.scesim
@@ -54,44 +54,42 @@
<FactMapping>
<expressionElements>
<ExpressionElement>
- <step>Monthly Salary</step>
+ <step>Input</step>
</ExpressionElement>
</expressionElements>
<expressionIdentifier>
- <name>1|1</name>
+ <name>_EEFE5AF7-5422-4618-8709-474976310EBA</name>
<type>GIVEN</type>
</expressionIdentifier>
<factIdentifier>
- <name>Monthly Salary</name>
- <className>Monthly Salary</className>
+ <name>Input</name>
+ <className>number</className>
</factIdentifier>
- <className>tSalary</className>
- <factAlias>Monthly Salary</factAlias>
- <expressionAlias>value</expressionAlias>
- <genericTypes />
- <columnWidth>632</columnWidth>
- <factMappingValueType>NOT_EXPRESSION</factMappingValueType>
+ <className>number</className>
+ <factAlias>Input</factAlias>
+ <expressionAlias>expression </></expressionAlias>
+ <columnWidth>300</columnWidth>
+ <factMappingValueType>EXPRESSION</factMappingValueType>
</FactMapping>
<FactMapping>
<expressionElements>
<ExpressionElement>
- <step>Yearly Salary</step>
+ <step>Decision</step>
</ExpressionElement>
</expressionElements>
<expressionIdentifier>
- <name>1|2</name>
+ <name>_897A9B62-F79C-48A7-AE65-4B414D1B6EB9</name>
<type>EXPECT</type>
</expressionIdentifier>
<factIdentifier>
- <name>Yearly Salary</name>
- <className>Yearly Salary</className>
+ <name>Decision</name>
+ <className>boolean</className>
</factIdentifier>
- <className>tSalary</className>
- <factAlias>Yearly Salary</factAlias>
- <expressionAlias>value</expressionAlias>
- <genericTypes />
- <columnWidth>632</columnWidth>
- <factMappingValueType>NOT_EXPRESSION</factMappingValueType>
+ <className>boolean</className>
+ <factAlias>Decision</factAlias>
+ <expressionAlias>expression </></expressionAlias>
+ <columnWidth>300</columnWidth>
+ <factMappingValueType>EXPRESSION</factMappingValueType>
</FactMapping>
</factMappings>
</scesimModelDescriptor>
@@ -100,47 +98,46 @@
<factMappingValues>
<FactMappingValue>
<factIdentifier>
- <name>Scenario description</name>
- <className>java.lang.String</className>
+ <name>#</name>
+ <className>java.lang.Integer</className>
</factIdentifier>
<expressionIdentifier>
- <name>Description</name>
+ <name>Index</name>
<type>OTHER</type>
</expressionIdentifier>
- <rawValue class="string">Description</rawValue>
+ <rawValue class="string">1</rawValue>
</FactMappingValue>
<FactMappingValue>
<factIdentifier>
- <name>Monthly Salary</name>
- <className>Monthly Salary</className>
+ <name>Scenario description</name>
+ <className>java.lang.String</className>
</factIdentifier>
<expressionIdentifier>
- <name>1|1</name>
- <type>GIVEN</type>
+ <name>Description</name>
+ <type>OTHER</type>
</expressionIdentifier>
- <rawValue class="string">100</rawValue>
</FactMappingValue>
<FactMappingValue>
<factIdentifier>
- <name>Yearly Salary</name>
- <className>Yearly Salary</className>
+ <name>Input</name>
+ <className>number</className>
</factIdentifier>
<expressionIdentifier>
- <name>1|2</name>
- <type>EXPECT</type>
+ <name>_EEFE5AF7-5422-4618-8709-474976310EBA</name>
+ <type>GIVEN</type>
</expressionIdentifier>
- <rawValue class="string">1200</rawValue>
+ <rawValue class="string">20</rawValue>
</FactMappingValue>
<FactMappingValue>
<factIdentifier>
- <name>#</name>
- <className>java.lang.Integer</className>
+ <name>Decision</name>
+ <className>boolean</className>
</factIdentifier>
<expressionIdentifier>
- <name>Index</name>
- <type>OTHER</type>
+ <name>_897A9B62-F79C-48A7-AE65-4B414D1B6EB9</name>
+ <type>EXPECT</type>
</expressionIdentifier>
- <rawValue class="string">1</rawValue>
+ <rawValue class="string">true</rawValue>
</FactMappingValue>
</factMappingValues>
</Scenario>
@@ -160,9 +157,9 @@
<className>java.lang.Void</className>
</factIdentifier>
<className>java.lang.Void</className>
- <factAlias>INSTANCE 1</factAlias>
- <expressionAlias>PROPERTY 1</expressionAlias>
- <columnWidth>114</columnWidth>
+ <factAlias>INSTANCE-1</factAlias>
+ <expressionAlias>PROPERTY-1</expressionAlias>
+ <columnWidth>150</columnWidth>
<factMappingValueType>NOT_EXPRESSION</factMappingValueType>
</FactMapping>
</factMappings>
@@ -185,12 +182,11 @@
</scesimData>
</background>
<settings>
- <dmnFilePath>simple.dmn</dmnFilePath>
+ <dmnFilePath>dev-webapp/available-dmn-models/simple.dmn</dmnFilePath>
<type>DMN</type>
- <dmnNamespace>https://kie.apache.org/dmn/itemdef</dmnNamespace>
- <dmnName>simple-item-def</dmnName>
+
<dmnNamespace>https://kie.org/dmn/_0457D4F2-02B6-4A3D-957F-8F971A8321BC</dmnNamespace>
+ <dmnName>Simple</dmnName>
<skipFromBuild>false</skipFromBuild>
- <stateless>false</stateless>
</settings>
<imports>
<imports />
diff --git
a/packages/scesim-marshaller/tests-data--manual/TrafficViolationTest.scesim
b/packages/scesim-marshaller/tests-data--manual/dmn/imported.scesim
similarity index 64%
rename from
packages/scesim-marshaller/tests-data--manual/TrafficViolationTest.scesim
rename to packages/scesim-marshaller/tests-data--manual/dmn/imported.scesim
index 3b56f6b6166..4103dbfa319 100644
--- a/packages/scesim-marshaller/tests-data--manual/TrafficViolationTest.scesim
+++ b/packages/scesim-marshaller/tests-data--manual/dmn/imported.scesim
@@ -1,22 +1,22 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!--
- ~ Licensed to the Apache Software Foundation (ASF) under one
- ~ or more contributor license agreements. See the NOTICE file
- ~ distributed with this work for additional information
- ~ regarding copyright ownership. The ASF licenses this file
- ~ to you under the Apache License, Version 2.0 (the
- ~ "License"); you may not use this file except in compliance
- ~ with the License. You may obtain a copy of the License at
- ~
- ~ http://www.apache.org/licenses/LICENSE-2.0
- ~
- ~ Unless required by applicable law or agreed to in writing,
- ~ software distributed under the License is distributed on an
- ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- ~ KIND, either express or implied. See the License for the
- ~ specific language governing permissions and limitations
- ~ under the License.
--->
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+ -->
<ScenarioSimulationModel version="1.8">
<simulation>
<scesimModelDescriptor>
@@ -54,22 +54,22 @@
<FactMapping>
<expressionElements>
<ExpressionElement>
- <step>Driver</step>
+ <step>tv.Driver</step>
</ExpressionElement>
<ExpressionElement>
<step>Points</step>
</ExpressionElement>
</expressionElements>
<expressionIdentifier>
- <name>1|5</name>
+ <name>1|4</name>
<type>GIVEN</type>
</expressionIdentifier>
- <factIdentifier>
- <name>Driver</name>
- <className>Driver</className>
+ <factIdentifier importPrefix="tv">
+ <name>tv.Driver</name>
+ <className>tv.Driver</className>
</factIdentifier>
<className>number</className>
- <factAlias>Driver</factAlias>
+ <factAlias>tv.Driver</factAlias>
<expressionAlias>Points</expressionAlias>
<genericTypes />
<columnWidth>114</columnWidth>
@@ -78,23 +78,23 @@
<FactMapping>
<expressionElements>
<ExpressionElement>
- <step>Violation</step>
+ <step>tv.Violation</step>
</ExpressionElement>
<ExpressionElement>
- <step>Type</step>
+ <step>Actual Speed</step>
</ExpressionElement>
</expressionElements>
<expressionIdentifier>
- <name>1|8</name>
+ <name>1|6</name>
<type>GIVEN</type>
</expressionIdentifier>
- <factIdentifier>
- <name>Violation</name>
- <className>Violation</className>
+ <factIdentifier importPrefix="tv">
+ <name>tv.Violation</name>
+ <className>tv.Violation</className>
</factIdentifier>
- <className>Type</className>
- <factAlias>Violation</factAlias>
- <expressionAlias>Type</expressionAlias>
+ <className>number</className>
+ <factAlias>tv.Violation</factAlias>
+ <expressionAlias>Actual Speed</expressionAlias>
<genericTypes />
<columnWidth>114</columnWidth>
<factMappingValueType>NOT_EXPRESSION</factMappingValueType>
@@ -102,7 +102,7 @@
<FactMapping>
<expressionElements>
<ExpressionElement>
- <step>Violation</step>
+ <step>tv.Violation</step>
</ExpressionElement>
<ExpressionElement>
<step>Speed Limit</step>
@@ -112,12 +112,12 @@
<name>1|9</name>
<type>GIVEN</type>
</expressionIdentifier>
- <factIdentifier>
- <name>Violation</name>
- <className>Violation</className>
+ <factIdentifier importPrefix="tv">
+ <name>tv.Violation</name>
+ <className>tv.Violation</className>
</factIdentifier>
<className>number</className>
- <factAlias>Violation</factAlias>
+ <factAlias>tv.Violation</factAlias>
<expressionAlias>Speed Limit</expressionAlias>
<genericTypes />
<columnWidth>114</columnWidth>
@@ -126,23 +126,23 @@
<FactMapping>
<expressionElements>
<ExpressionElement>
- <step>Violation</step>
+ <step>tv.Violation</step>
</ExpressionElement>
<ExpressionElement>
- <step>Actual Speed</step>
+ <step>Type</step>
</ExpressionElement>
</expressionElements>
<expressionIdentifier>
<name>1|10</name>
<type>GIVEN</type>
</expressionIdentifier>
- <factIdentifier>
- <name>Violation</name>
- <className>Violation</className>
+ <factIdentifier importPrefix="tv">
+ <name>tv.Violation</name>
+ <className>tv.Violation</className>
</factIdentifier>
- <className>number</className>
- <factAlias>Violation</factAlias>
- <expressionAlias>Actual Speed</expressionAlias>
+ <className>Type</className>
+ <factAlias>tv.Violation</factAlias>
+ <expressionAlias>Type</expressionAlias>
<genericTypes />
<columnWidth>114</columnWidth>
<factMappingValueType>NOT_EXPRESSION</factMappingValueType>
@@ -150,22 +150,64 @@
<FactMapping>
<expressionElements>
<ExpressionElement>
- <step>Fine</step>
+ <step>Should the driver's be arrested?</step>
+ </ExpressionElement>
+ </expressionElements>
+ <expressionIdentifier>
+ <name>1|11</name>
+ <type>EXPECT</type>
+ </expressionIdentifier>
+ <factIdentifier>
+ <name>Should the driver's be arrested?</name>
+ <className>Should the driver's be arrested?</className>
+ </factIdentifier>
+ <className>string</className>
+ <factAlias>Should the driver's be arrested?</factAlias>
+ <expressionAlias>value</expressionAlias>
+ <genericTypes />
+ <columnWidth>215</columnWidth>
+ <factMappingValueType>NOT_EXPRESSION</factMappingValueType>
+ </FactMapping>
+ <FactMapping>
+ <expressionElements>
+ <ExpressionElement>
+ <step>Should the driver's license be held?</step>
+ </ExpressionElement>
+ </expressionElements>
+ <expressionIdentifier>
+ <name>1|12</name>
+ <type>EXPECT</type>
+ </expressionIdentifier>
+ <factIdentifier>
+ <name>Should the driver's license be held?</name>
+ <className>Should the driver's license be held?</className>
+ </factIdentifier>
+ <className>string</className>
+ <factAlias>Should the driver's license be held?</factAlias>
+ <expressionAlias>value</expressionAlias>
+ <genericTypes />
+ <columnWidth>242</columnWidth>
+ <factMappingValueType>NOT_EXPRESSION</factMappingValueType>
+ </FactMapping>
+ <FactMapping>
+ <expressionElements>
+ <ExpressionElement>
+ <step>tv.Fine</step>
</ExpressionElement>
<ExpressionElement>
<step>Amount</step>
</ExpressionElement>
</expressionElements>
<expressionIdentifier>
- <name>1|11</name>
+ <name>1|13</name>
<type>EXPECT</type>
</expressionIdentifier>
- <factIdentifier>
- <name>Fine</name>
- <className>Fine</className>
+ <factIdentifier importPrefix="tv">
+ <name>tv.Fine</name>
+ <className>tv.Fine</className>
</factIdentifier>
<className>number</className>
- <factAlias>Fine</factAlias>
+ <factAlias>tv.Fine</factAlias>
<expressionAlias>Amount</expressionAlias>
<genericTypes />
<columnWidth>114</columnWidth>
@@ -174,22 +216,22 @@
<FactMapping>
<expressionElements>
<ExpressionElement>
- <step>Fine</step>
+ <step>tv.Fine</step>
</ExpressionElement>
<ExpressionElement>
<step>Points</step>
</ExpressionElement>
</expressionElements>
<expressionIdentifier>
- <name>1|12</name>
+ <name>1|14</name>
<type>EXPECT</type>
</expressionIdentifier>
- <factIdentifier>
- <name>Fine</name>
- <className>Fine</className>
+ <factIdentifier importPrefix="tv">
+ <name>tv.Fine</name>
+ <className>tv.Fine</className>
</factIdentifier>
<className>number</className>
- <factAlias>Fine</factAlias>
+ <factAlias>tv.Fine</factAlias>
<expressionAlias>Points</expressionAlias>
<genericTypes />
<columnWidth>114</columnWidth>
@@ -198,19 +240,19 @@
<FactMapping>
<expressionElements>
<ExpressionElement>
- <step>Should the driver be suspended?</step>
+ <step>tv.Should the driver be suspended?</step>
</ExpressionElement>
</expressionElements>
<expressionIdentifier>
- <name>1|13</name>
+ <name>1|15</name>
<type>EXPECT</type>
</expressionIdentifier>
- <factIdentifier>
- <name>Should the driver be suspended?</name>
- <className>Should the driver be suspended?</className>
+ <factIdentifier importPrefix="tv">
+ <name>tv.Should the driver be suspended?</name>
+ <className>tv.Should the driver be suspended?</className>
</factIdentifier>
<className>string</className>
- <factAlias>Should the driver be suspended?</factAlias>
+ <factAlias>tv.Should the driver be suspended?</factAlias>
<expressionAlias>value</expressionAlias>
<genericTypes />
<columnWidth>114</columnWidth>
@@ -230,34 +272,34 @@
<name>Description</name>
<type>OTHER</type>
</expressionIdentifier>
- <rawValue class="string">Above speed limit: 10km/h and 30
km/h</rawValue>
+ <rawValue class="string">Imported DMN Input and Decision Case
1</rawValue>
</FactMappingValue>
<FactMappingValue>
- <factIdentifier>
- <name>Driver</name>
- <className>Driver</className>
+ <factIdentifier importPrefix="tv">
+ <name>tv.Driver</name>
+ <className>tv.Driver</className>
</factIdentifier>
<expressionIdentifier>
- <name>1|5</name>
+ <name>1|4</name>
<type>GIVEN</type>
</expressionIdentifier>
<rawValue class="string">10</rawValue>
</FactMappingValue>
<FactMappingValue>
- <factIdentifier>
- <name>Violation</name>
- <className>Violation</className>
+ <factIdentifier importPrefix="tv">
+ <name>tv.Violation</name>
+ <className>tv.Violation</className>
</factIdentifier>
<expressionIdentifier>
- <name>1|8</name>
+ <name>1|6</name>
<type>GIVEN</type>
</expressionIdentifier>
- <rawValue class="string">"speed"</rawValue>
+ <rawValue class="string">120</rawValue>
</FactMappingValue>
<FactMappingValue>
- <factIdentifier>
- <name>Violation</name>
- <className>Violation</className>
+ <factIdentifier importPrefix="tv">
+ <name>tv.Violation</name>
+ <className>tv.Violation</className>
</factIdentifier>
<expressionIdentifier>
<name>1|9</name>
@@ -266,47 +308,69 @@
<rawValue class="string">100</rawValue>
</FactMappingValue>
<FactMappingValue>
- <factIdentifier>
- <name>Violation</name>
- <className>Violation</className>
+ <factIdentifier importPrefix="tv">
+ <name>tv.Violation</name>
+ <className>tv.Violation</className>
</factIdentifier>
<expressionIdentifier>
<name>1|10</name>
<type>GIVEN</type>
</expressionIdentifier>
- <rawValue class="string">120</rawValue>
+ <rawValue class="string">"speed"</rawValue>
</FactMappingValue>
<FactMappingValue>
<factIdentifier>
- <name>Fine</name>
- <className>Fine</className>
+ <name>Should the driver's be arrested?</name>
+ <className>Should the driver's be arrested?</className>
</factIdentifier>
<expressionIdentifier>
<name>1|11</name>
<type>EXPECT</type>
</expressionIdentifier>
- <rawValue class="string">500</rawValue>
+ <rawValue class="string">"No"</rawValue>
</FactMappingValue>
<FactMappingValue>
<factIdentifier>
- <name>Fine</name>
- <className>Fine</className>
+ <name>Should the driver's license be held?</name>
+ <className>Should the driver's license be held?</className>
</factIdentifier>
<expressionIdentifier>
<name>1|12</name>
<type>EXPECT</type>
</expressionIdentifier>
- <rawValue class="string">3</rawValue>
+ <rawValue class="string">"Yes"</rawValue>
</FactMappingValue>
<FactMappingValue>
- <factIdentifier>
- <name>Should the driver be suspended?</name>
- <className>Should the driver be suspended?</className>
+ <factIdentifier importPrefix="tv">
+ <name>tv.Fine</name>
+ <className>tv.Fine</className>
</factIdentifier>
<expressionIdentifier>
<name>1|13</name>
<type>EXPECT</type>
</expressionIdentifier>
+ <rawValue class="string">500</rawValue>
+ </FactMappingValue>
+ <FactMappingValue>
+ <factIdentifier importPrefix="tv">
+ <name>tv.Fine</name>
+ <className>tv.Fine</className>
+ </factIdentifier>
+ <expressionIdentifier>
+ <name>1|14</name>
+ <type>EXPECT</type>
+ </expressionIdentifier>
+ <rawValue class="string">3</rawValue>
+ </FactMappingValue>
+ <FactMappingValue>
+ <factIdentifier importPrefix="tv">
+ <name>tv.Should the driver be suspended?</name>
+ <className>tv.Should the driver be suspended?</className>
+ </factIdentifier>
+ <expressionIdentifier>
+ <name>1|15</name>
+ <type>EXPECT</type>
+ </expressionIdentifier>
<rawValue class="string">"No"</rawValue>
</FactMappingValue>
<FactMappingValue>
@@ -333,34 +397,34 @@
<name>Description</name>
<type>OTHER</type>
</expressionIdentifier>
- <rawValue class="string">Above speed limit: more than 30
km/h</rawValue>
+ <rawValue class="string">Imported DMN Input and Decision Case
2</rawValue>
</FactMappingValue>
<FactMappingValue>
- <factIdentifier>
- <name>Driver</name>
- <className>Driver</className>
+ <factIdentifier importPrefix="tv">
+ <name>tv.Driver</name>
+ <className>tv.Driver</className>
</factIdentifier>
<expressionIdentifier>
- <name>1|5</name>
+ <name>1|4</name>
<type>GIVEN</type>
</expressionIdentifier>
<rawValue class="string">10</rawValue>
</FactMappingValue>
<FactMappingValue>
- <factIdentifier>
- <name>Violation</name>
- <className>Violation</className>
+ <factIdentifier importPrefix="tv">
+ <name>tv.Violation</name>
+ <className>tv.Violation</className>
</factIdentifier>
<expressionIdentifier>
- <name>1|8</name>
+ <name>1|6</name>
<type>GIVEN</type>
</expressionIdentifier>
- <rawValue class="string">"speed"</rawValue>
+ <rawValue class="string">150</rawValue>
</FactMappingValue>
<FactMappingValue>
- <factIdentifier>
- <name>Violation</name>
- <className>Violation</className>
+ <factIdentifier importPrefix="tv">
+ <name>tv.Violation</name>
+ <className>tv.Violation</className>
</factIdentifier>
<expressionIdentifier>
<name>1|9</name>
@@ -369,47 +433,69 @@
<rawValue class="string">100</rawValue>
</FactMappingValue>
<FactMappingValue>
- <factIdentifier>
- <name>Violation</name>
- <className>Violation</className>
+ <factIdentifier importPrefix="tv">
+ <name>tv.Violation</name>
+ <className>tv.Violation</className>
</factIdentifier>
<expressionIdentifier>
<name>1|10</name>
<type>GIVEN</type>
</expressionIdentifier>
- <rawValue class="string">150</rawValue>
+ <rawValue class="string">"speed"</rawValue>
</FactMappingValue>
<FactMappingValue>
<factIdentifier>
- <name>Fine</name>
- <className>Fine</className>
+ <name>Should the driver's be arrested?</name>
+ <className>Should the driver's be arrested?</className>
</factIdentifier>
<expressionIdentifier>
<name>1|11</name>
<type>EXPECT</type>
</expressionIdentifier>
- <rawValue class="string">1000</rawValue>
+ <rawValue class="string">"No"</rawValue>
</FactMappingValue>
<FactMappingValue>
<factIdentifier>
- <name>Fine</name>
- <className>Fine</className>
+ <name>Should the driver's license be held?</name>
+ <className>Should the driver's license be held?</className>
</factIdentifier>
<expressionIdentifier>
<name>1|12</name>
<type>EXPECT</type>
</expressionIdentifier>
- <rawValue class="string">7</rawValue>
+ <rawValue class="string">"Yes"</rawValue>
</FactMappingValue>
<FactMappingValue>
- <factIdentifier>
- <name>Should the driver be suspended?</name>
- <className>Should the driver be suspended?</className>
+ <factIdentifier importPrefix="tv">
+ <name>tv.Fine</name>
+ <className>tv.Fine</className>
</factIdentifier>
<expressionIdentifier>
<name>1|13</name>
<type>EXPECT</type>
</expressionIdentifier>
+ <rawValue class="string">1000</rawValue>
+ </FactMappingValue>
+ <FactMappingValue>
+ <factIdentifier importPrefix="tv">
+ <name>tv.Fine</name>
+ <className>tv.Fine</className>
+ </factIdentifier>
+ <expressionIdentifier>
+ <name>1|14</name>
+ <type>EXPECT</type>
+ </expressionIdentifier>
+ <rawValue class="string">7</rawValue>
+ </FactMappingValue>
+ <FactMappingValue>
+ <factIdentifier importPrefix="tv">
+ <name>tv.Should the driver be suspended?</name>
+ <className>tv.Should the driver be suspended?</className>
+ </factIdentifier>
+ <expressionIdentifier>
+ <name>1|15</name>
+ <type>EXPECT</type>
+ </expressionIdentifier>
<rawValue class="string">"No"</rawValue>
</FactMappingValue>
<FactMappingValue>
@@ -436,82 +522,106 @@
<name>Description</name>
<type>OTHER</type>
</expressionIdentifier>
- <rawValue class="string">Parking violation</rawValue>
+ <rawValue class="string">Imported DMN Input and Decision Case
3</rawValue>
</FactMappingValue>
<FactMappingValue>
- <factIdentifier>
- <name>Driver</name>
- <className>Driver</className>
+ <factIdentifier importPrefix="tv">
+ <name>tv.Driver</name>
+ <className>tv.Driver</className>
</factIdentifier>
<expressionIdentifier>
- <name>1|5</name>
+ <name>1|4</name>
<type>GIVEN</type>
</expressionIdentifier>
- <rawValue class="string">10</rawValue>
+ <rawValue class="string">15</rawValue>
</FactMappingValue>
<FactMappingValue>
- <factIdentifier>
- <name>Violation</name>
- <className>Violation</className>
+ <factIdentifier importPrefix="tv">
+ <name>tv.Violation</name>
+ <className>tv.Violation</className>
</factIdentifier>
<expressionIdentifier>
- <name>1|8</name>
+ <name>1|6</name>
<type>GIVEN</type>
</expressionIdentifier>
- <rawValue class="string">"parking"</rawValue>
+ <rawValue class="string">150</rawValue>
</FactMappingValue>
<FactMappingValue>
- <factIdentifier>
- <name>Violation</name>
- <className>Violation</className>
+ <factIdentifier importPrefix="tv">
+ <name>tv.Violation</name>
+ <className>tv.Violation</className>
</factIdentifier>
<expressionIdentifier>
<name>1|9</name>
<type>GIVEN</type>
</expressionIdentifier>
+ <rawValue class="string">100</rawValue>
</FactMappingValue>
<FactMappingValue>
- <factIdentifier>
- <name>Violation</name>
- <className>Violation</className>
+ <factIdentifier importPrefix="tv">
+ <name>tv.Violation</name>
+ <className>tv.Violation</className>
</factIdentifier>
<expressionIdentifier>
<name>1|10</name>
<type>GIVEN</type>
</expressionIdentifier>
+ <rawValue class="string">"speed"</rawValue>
</FactMappingValue>
<FactMappingValue>
<factIdentifier>
- <name>Fine</name>
- <className>Fine</className>
+ <name>Should the driver's be arrested?</name>
+ <className>Should the driver's be arrested?</className>
</factIdentifier>
<expressionIdentifier>
<name>1|11</name>
<type>EXPECT</type>
</expressionIdentifier>
- <rawValue class="string">100</rawValue>
+ <rawValue class="string">"No"</rawValue>
</FactMappingValue>
<FactMappingValue>
<factIdentifier>
- <name>Fine</name>
- <className>Fine</className>
+ <name>Should the driver's license be held?</name>
+ <className>Should the driver's license be held?</className>
</factIdentifier>
<expressionIdentifier>
<name>1|12</name>
<type>EXPECT</type>
</expressionIdentifier>
- <rawValue class="string">1</rawValue>
+ <rawValue class="string">"No"</rawValue>
</FactMappingValue>
<FactMappingValue>
- <factIdentifier>
- <name>Should the driver be suspended?</name>
- <className>Should the driver be suspended?</className>
+ <factIdentifier importPrefix="tv">
+ <name>tv.Fine</name>
+ <className>tv.Fine</className>
</factIdentifier>
<expressionIdentifier>
<name>1|13</name>
<type>EXPECT</type>
</expressionIdentifier>
- <rawValue class="string">"No"</rawValue>
+ <rawValue class="string">1000</rawValue>
+ </FactMappingValue>
+ <FactMappingValue>
+ <factIdentifier importPrefix="tv">
+ <name>tv.Fine</name>
+ <className>tv.Fine</className>
+ </factIdentifier>
+ <expressionIdentifier>
+ <name>1|14</name>
+ <type>EXPECT</type>
+ </expressionIdentifier>
+ <rawValue class="string">7</rawValue>
+ </FactMappingValue>
+ <FactMappingValue>
+ <factIdentifier importPrefix="tv">
+ <name>tv.Should the driver be suspended?</name>
+ <className>tv.Should the driver be suspended?</className>
+ </factIdentifier>
+ <expressionIdentifier>
+ <name>1|15</name>
+ <type>EXPECT</type>
+ </expressionIdentifier>
+ <rawValue class="string">"Yes"</rawValue>
</FactMappingValue>
<FactMappingValue>
<factIdentifier>
@@ -537,182 +647,103 @@
<name>Description</name>
<type>OTHER</type>
</expressionIdentifier>
- <rawValue class="string">DUI violation</rawValue>
+ <rawValue class="string">Imported DMN Input and Decision Case
4</rawValue>
</FactMappingValue>
<FactMappingValue>
- <factIdentifier>
- <name>Driver</name>
- <className>Driver</className>
+ <factIdentifier importPrefix="tv">
+ <name>tv.Driver</name>
+ <className>tv.Driver</className>
</factIdentifier>
<expressionIdentifier>
- <name>1|5</name>
+ <name>1|4</name>
<type>GIVEN</type>
</expressionIdentifier>
- <rawValue class="string">10</rawValue>
+ <rawValue class="string">45</rawValue>
</FactMappingValue>
<FactMappingValue>
- <factIdentifier>
- <name>Violation</name>
- <className>Violation</className>
+ <factIdentifier importPrefix="tv">
+ <name>tv.Violation</name>
+ <className>tv.Violation</className>
</factIdentifier>
<expressionIdentifier>
- <name>1|8</name>
+ <name>1|6</name>
<type>GIVEN</type>
</expressionIdentifier>
- <rawValue class="string">"driving under the influence"</rawValue>
+ <rawValue class="string">150</rawValue>
</FactMappingValue>
<FactMappingValue>
- <factIdentifier>
- <name>Violation</name>
- <className>Violation</className>
+ <factIdentifier importPrefix="tv">
+ <name>tv.Violation</name>
+ <className>tv.Violation</className>
</factIdentifier>
<expressionIdentifier>
<name>1|9</name>
<type>GIVEN</type>
</expressionIdentifier>
+ <rawValue class="string">100</rawValue>
</FactMappingValue>
<FactMappingValue>
- <factIdentifier>
- <name>Violation</name>
- <className>Violation</className>
+ <factIdentifier importPrefix="tv">
+ <name>tv.Violation</name>
+ <className>tv.Violation</className>
</factIdentifier>
<expressionIdentifier>
<name>1|10</name>
<type>GIVEN</type>
</expressionIdentifier>
+ <rawValue class="string">"speed"</rawValue>
</FactMappingValue>
<FactMappingValue>
<factIdentifier>
- <name>Fine</name>
- <className>Fine</className>
+ <name>Should the driver's be arrested?</name>
+ <className>Should the driver's be arrested?</className>
</factIdentifier>
<expressionIdentifier>
<name>1|11</name>
<type>EXPECT</type>
</expressionIdentifier>
- <rawValue class="string">1000</rawValue>
+ <rawValue class="string">"Yes"</rawValue>
</FactMappingValue>
<FactMappingValue>
<factIdentifier>
- <name>Fine</name>
- <className>Fine</className>
+ <name>Should the driver's license be held?</name>
+ <className>Should the driver's license be held?</className>
</factIdentifier>
<expressionIdentifier>
<name>1|12</name>
<type>EXPECT</type>
</expressionIdentifier>
- <rawValue class="string">5</rawValue>
- </FactMappingValue>
- <FactMappingValue>
- <factIdentifier>
- <name>Should the driver be suspended?</name>
- <className>Should the driver be suspended?</className>
- </factIdentifier>
- <expressionIdentifier>
- <name>1|13</name>
- <type>EXPECT</type>
- </expressionIdentifier>
<rawValue class="string">"No"</rawValue>
</FactMappingValue>
<FactMappingValue>
- <factIdentifier>
- <name>#</name>
- <className>java.lang.Integer</className>
+ <factIdentifier importPrefix="tv">
+ <name>tv.Fine</name>
+ <className>tv.Fine</className>
</factIdentifier>
<expressionIdentifier>
- <name>Index</name>
- <type>OTHER</type>
- </expressionIdentifier>
- <rawValue class="string">4</rawValue>
- </FactMappingValue>
- </factMappingValues>
- </Scenario>
- <Scenario>
- <factMappingValues>
- <FactMappingValue>
- <factIdentifier>
- <name>Scenario description</name>
- <className>java.lang.String</className>
- </factIdentifier>
- <expressionIdentifier>
- <name>Description</name>
- <type>OTHER</type>
- </expressionIdentifier>
- <rawValue class="string">Driver suspended</rawValue>
- </FactMappingValue>
- <FactMappingValue>
- <factIdentifier>
- <name>Driver</name>
- <className>Driver</className>
- </factIdentifier>
- <expressionIdentifier>
- <name>1|5</name>
- <type>GIVEN</type>
- </expressionIdentifier>
- <rawValue class="string">15</rawValue>
- </FactMappingValue>
- <FactMappingValue>
- <factIdentifier>
- <name>Violation</name>
- <className>Violation</className>
- </factIdentifier>
- <expressionIdentifier>
- <name>1|8</name>
- <type>GIVEN</type>
- </expressionIdentifier>
- <rawValue class="string">"speed"</rawValue>
- </FactMappingValue>
- <FactMappingValue>
- <factIdentifier>
- <name>Violation</name>
- <className>Violation</className>
- </factIdentifier>
- <expressionIdentifier>
- <name>1|9</name>
- <type>GIVEN</type>
- </expressionIdentifier>
- <rawValue class="string">100</rawValue>
- </FactMappingValue>
- <FactMappingValue>
- <factIdentifier>
- <name>Violation</name>
- <className>Violation</className>
- </factIdentifier>
- <expressionIdentifier>
- <name>1|10</name>
- <type>GIVEN</type>
- </expressionIdentifier>
- <rawValue class="string">140</rawValue>
- </FactMappingValue>
- <FactMappingValue>
- <factIdentifier>
- <name>Fine</name>
- <className>Fine</className>
- </factIdentifier>
- <expressionIdentifier>
- <name>1|11</name>
+ <name>1|13</name>
<type>EXPECT</type>
</expressionIdentifier>
<rawValue class="string">1000</rawValue>
</FactMappingValue>
<FactMappingValue>
- <factIdentifier>
- <name>Fine</name>
- <className>Fine</className>
+ <factIdentifier importPrefix="tv">
+ <name>tv.Fine</name>
+ <className>tv.Fine</className>
</factIdentifier>
<expressionIdentifier>
- <name>1|12</name>
+ <name>1|14</name>
<type>EXPECT</type>
</expressionIdentifier>
<rawValue class="string">7</rawValue>
</FactMappingValue>
<FactMappingValue>
- <factIdentifier>
- <name>Should the driver be suspended?</name>
- <className>Should the driver be suspended?</className>
+ <factIdentifier importPrefix="tv">
+ <name>tv.Should the driver be suspended?</name>
+ <className>tv.Should the driver be suspended?</className>
</factIdentifier>
<expressionIdentifier>
- <name>1|13</name>
+ <name>1|15</name>
<type>EXPECT</type>
</expressionIdentifier>
<rawValue class="string">"Yes"</rawValue>
@@ -726,7 +757,7 @@
<name>Index</name>
<type>OTHER</type>
</expressionIdentifier>
- <rawValue class="string">5</rawValue>
+ <rawValue class="string">4</rawValue>
</FactMappingValue>
</factMappingValues>
</Scenario>
@@ -771,10 +802,10 @@
</scesimData>
</background>
<settings>
- <dmnFilePath>src/main/resources/Traffic Violation.dmn</dmnFilePath>
+ <dmnFilePath>src/test/resources/importedDMNInputsDecisions/Using
Imported.dmn</dmnFilePath>
<type>DMN</type>
-
<dmnNamespace>https://kie.apache.org/dmn/_A4BCA8B8-CF08-433F-93B2-A2598F19ECFF</dmnNamespace>
- <dmnName>Traffic Violation</dmnName>
+
<dmnNamespace>https://kiegroup.org/dmn/_7120AA2F-BEB6-4CB1-BCC7-427A17AEF71D</dmnNamespace>
+ <dmnName>Using Imported</dmnName>
<skipFromBuild>false</skipFromBuild>
<stateless>false</stateless>
</settings>
diff --git a/packages/scesim-marshaller/tests-data--manual/simple.dmn
b/packages/scesim-marshaller/tests-data--manual/dmn/simple.dmn
similarity index 100%
rename from packages/scesim-marshaller/tests-data--manual/simple.dmn
rename to packages/scesim-marshaller/tests-data--manual/dmn/simple.dmn
diff --git a/packages/scesim-marshaller/tests-data--manual/simple.scesim
b/packages/scesim-marshaller/tests-data--manual/dmn/simple.scesim
similarity index 100%
copy from packages/scesim-marshaller/tests-data--manual/simple.scesim
copy to packages/scesim-marshaller/tests-data--manual/dmn/simple.scesim
diff --git a/packages/scesim-marshaller/tests-data--manual/simple.scesim
b/packages/scesim-marshaller/tests-data--manual/dmn/simpleTypes.scesim
similarity index 80%
copy from packages/scesim-marshaller/tests-data--manual/simple.scesim
copy to packages/scesim-marshaller/tests-data--manual/dmn/simpleTypes.scesim
index 3c4d916361c..ddb36954876 100644
--- a/packages/scesim-marshaller/tests-data--manual/simple.scesim
+++ b/packages/scesim-marshaller/tests-data--manual/dmn/simpleTypes.scesim
@@ -54,43 +54,41 @@
<FactMapping>
<expressionElements>
<ExpressionElement>
- <step>Monthly Salary</step>
+ <step>Input</step>
</ExpressionElement>
</expressionElements>
<expressionIdentifier>
- <name>1|1</name>
+ <name>_4F584C15-5873-426F-8F88-51E2E749967B</name>
<type>GIVEN</type>
</expressionIdentifier>
<factIdentifier>
- <name>Monthly Salary</name>
- <className>Monthly Salary</className>
+ <name>Input</name>
+ <className>number</className>
</factIdentifier>
- <className>tSalary</className>
- <factAlias>Monthly Salary</factAlias>
+ <className>number</className>
+ <factAlias>Input</factAlias>
<expressionAlias>value</expressionAlias>
- <genericTypes />
- <columnWidth>632</columnWidth>
+ <columnWidth>100</columnWidth>
<factMappingValueType>NOT_EXPRESSION</factMappingValueType>
</FactMapping>
<FactMapping>
<expressionElements>
<ExpressionElement>
- <step>Yearly Salary</step>
+ <step>Decision</step>
</ExpressionElement>
</expressionElements>
<expressionIdentifier>
- <name>1|2</name>
+ <name>_45F692B9-E45C-473F-A4E3-13510250FF19</name>
<type>EXPECT</type>
</expressionIdentifier>
<factIdentifier>
- <name>Yearly Salary</name>
- <className>Yearly Salary</className>
+ <name>Decision</name>
+ <className>boolean</className>
</factIdentifier>
- <className>tSalary</className>
- <factAlias>Yearly Salary</factAlias>
+ <className>boolean</className>
+ <factAlias>Decision</factAlias>
<expressionAlias>value</expressionAlias>
- <genericTypes />
- <columnWidth>632</columnWidth>
+ <columnWidth>100</columnWidth>
<factMappingValueType>NOT_EXPRESSION</factMappingValueType>
</FactMapping>
</factMappings>
@@ -100,47 +98,46 @@
<factMappingValues>
<FactMappingValue>
<factIdentifier>
- <name>Scenario description</name>
- <className>java.lang.String</className>
+ <name>#</name>
+ <className>java.lang.Integer</className>
</factIdentifier>
<expressionIdentifier>
- <name>Description</name>
+ <name>Index</name>
<type>OTHER</type>
</expressionIdentifier>
- <rawValue class="string">Description</rawValue>
+ <rawValue class="string">1</rawValue>
</FactMappingValue>
<FactMappingValue>
<factIdentifier>
- <name>Monthly Salary</name>
- <className>Monthly Salary</className>
+ <name>Scenario description</name>
+ <className>java.lang.String</className>
</factIdentifier>
<expressionIdentifier>
- <name>1|1</name>
- <type>GIVEN</type>
+ <name>Description</name>
+ <type>OTHER</type>
</expressionIdentifier>
- <rawValue class="string">100</rawValue>
</FactMappingValue>
<FactMappingValue>
<factIdentifier>
- <name>Yearly Salary</name>
- <className>Yearly Salary</className>
+ <name>Input</name>
+ <className>number</className>
</factIdentifier>
<expressionIdentifier>
- <name>1|2</name>
- <type>EXPECT</type>
+ <name>_4F584C15-5873-426F-8F88-51E2E749967B</name>
+ <type>GIVEN</type>
</expressionIdentifier>
- <rawValue class="string">1200</rawValue>
+ <rawValue class="string">17</rawValue>
</FactMappingValue>
<FactMappingValue>
<factIdentifier>
- <name>#</name>
- <className>java.lang.Integer</className>
+ <name>Decision</name>
+ <className>boolean</className>
</factIdentifier>
<expressionIdentifier>
- <name>Index</name>
- <type>OTHER</type>
+ <name>_45F692B9-E45C-473F-A4E3-13510250FF19</name>
+ <type>EXPECT</type>
</expressionIdentifier>
- <rawValue class="string">1</rawValue>
+ <rawValue class="string">false</rawValue>
</FactMappingValue>
</factMappingValues>
</Scenario>
@@ -160,9 +157,9 @@
<className>java.lang.Void</className>
</factIdentifier>
<className>java.lang.Void</className>
- <factAlias>INSTANCE 1</factAlias>
- <expressionAlias>PROPERTY 1</expressionAlias>
- <columnWidth>114</columnWidth>
+ <factAlias>INSTANCE-1</factAlias>
+ <expressionAlias>PROPERTY-1</expressionAlias>
+ <columnWidth>150</columnWidth>
<factMappingValueType>NOT_EXPRESSION</factMappingValueType>
</FactMapping>
</factMappings>
@@ -185,12 +182,11 @@
</scesimData>
</background>
<settings>
- <dmnFilePath>simple.dmn</dmnFilePath>
+ <dmnFilePath>dev-webapp/available-dmn-models/simple.dmn</dmnFilePath>
<type>DMN</type>
- <dmnNamespace>https://kie.apache.org/dmn/itemdef</dmnNamespace>
- <dmnName>simple-item-def</dmnName>
+
<dmnNamespace>https://kie.org/dmn/_0457D4F2-02B6-4A3D-957F-8F971A8321BC</dmnNamespace>
+ <dmnName>Simple</dmnName>
<skipFromBuild>false</skipFromBuild>
- <stateless>false</stateless>
</settings>
<imports>
<imports />
diff --git a/packages/scesim-marshaller/tests-data--manual/simple.scesim
b/packages/scesim-marshaller/tests-data--manual/dmn/undefined.scesim
similarity index 80%
rename from packages/scesim-marshaller/tests-data--manual/simple.scesim
rename to packages/scesim-marshaller/tests-data--manual/dmn/undefined.scesim
index 3c4d916361c..76ac49e99df 100644
--- a/packages/scesim-marshaller/tests-data--manual/simple.scesim
+++ b/packages/scesim-marshaller/tests-data--manual/dmn/undefined.scesim
@@ -54,43 +54,41 @@
<FactMapping>
<expressionElements>
<ExpressionElement>
- <step>Monthly Salary</step>
+ <step>InputData-1</step>
</ExpressionElement>
</expressionElements>
<expressionIdentifier>
- <name>1|1</name>
+ <name>_FD2076CB-1CCD-4F8A-9C5C-F4505F05E654</name>
<type>GIVEN</type>
</expressionIdentifier>
<factIdentifier>
- <name>Monthly Salary</name>
- <className>Monthly Salary</className>
+ <name>InputData-1</name>
+ <className />
</factIdentifier>
- <className>tSalary</className>
- <factAlias>Monthly Salary</factAlias>
+ <className />
+ <factAlias>InputData-1</factAlias>
<expressionAlias>value</expressionAlias>
- <genericTypes />
- <columnWidth>632</columnWidth>
+ <columnWidth>100</columnWidth>
<factMappingValueType>NOT_EXPRESSION</factMappingValueType>
</FactMapping>
<FactMapping>
<expressionElements>
<ExpressionElement>
- <step>Yearly Salary</step>
+ <step>Decision-1</step>
</ExpressionElement>
</expressionElements>
<expressionIdentifier>
- <name>1|2</name>
+ <name>_D4A7B802-5021-4523-ABF7-42B9219F2E46</name>
<type>EXPECT</type>
</expressionIdentifier>
<factIdentifier>
- <name>Yearly Salary</name>
- <className>Yearly Salary</className>
+ <name>Decision-1</name>
+ <className />
</factIdentifier>
- <className>tSalary</className>
- <factAlias>Yearly Salary</factAlias>
+ <className />
+ <factAlias>Decision-1</factAlias>
<expressionAlias>value</expressionAlias>
- <genericTypes />
- <columnWidth>632</columnWidth>
+ <columnWidth>100</columnWidth>
<factMappingValueType>NOT_EXPRESSION</factMappingValueType>
</FactMapping>
</factMappings>
@@ -100,47 +98,44 @@
<factMappingValues>
<FactMappingValue>
<factIdentifier>
- <name>Scenario description</name>
- <className>java.lang.String</className>
+ <name>#</name>
+ <className>java.lang.Integer</className>
</factIdentifier>
<expressionIdentifier>
- <name>Description</name>
+ <name>Index</name>
<type>OTHER</type>
</expressionIdentifier>
- <rawValue class="string">Description</rawValue>
+ <rawValue class="string">1</rawValue>
</FactMappingValue>
<FactMappingValue>
<factIdentifier>
- <name>Monthly Salary</name>
- <className>Monthly Salary</className>
+ <name>Scenario description</name>
+ <className>java.lang.String</className>
</factIdentifier>
<expressionIdentifier>
- <name>1|1</name>
- <type>GIVEN</type>
+ <name>Description</name>
+ <type>OTHER</type>
</expressionIdentifier>
- <rawValue class="string">100</rawValue>
</FactMappingValue>
<FactMappingValue>
<factIdentifier>
- <name>Yearly Salary</name>
- <className>Yearly Salary</className>
+ <name>InputData-1</name>
+ <className />
</factIdentifier>
<expressionIdentifier>
- <name>1|2</name>
- <type>EXPECT</type>
+ <name>_FD2076CB-1CCD-4F8A-9C5C-F4505F05E654</name>
+ <type>GIVEN</type>
</expressionIdentifier>
- <rawValue class="string">1200</rawValue>
</FactMappingValue>
<FactMappingValue>
<factIdentifier>
- <name>#</name>
- <className>java.lang.Integer</className>
+ <name>Decision-1</name>
+ <className />
</factIdentifier>
<expressionIdentifier>
- <name>Index</name>
- <type>OTHER</type>
+ <name>_D4A7B802-5021-4523-ABF7-42B9219F2E46</name>
+ <type>EXPECT</type>
</expressionIdentifier>
- <rawValue class="string">1</rawValue>
</FactMappingValue>
</factMappingValues>
</Scenario>
@@ -160,9 +155,9 @@
<className>java.lang.Void</className>
</factIdentifier>
<className>java.lang.Void</className>
- <factAlias>INSTANCE 1</factAlias>
- <expressionAlias>PROPERTY 1</expressionAlias>
- <columnWidth>114</columnWidth>
+ <factAlias>INSTANCE-1</factAlias>
+ <expressionAlias>PROPERTY-1</expressionAlias>
+ <columnWidth>150</columnWidth>
<factMappingValueType>NOT_EXPRESSION</factMappingValueType>
</FactMapping>
</factMappings>
@@ -185,12 +180,11 @@
</scesimData>
</background>
<settings>
- <dmnFilePath>simple.dmn</dmnFilePath>
+ <dmnFilePath>../../main/resources/Empty.dmn</dmnFilePath>
<type>DMN</type>
- <dmnNamespace>https://kie.apache.org/dmn/itemdef</dmnNamespace>
- <dmnName>simple-item-def</dmnName>
+
<dmnNamespace>https://kie.apache.org/dmn/_E1F6DB7D-8FCF-441A-AD23-E420BA2F3020</dmnNamespace>
+ <dmnName>Empty</dmnName>
<skipFromBuild>false</skipFromBuild>
- <stateless>false</stateless>
</settings>
<imports>
<imports />
diff --git a/packages/scesim-marshaller/tests-data--manual/OldEnoughTest.scesim
b/packages/scesim-marshaller/tests-data--manual/rule/OldEnoughTest.scesim
similarity index 100%
rename from packages/scesim-marshaller/tests-data--manual/OldEnoughTest.scesim
rename to
packages/scesim-marshaller/tests-data--manual/rule/OldEnoughTest.scesim
diff --git a/packages/scesim-marshaller/tests/idempotency.test.ts
b/packages/scesim-marshaller/tests/idempotency.test.ts
index 2ec133a77bc..a3261ede776 100644
--- a/packages/scesim-marshaller/tests/idempotency.test.ts
+++ b/packages/scesim-marshaller/tests/idempotency.test.ts
@@ -22,9 +22,14 @@ import * as path from "path";
import { getMarshaller } from "@kie-tools/scesim-marshaller";
const files = [
- "../tests-data--manual/simple.scesim",
- "../tests-data--manual/OldEnoughTest.scesim",
- "../tests-data--manual/TrafficViolationTest.scesim",
+ "../tests-data--manual/dmn/collection.scesim",
+ "../tests-data--manual/dmn/expression.scesim",
+ "../tests-data--manual/dmn/imported.scesim",
+ "../tests-data--manual/dmn/simple.scesim",
+ "../tests-data--manual/dmn/simpleTypes.scesim",
+ "../tests-data--manual/dmn/TrafficViolationTest.scesim",
+ "../tests-data--manual/dmn/undefined.scesim",
+ "../tests-data--manual/rule/OldEnoughTest.scesim",
];
describe("idempotency", () => {
diff --git a/packages/scesim-marshaller/tests/typeSafety.test.ts
b/packages/scesim-marshaller/tests/typeSafety.test.ts
index bd4641c2b72..dc7733ec7b9 100644
--- a/packages/scesim-marshaller/tests/typeSafety.test.ts
+++ b/packages/scesim-marshaller/tests/typeSafety.test.ts
@@ -23,9 +23,14 @@ import * as child_process from "child_process";
import { getMarshaller } from "@kie-tools/scesim-marshaller";
const files = [
- "../tests-data--manual/OldEnoughTest.scesim",
- "../tests-data--manual/TrafficViolationTest.scesim",
- "../tests-data--manual/simple.scesim",
+ "../tests-data--manual/dmn/collection.scesim",
+ "../tests-data--manual/dmn/expression.scesim",
+ "../tests-data--manual/dmn/imported.scesim",
+ "../tests-data--manual/dmn/simple.scesim",
+ "../tests-data--manual/dmn/simpleTypes.scesim",
+ "../tests-data--manual/dmn/TrafficViolationTest.scesim",
+ "../tests-data--manual/dmn/undefined.scesim",
+ "../tests-data--manual/rule/OldEnoughTest.scesim",
];
const tmpDir = path.join(__dirname, "..", "dist-tests",
"scesim-marshaller-type-safety-tests");
diff --git a/packages/scesim-marshaller/tests/versions.test.ts
b/packages/scesim-marshaller/tests/versions.test.ts
index 227241ded5b..f4c590ed08f 100644
--- a/packages/scesim-marshaller/tests/versions.test.ts
+++ b/packages/scesim-marshaller/tests/versions.test.ts
@@ -22,9 +22,14 @@ import * as path from "path";
import { getMarshaller } from "@kie-tools/scesim-marshaller";
const files = [
- { path: "../tests-data--manual/simple.scesim", version: "1.8" },
- { path: "../tests-data--manual/OldEnoughTest.scesim", version: "1.8" },
- { path: "../tests-data--manual/TrafficViolationTest.scesim", version: "1.8"
},
+ { path: "../tests-data--manual/dmn/collection.scesim", version: "1.8" },
+ { path: "../tests-data--manual/dmn/expression.scesim", version: "1.8" },
+ { path: "../tests-data--manual/dmn/imported.scesim", version: "1.8" },
+ { path: "../tests-data--manual/dmn/simple.scesim", version: "1.8" },
+ { path: "../tests-data--manual/dmn/simpleTypes.scesim", version: "1.8" },
+ { path: "../tests-data--manual/dmn/TrafficViolationTest.scesim", version:
"1.8" },
+ { path: "../tests-data--manual/dmn/undefined.scesim", version: "1.8" },
+ { path: "../tests-data--manual/rule/OldEnoughTest.scesim", version: "1.8" },
];
describe("versions", () => {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]