This is an automated email from the ASF dual-hosted git repository.
gitgabrio pushed a commit to branch main
in repository
https://gitbox.apache.org/repos/asf/incubator-kie-kogito-examples.git
The following commit(s) were added to refs/heads/main by this push:
new fe2488747 [incubator-kie-kogito-runtimes#2608] Testing multiple DMNs,
importing dmn (#1888)
fe2488747 is described below
commit fe24887472121cbeaea77cdc22893a59aa2db309
Author: Gabriele Cardosi <[email protected]>
AuthorDate: Fri Mar 8 08:59:18 2024 +0100
[incubator-kie-kogito-runtimes#2608] Testing multiple DMNs, importing dmn
(#1888)
* [incubator-kie-kogito-runtimes#2608] Testing multiple DMNs, importing dmn
* [incubator-kie-kogito-runtimes#2608] Restored dmn-quarkus-example.
Created dmn-multiple-models-quarkus-example
* [incubator-kie-kogito-runtimes#2608] Restored dmn-quarkus-example.
Created dmn-multiple-models-quarkus-example
* [incubator-kie-kogito-runtimes#2608] Removed commented block
* [incubator-kie-kogito-runtimes#2608] Fixed as per PR suggestion
---------
Co-authored-by: Gabriele-Cardosi <[email protected]>
---
.../dmn-multiple-models-quarkus-example/README.md | 171 +++++
.../dmn-multiple-models-quarkus-example/pom.xml | 118 ++++
.../src/main/resources/Imported_Model.dmn | 35 +
.../src/main/resources/Traffic Violation.dmn | 221 ++++++
.../src/main/resources/application.properties | 22 +
.../src/main/resources/habitability.dmn | 124 ++++
.../dmn/quarkus/example/HabitabilityTest.java | 46 ++
.../dmn/quarkus/example/NativeHabitabilityIT.java | 27 +
.../quarkus/example/NativeTrafficViolationIT.java | 27 +
.../dmn/quarkus/example/TrafficViolationTest.java | 52 ++
.../KogitoScenarioJunitActivatorTest.java | 29 +
.../src/test/resources/TrafficViolationTest.scesim | 766 +++++++++++++++++++++
.../src/test/resources/application.properties | 21 +
kogito-quarkus-examples/pom.xml | 1 +
14 files changed, 1660 insertions(+)
diff --git
a/kogito-quarkus-examples/dmn-multiple-models-quarkus-example/README.md
b/kogito-quarkus-examples/dmn-multiple-models-quarkus-example/README.md
new file mode 100644
index 000000000..1e861d88c
--- /dev/null
+++ b/kogito-quarkus-examples/dmn-multiple-models-quarkus-example/README.md
@@ -0,0 +1,171 @@
+# DMN + Quarkus example with multiple models
+
+## Description
+
+A simple DMN service to evaluate different models (traffic violation,
habitability) with also importing feature (traffic violation).
+
+Demonstrates DMN on Kogito capabilities, including REST interface code
generation.
+
+## Installing and Running
+
+### Prerequisites
+
+You will need:
+ - Java 17+ installed
+ - Environment variable JAVA_HOME set accordingly
+ - Maven 3.9.6+ installed
+
+When using native image compilation, you will also need:
+ - [GraalVM 19.3.1](https://github.com/oracle/graal/releases/tag/vm-19.3.1)
installed
+ - Environment variable GRAALVM_HOME set accordingly
+ - Note that GraalVM native image compilation typically requires other
packages (glibc-devel, zlib-devel and gcc) to be installed too. You also need
'native-image' installed in GraalVM (using 'gu install native-image'). Please
refer to [GraalVM installation
documentation](https://www.graalvm.org/docs/reference-manual/aot-compilation/#prerequisites)
for more details.
+
+### Compile and Run in Local Dev Mode
+
+```
+mvn clean compile quarkus:dev
+```
+
+### Package and Run in JVM mode
+
+```
+mvn clean package
+java -jar target/quarkus-app/quarkus-run.jar
+```
+
+or on Windows
+
+```
+mvn clean package
+java -jar target\quarkus-app\quarkus-run.jar
+```
+
+### Package and Run using Local Native Image
+Note that this requires GRAALVM_HOME to point to a valid GraalVM installation
+
+```
+mvn clean package -Pnative
+```
+
+To run the generated native executable, generated in `target/`, execute
+
+```
+./target/dmn-multiple-models-quarkus-example-runner
+```
+
+Note: This does not yet work on Windows, GraalVM and Quarkus should be rolling
out support for Windows soon.
+
+## OpenAPI (Swagger) documentation
+[Specification at swagger.io](https://swagger.io/docs/specification/about/)
+
+You can take a look at the [OpenAPI
definition](http://localhost:8080/openapi?format=json) - automatically
generated and included in this service - to determine all available operations
exposed by this service. For easy readability you can visualize the OpenAPI
definition file using a UI tool like for example available [Swagger
UI](https://editor.swagger.io).
+
+In addition, various clients to interact with this service can be easily
generated using this OpenAPI definition.
+
+When running in either Quarkus Development or Native mode, we also leverage
the [Quarkus OpenAPI
extension](https://quarkus.io/guides/openapi-swaggerui#use-swagger-ui-for-development)
that exposes [Swagger UI](http://localhost:8080/swagger-ui/) that you can use
to look at available REST endpoints and send test requests.
+
+## Test DMN Model using Maven
+
+Validate the functionality of DMN models before deploying them into a
production environment by defining test scenarios in Test Scenario Editor.
+
+To define test scenarios you need to create a .scesim file inside your project
and link it to the DMN model you want to be tested. Run all Test Scenarios,
executing:
+
+```sh
+mvn clean test
+```
+See results in surefire test report `target/surefire-reports`
+
+## Example Usage
+
+Once the service is up and running, you can use the following example to
interact with the service.
+
+### POST /Traffic Violation
+
+Returns penalty information from the given inputs -- driver and violation:
+
+Given inputs:
+
+```json
+{
+ "Driver":{"Points":2},
+ "Violation":{
+ "Type":"speed",
+ "Actual Speed":120,
+ "Speed Limit":100
+ }
+}
+```
+
+Curl command (using the JSON object above):
+
+```sh
+curl -X POST -H 'Accept: application/json' -H 'Content-Type: application/json'
-d '{"Driver":{"Points":2},"Violation":{"Type":"speed","Actual
Speed":120,"Speed Limit":100}}' http://localhost:8080/Traffic%20Violation
+```
+or on Windows:
+
+```sh
+curl -X POST -H "Accept: application/json" -H "Content-Type: application/json"
-d "{\"Driver\":{\"Points\":2},\"Violation\":{\"Type\":\"speed\",\"Actual
Speed\":120,\"Speed Limit\":100}}" http://localhost:8080/Traffic%20Violation
+```
+
+As response, penalty information is returned.
+
+Example response:
+
+```json
+{
+ "Violation":{
+ "Type":"speed",
+ "Speed Limit":100,
+ "Actual Speed":120
+ },
+ "Driver":{
+ "Points":2
+ },
+ "Fine":{
+ "Points":3,
+ "Amount":500
+ },
+ "Should the driver be suspended?":"No"
+}
+```
+
+The difference from the [dmn-quarkus-example](../dmn-quarkus-example) is that,
in the current one, the `Traffic Model` features the import declaration, with
definitions coming from the ` Imported Model`.
+
+### POST /habitability
+
+Returns habitability information from the given inputs -- oxygen and
temperature:
+
+Given inputs:
+
+```json
+{
+ "oxygene": 70,
+ "temperature": 30
+}
+```
+
+Curl command (using the JSON object above):
+
+```sh
+curl -X POST -H 'Accept: application/json' -H 'Content-Type: application/json'
-d '{"oxygene": 70, "temperature": 30}' http://localhost:8080/habitability
+```
+or on Windows:
+
+```sh
+curl -X POST -H "Accept: application/json" -H "Content-Type: application/json"
-d "{\"oxygene\": 70, \"temperature\": 30}" http://localhost:8080/habitability
+```
+
+As response, habitability information is returned.
+
+Example response:
+
+```json
+{
+ "oxygene": 70,
+ "temperature": 30,
+ "habitability": "somehow doable"
+}
+```
+
+
+
diff --git
a/kogito-quarkus-examples/dmn-multiple-models-quarkus-example/pom.xml
b/kogito-quarkus-examples/dmn-multiple-models-quarkus-example/pom.xml
new file mode 100644
index 000000000..b9df8cd83
--- /dev/null
+++ b/kogito-quarkus-examples/dmn-multiple-models-quarkus-example/pom.xml
@@ -0,0 +1,118 @@
+<?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.
+
+-->
+<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.kie.kogito.examples</groupId>
+ <artifactId>kogito-quarkus-examples</artifactId>
+ <version>999-SNAPSHOT</version>
+ </parent>
+ <artifactId>dmn-multiple-models-quarkus-example</artifactId>
+ <name>Kogito Example :: DMN :: Multiple Models</name>
+ <properties>
+ <quarkus-plugin.version>3.2.10.Final</quarkus-plugin.version>
+ <quarkus.platform.artifact-id>quarkus-bom</quarkus.platform.artifact-id>
+ <quarkus.platform.group-id>io.quarkus</quarkus.platform.group-id>
+ <quarkus.platform.version>3.2.10.Final</quarkus.platform.version>
+ <kogito.bom.group-id>org.kie.kogito</kogito.bom.group-id>
+ <kogito.bom.artifact-id>kogito-bom</kogito.bom.artifact-id>
+ <kogito.bom.version>999-SNAPSHOT</kogito.bom.version>
+ <version.org.kie.kogito>999-SNAPSHOT</version.org.kie.kogito>
+ </properties>
+ <dependencyManagement>
+ <dependencies>
+ <dependency>
+ <groupId>${quarkus.platform.group-id}</groupId>
+ <artifactId>${quarkus.platform.artifact-id}</artifactId>
+ <version>${quarkus.platform.version}</version>
+ <type>pom</type>
+ <scope>import</scope>
+ </dependency>
+ <dependency>
+ <groupId>${kogito.bom.group-id}</groupId>
+ <artifactId>${kogito.bom.artifact-id}</artifactId>
+ <version>${kogito.bom.version}</version>
+ <type>pom</type>
+ <scope>import</scope>
+ </dependency>
+ </dependencies>
+ </dependencyManagement>
+ <dependencies>
+ <dependency>
+ <groupId>org.drools</groupId>
+ <artifactId>drools-quarkus-decisions</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>io.quarkus</groupId>
+ <artifactId>quarkus-resteasy</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>io.quarkus</groupId>
+ <artifactId>quarkus-arc</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>io.quarkus</groupId>
+ <artifactId>quarkus-resteasy-jackson</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>io.quarkus</groupId>
+ <artifactId>quarkus-smallrye-openapi</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>io.quarkus</groupId>
+ <artifactId>quarkus-junit5</artifactId>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>io.rest-assured</groupId>
+ <artifactId>rest-assured</artifactId>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.kie.kogito</groupId>
+ <artifactId>kogito-scenario-simulation</artifactId>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>io.quarkus</groupId>
+ <artifactId>quarkus-smallrye-health</artifactId>
+ </dependency>
+ </dependencies>
+ <build>
+ <finalName>${project.artifactId}</finalName>
+ <plugins>
+ <plugin>
+ <groupId>${quarkus.platform.group-id}</groupId>
+ <artifactId>quarkus-maven-plugin</artifactId>
+ <version>${quarkus-plugin.version}</version>
+ <executions>
+ <execution>
+ <goals>
+ <goal>build</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+</project>
diff --git
a/kogito-quarkus-examples/dmn-multiple-models-quarkus-example/src/main/resources/Imported_Model.dmn
b/kogito-quarkus-examples/dmn-multiple-models-quarkus-example/src/main/resources/Imported_Model.dmn
new file mode 100644
index 000000000..a4440e3b3
--- /dev/null
+++
b/kogito-quarkus-examples/dmn-multiple-models-quarkus-example/src/main/resources/Imported_Model.dmn
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<dmn:definitions
xmlns="http://www.trisotech.com/dmn/definitions/_f27bb64b-6fc7-4e1f-9848-11ba35e0df36"
+ xmlns:dc="http://www.omg.org/spec/DMN/20180521/DC/"
+ xmlns:di="http://www.omg.org/spec/DMN/20180521/DI/"
+
xmlns:dmndi="https://www.omg.org/spec/DMN/20230324/DMNDI/"
+ xmlns:feel="https://www.omg.org/spec/DMN/20230324/FEEL/"
+ xmlns:dmn="https://www.omg.org/spec/DMN/20230324/MODEL/"
+ xmlns:tc="http://www.omg.org/spec/DMN/20160719/testcase"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ exporter="DMN Modeler"
+ exporterVersion="6.0.3.201802231629"
+ id="_f27bb64b-6fc7-4e1f-9848-11ba35e0df36"
+ name="Imported Model"
+
namespace="http://www.trisotech.com/dmn/definitions/_f27bb64b-6fc7-4e1f-9848-11ba35e0df36">
+ <dmn:extensionElements>
+ </dmn:extensionElements>
+ <dmn:itemDefinition id="_63824D3F-9173-446D-A940-6A7F0FA056BB"
name="tDriver" isCollection="false">
+ <dmn:itemComponent id="_9DAB5DAA-3B44-4F6D-87F2-95125FB2FEE4" name="Name"
isCollection="false">
+ <dmn:typeRef>string</dmn:typeRef>
+ </dmn:itemComponent>
+ <dmn:itemComponent id="_856BA8FA-EF7B-4DF9-A1EE-E28263CE9955" name="Age"
isCollection="false">
+ <dmn:typeRef>number</dmn:typeRef>
+ </dmn:itemComponent>
+ <dmn:itemComponent id="_FDC2CE03-D465-47C2-A311-98944E8CC23F" name="State"
isCollection="false">
+ <dmn:typeRef>string</dmn:typeRef>
+ </dmn:itemComponent>
+ <dmn:itemComponent id="_D6FD34C4-00DC-4C79-B1BF-BBCF6FC9B6D7" name="City"
isCollection="false">
+ <dmn:typeRef>string</dmn:typeRef>
+ </dmn:itemComponent>
+ <dmn:itemComponent id="_7110FE7E-1A38-4C39-B0EB-AEEF06BA37F4"
name="Points" isCollection="false">
+ <dmn:typeRef>number</dmn:typeRef>
+ </dmn:itemComponent>
+ </dmn:itemDefinition>
+</dmn:definitions>
diff --git
a/kogito-quarkus-examples/dmn-multiple-models-quarkus-example/src/main/resources/Traffic
Violation.dmn
b/kogito-quarkus-examples/dmn-multiple-models-quarkus-example/src/main/resources/Traffic
Violation.dmn
new file mode 100644
index 000000000..aa798507d
--- /dev/null
+++
b/kogito-quarkus-examples/dmn-multiple-models-quarkus-example/src/main/resources/Traffic
Violation.dmn
@@ -0,0 +1,221 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<dmn:definitions xmlns:dmn="http://www.omg.org/spec/DMN/20180521/MODEL/"
xmlns="https://github.com/kiegroup/drools/kie-dmn/_A4BCA8B8-CF08-433F-93B2-A2598F19ECFF"
xmlns:di="http://www.omg.org/spec/DMN/20180521/DI/"
xmlns:kie="http://www.drools.org/kie/dmn/1.2"
xmlns:feel="http://www.omg.org/spec/DMN/20180521/FEEL/"
xmlns:dmndi="http://www.omg.org/spec/DMN/20180521/DMNDI/"
xmlns:dc="http://www.omg.org/spec/DMN/20180521/DC/"
id="_1C792953-80DB-4B32-99EB-25FBE32BAF9E" name="Traffic Violation [...]
+ <dmn:extensionElements/>
+ <dmn:import xmlns:drools="http://www.drools.org/kie/dmn/1.1"
+ xmlns:triso="http://www.trisotech.com/2015/triso/modeling"
+
importType="http://www.omg.org/spec/DMN1-2Alpha/20160929/MODEL"
+
namespace="http://www.trisotech.com/dmn/definitions/_f27bb64b-6fc7-4e1f-9848-11ba35e0df36"
+ name="Imported Model"
+ drools:modelName="Imported Model"
+ triso:fileId="_f27bb64b-6fc7-4e1f-9848-11ba35e0df36"
+ triso:fileName="Imported Model"/>
+ <dmn:itemDefinition id="_40731093-0642-4588-9183-1660FC55053B"
name="tViolation" isCollection="false">
+ <dmn:itemComponent id="_39E88D9F-AE53-47AD-B3DE-8AB38D4F50B3" name="Code"
isCollection="false">
+ <dmn:typeRef>string</dmn:typeRef>
+ </dmn:itemComponent>
+ <dmn:itemComponent id="_1648EA0A-2463-4B54-A12A-D743A3E3EE7B" name="Date"
isCollection="false">
+ <dmn:typeRef>date</dmn:typeRef>
+ </dmn:itemComponent>
+ <dmn:itemComponent id="_9F129EAA-4E71-4D99-B6D0-84EEC3AC43CC" name="Type"
isCollection="false">
+ <dmn:typeRef>string</dmn:typeRef>
+ <dmn:allowedValues kie:constraintType="enumeration"
id="_626A8F9C-9DD1-44E0-9568-0F6F8F8BA228">
+ <dmn:text>"speed", "parking", "driving under the influence"</dmn:text>
+ </dmn:allowedValues>
+ </dmn:itemComponent>
+ <dmn:itemComponent id="_DDD10D6E-BD38-4C79-9E2F-8155E3A4B438" name="Speed
Limit" isCollection="false">
+ <dmn:typeRef>number</dmn:typeRef>
+ </dmn:itemComponent>
+ <dmn:itemComponent id="_229F80E4-2892-494C-B70D-683ABF2345F6" name="Actual
Speed" isCollection="false">
+ <dmn:typeRef>number</dmn:typeRef>
+ </dmn:itemComponent>
+ </dmn:itemDefinition>
+ <dmn:itemDefinition id="_2D4F30EE-21A6-4A78-A524-A5C238D433AE" name="tFine"
isCollection="false">
+ <dmn:itemComponent id="_B9F70BC7-1995-4F51-B949-1AB65538B405"
name="Amount" isCollection="false">
+ <dmn:typeRef>number</dmn:typeRef>
+ </dmn:itemComponent>
+ <dmn:itemComponent id="_F49085D6-8F08-4463-9A1A-EF6B57635DBD"
name="Points" isCollection="false">
+ <dmn:typeRef>number</dmn:typeRef>
+ </dmn:itemComponent>
+ </dmn:itemDefinition>
+ <dmn:inputData id="_1929CBD5-40E0-442D-B909-49CEDE0101DC" name="Violation">
+ <dmn:variable id="_C16CF9B1-5FAB-48A0-95E0-5FCD661E0406" name="Violation"
typeRef="tViolation"/>
+ </dmn:inputData>
+ <dmn:decision id="_4055D956-1C47-479C-B3F4-BAEB61F1C929" name="Fine">
+ <dmn:variable id="_8C1EAC83-F251-4D94-8A9E-B03ACF6849CD" name="Fine"
typeRef="tFine"/>
+ <dmn:informationRequirement id="_800A3BBB-90A3-4D9D-BA5E-A311DED0134F">
+ <dmn:requiredInput href="#_1929CBD5-40E0-442D-B909-49CEDE0101DC"/>
+ </dmn:informationRequirement>
+ <dmn:decisionTable id="_C8F7F579-E06C-4A2F-8485-65FAFAC3FE6A"
hitPolicy="UNIQUE" preferredOrientation="Rule-as-Row">
+ <dmn:input id="_B53A6F0D-F72C-41EF-96B3-F31269AC0FED">
+ <dmn:inputExpression id="_974C8D01-728F-4CE5-8C69-BE884125B859"
typeRef="string">
+ <dmn:text>Violation.Type</dmn:text>
+ </dmn:inputExpression>
+ </dmn:input>
+ <dmn:input id="_D5319F80-1C59-4736-AF2D-D29DE6B7E76D">
+ <dmn:inputExpression id="_3FEB4DE3-90C6-438E-99BF-9BB1BF5B078A"
typeRef="number">
+ <dmn:text>Violation.Actual Speed - Violation.Speed Limit</dmn:text>
+ </dmn:inputExpression>
+ </dmn:input>
+ <dmn:output id="_9012031F-9C01-44E5-8CD2-E6704D594504" name="Amount"
typeRef="number"/>
+ <dmn:output id="_7CAC8240-E1A5-4FEB-A0D4-B8613F0DE54B" name="Points"
typeRef="number"/>
+ <dmn:rule id="_424A80AE-916F-4451-9B6B-71557F7EC65A">
+ <dmn:inputEntry id="_EDA4F336-AA28-4F5F-ADFC-401E6DCC8D35">
+ <dmn:text>"speed"</dmn:text>
+ </dmn:inputEntry>
+ <dmn:inputEntry id="_246AAB08-A945-4599-9220-7C24B6716FDD">
+ <dmn:text>[10..30)</dmn:text>
+ </dmn:inputEntry>
+ <dmn:outputEntry id="_E49345EE-51D3-47C7-B658-3607E723FF37">
+ <dmn:text>500</dmn:text>
+ </dmn:outputEntry>
+ <dmn:outputEntry id="_1D56F3CB-6BAE-4415-940F-00F37121813D">
+ <dmn:text>3</dmn:text>
+ </dmn:outputEntry>
+ </dmn:rule>
+ <dmn:rule id="_B1ECE6A9-6B82-4A85-A7CA-5F96CDB0DCB6">
+ <dmn:inputEntry id="_2390F686-65CF-40FF-BF9A-72DFBAEBACAC">
+ <dmn:text>"speed"</dmn:text>
+ </dmn:inputEntry>
+ <dmn:inputEntry id="_8CEBE4D5-DBEF-46EF-BD95-7B96148B6D8A">
+ <dmn:text>>= 30</dmn:text>
+ </dmn:inputEntry>
+ <dmn:outputEntry id="_5FCC56B7-6BAA-4B09-AC61-7EB9D4CD58C3">
+ <dmn:text>1000</dmn:text>
+ </dmn:outputEntry>
+ <dmn:outputEntry id="_79FF8FDD-3299-4DFD-AA14-D2022504BDAD">
+ <dmn:text>7</dmn:text>
+ </dmn:outputEntry>
+ </dmn:rule>
+ <dmn:rule id="_8FC7068C-A3FD-44D9-AC2B-69C160A12E5D">
+ <dmn:inputEntry id="_02EEE8A9-1AD7-4708-8EC8-9B4177B05167">
+ <dmn:text>"parking"</dmn:text>
+ </dmn:inputEntry>
+ <dmn:inputEntry id="_A5141FF4-8D63-49DB-8979-3B64A3BD9A82">
+ <dmn:text>-</dmn:text>
+ </dmn:inputEntry>
+ <dmn:outputEntry id="_EFDA632D-113D-46C9-94B8-78E9F9770CA4">
+ <dmn:text>100</dmn:text>
+ </dmn:outputEntry>
+ <dmn:outputEntry id="_05F86973-52CE-4C9D-B785-47B6340D10FD">
+ <dmn:text>1</dmn:text>
+ </dmn:outputEntry>
+ </dmn:rule>
+ <dmn:rule id="_A742DF2B-DC91-4166-9773-6EF86A45A625">
+ <dmn:inputEntry id="_F5B5AE87-D9E6-4142-B01D-D79D4BA49EEE">
+ <dmn:text>"driving under the influence"</dmn:text>
+ </dmn:inputEntry>
+ <dmn:inputEntry id="_BD2A43F5-46D8-436A-B8A1-D98747C836B1">
+ <dmn:text>-</dmn:text>
+ </dmn:inputEntry>
+ <dmn:outputEntry id="_ECAF3378-46B6-4F40-B95A-E90DB700BF7D">
+ <dmn:text>1000</dmn:text>
+ </dmn:outputEntry>
+ <dmn:outputEntry id="_F0016A9C-D1D0-472A-9FB3-ABE77AD15F7D">
+ <dmn:text>5</dmn:text>
+ </dmn:outputEntry>
+ </dmn:rule>
+ </dmn:decisionTable>
+ </dmn:decision>
+ <dmn:inputData id="_1F9350D7-146D-46F1-85D8-15B5B68AF22A" name="Driver">
+ <dmn:variable id="_A80F16DF-0DB4-43A2-B041-32900B1A3F3D" name="Driver"
typeRef="Imported Model.tDriver"/>
+ </dmn:inputData>
+ <dmn:decision id="_8A408366-D8E9-4626-ABF3-5F69AA01F880" name="Should the
driver be suspended?">
+ <dmn:question>Should the driver be suspended due to points on his
license?</dmn:question>
+ <dmn:allowedAnswers>"Yes", "No"</dmn:allowedAnswers>
+ <dmn:variable id="_40387B66-5D00-48C8-BB90-E83EE3332C72" name="Should the
driver be suspended?" typeRef="string"/>
+ <dmn:informationRequirement id="_982211B1-5246-49CD-BE85-3211F71253CF">
+ <dmn:requiredInput href="#_1F9350D7-146D-46F1-85D8-15B5B68AF22A"/>
+ </dmn:informationRequirement>
+ <dmn:informationRequirement id="_AEC4AA5F-50C3-4FED-A0C2-261F90290731">
+ <dmn:requiredDecision href="#_4055D956-1C47-479C-B3F4-BAEB61F1C929"/>
+ </dmn:informationRequirement>
+ <dmn:context id="_F39732F1-0AA7-468F-86C4-DCC07E6F81CF">
+ <dmn:contextEntry>
+ <dmn:variable id="_09385E8D-68E0-4DFD-AAD8-141C15C96B71" name="Total
Points" typeRef="number"/>
+ <dmn:literalExpression id="_F1BEBF16-033F-4A25-9523-CAC23ACC5DFC">
+ <dmn:text>Driver.Points + Fine.Points</dmn:text>
+ </dmn:literalExpression>
+ </dmn:contextEntry>
+ <dmn:contextEntry>
+ <dmn:literalExpression id="_1929D813-B1C9-43C5-9497-CE5D8B2B040C">
+ <dmn:text>if Total Points >= 20 then "Yes" else "No"</dmn:text>
+ </dmn:literalExpression>
+ </dmn:contextEntry>
+ </dmn:context>
+ </dmn:decision>
+ <dmndi:DMNDI>
+ <dmndi:DMNDiagram>
+ <di:extension>
+ <kie:ComponentsWidthsExtension>
+ <kie:ComponentWidths
dmnElementRef="_C8F7F579-E06C-4A2F-8485-65FAFAC3FE6A">
+ <kie:width>50.0</kie:width>
+ <kie:width>254.0</kie:width>
+ <kie:width>329.0</kie:width>
+ <kie:width>119.0</kie:width>
+ <kie:width>100.0</kie:width>
+ <kie:width>186.0</kie:width>
+ </kie:ComponentWidths>
+ <kie:ComponentWidths
dmnElementRef="_F39732F1-0AA7-468F-86C4-DCC07E6F81CF">
+ <kie:width>50.0</kie:width>
+ <kie:width>100.0</kie:width>
+ <kie:width>398.0</kie:width>
+ </kie:ComponentWidths>
+ <kie:ComponentWidths
dmnElementRef="_F1BEBF16-033F-4A25-9523-CAC23ACC5DFC">
+ <kie:width>398.0</kie:width>
+ </kie:ComponentWidths>
+ <kie:ComponentWidths
dmnElementRef="_1929D813-B1C9-43C5-9497-CE5D8B2B040C">
+ <kie:width>398.0</kie:width>
+ </kie:ComponentWidths>
+ </kie:ComponentsWidthsExtension>
+ </di:extension>
+ <dmndi:DMNShape id="dmnshape-_1929CBD5-40E0-442D-B909-49CEDE0101DC"
dmnElementRef="_1929CBD5-40E0-442D-B909-49CEDE0101DC" isCollapsed="false">
+ <dmndi:DMNStyle>
+ <dmndi:FillColor red="255" green="255" blue="255"/>
+ <dmndi:StrokeColor red="0" green="0" blue="0"/>
+ <dmndi:FontColor red="0" green="0" blue="0"/>
+ </dmndi:DMNStyle>
+ <dc:Bounds x="708" y="350" width="100" height="50"/>
+ <dmndi:DMNLabel/>
+ </dmndi:DMNShape>
+ <dmndi:DMNShape id="dmnshape-_4055D956-1C47-479C-B3F4-BAEB61F1C929"
dmnElementRef="_4055D956-1C47-479C-B3F4-BAEB61F1C929" isCollapsed="false">
+ <dmndi:DMNStyle>
+ <dmndi:FillColor red="255" green="255" blue="255"/>
+ <dmndi:StrokeColor red="0" green="0" blue="0"/>
+ <dmndi:FontColor red="0" green="0" blue="0"/>
+ </dmndi:DMNStyle>
+ <dc:Bounds x="709" y="210" width="100" height="50"/>
+ <dmndi:DMNLabel/>
+ </dmndi:DMNShape>
+ <dmndi:DMNShape id="dmnshape-_1F9350D7-146D-46F1-85D8-15B5B68AF22A"
dmnElementRef="_1F9350D7-146D-46F1-85D8-15B5B68AF22A" isCollapsed="false">
+ <dmndi:DMNStyle>
+ <dmndi:FillColor red="255" green="255" blue="255"/>
+ <dmndi:StrokeColor red="0" green="0" blue="0"/>
+ <dmndi:FontColor red="0" green="0" blue="0"/>
+ </dmndi:DMNStyle>
+ <dc:Bounds x="369" y="344" width="100" height="50"/>
+ <dmndi:DMNLabel/>
+ </dmndi:DMNShape>
+ <dmndi:DMNShape id="dmnshape-_8A408366-D8E9-4626-ABF3-5F69AA01F880"
dmnElementRef="_8A408366-D8E9-4626-ABF3-5F69AA01F880" isCollapsed="false">
+ <dmndi:DMNStyle>
+ <dmndi:FillColor red="255" green="255" blue="255"/>
+ <dmndi:StrokeColor red="0" green="0" blue="0"/>
+ <dmndi:FontColor red="0" green="0" blue="0"/>
+ </dmndi:DMNStyle>
+ <dc:Bounds x="534" y="83" width="133" height="63"/>
+ <dmndi:DMNLabel/>
+ </dmndi:DMNShape>
+ <dmndi:DMNEdge id="dmnedge-_800A3BBB-90A3-4D9D-BA5E-A311DED0134F"
dmnElementRef="_800A3BBB-90A3-4D9D-BA5E-A311DED0134F">
+ <di:waypoint x="758" y="375"/>
+ <di:waypoint x="759" y="235"/>
+ </dmndi:DMNEdge>
+ <dmndi:DMNEdge id="dmnedge-_982211B1-5246-49CD-BE85-3211F71253CF"
dmnElementRef="_982211B1-5246-49CD-BE85-3211F71253CF">
+ <di:waypoint x="419" y="369"/>
+ <di:waypoint x="600.5" y="114.5"/>
+ </dmndi:DMNEdge>
+ <dmndi:DMNEdge id="dmnedge-_AEC4AA5F-50C3-4FED-A0C2-261F90290731"
dmnElementRef="_AEC4AA5F-50C3-4FED-A0C2-261F90290731">
+ <di:waypoint x="759" y="235"/>
+ <di:waypoint x="600.5" y="114.5"/>
+ </dmndi:DMNEdge>
+ </dmndi:DMNDiagram>
+ </dmndi:DMNDI>
+</dmn:definitions>
\ No newline at end of file
diff --git
a/kogito-quarkus-examples/dmn-multiple-models-quarkus-example/src/main/resources/application.properties
b/kogito-quarkus-examples/dmn-multiple-models-quarkus-example/src/main/resources/application.properties
new file mode 100644
index 000000000..727b6c82f
--- /dev/null
+++
b/kogito-quarkus-examples/dmn-multiple-models-quarkus-example/src/main/resources/application.properties
@@ -0,0 +1,22 @@
+#
+# 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.
+#
+
+# Packaging
+
+quarkus.swagger-ui.always-include=true
diff --git
a/kogito-quarkus-examples/dmn-multiple-models-quarkus-example/src/main/resources/habitability.dmn
b/kogito-quarkus-examples/dmn-multiple-models-quarkus-example/src/main/resources/habitability.dmn
new file mode 100644
index 000000000..5ba283963
--- /dev/null
+++
b/kogito-quarkus-examples/dmn-multiple-models-quarkus-example/src/main/resources/habitability.dmn
@@ -0,0 +1,124 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<dmn:definitions xmlns:dmn="https://www.omg.org/spec/DMN/20230324/MODEL/"
xmlns="https://kiegroup.org/dmn/_93836704-04E9-45B6-8D10-51409FEBDF25"
xmlns:feel="https://www.omg.org/spec/DMN/20230324/FEEL/"
xmlns:kie="http://www.drools.org/kie/dmn/1.2"
xmlns:dmndi="https://www.omg.org/spec/DMN/20230324/DMNDI/"
xmlns:di="http://www.omg.org/spec/DMN/20180521/DI/"
xmlns:dc="http://www.omg.org/spec/DMN/20180521/DC/"
id="_769E1EEB-1FF5-486D-A01A-2AC8B41B56F1" name="habitability"
typeLanguage="http [...]
+ <dmn:extensionElements/>
+ <dmn:inputData id="_91C73E47-B022-445F-8EB8-03C9D151ADAF" name="oxygene">
+ <dmn:extensionElements/>
+ <dmn:variable id="_134AD5DB-0EF6-4919-A1C8-D6DFD01F01E1" name="oxygene"
typeRef="number"/>
+ </dmn:inputData>
+ <dmn:inputData id="_A69350B8-C033-4625-ACDD-BE3372DDA3A5" name="temperature">
+ <dmn:extensionElements/>
+ <dmn:variable id="_695F2636-2215-4D9C-B5CF-82A5EF087242"
name="temperature" typeRef="number"/>
+ </dmn:inputData>
+ <dmn:decision id="_0699341C-A1BE-4B6D-B8D5-3972D67FCA45" name="habitability">
+ <dmn:extensionElements/>
+ <dmn:variable id="_5220852F-82F7-4796-B8DE-9F449B6CC816"
name="habitability" typeRef="string"/>
+ <dmn:informationRequirement id="_A107332C-69A6-4645-945A-A96FA2D651B0">
+ <dmn:requiredInput href="#_A69350B8-C033-4625-ACDD-BE3372DDA3A5"/>
+ </dmn:informationRequirement>
+ <dmn:informationRequirement id="_787EB027-AB8A-4438-B731-D968F4CF79E5">
+ <dmn:requiredInput href="#_91C73E47-B022-445F-8EB8-03C9D151ADAF"/>
+ </dmn:informationRequirement>
+ <dmn:decisionTable id="_C5BB119B-AACF-401F-AF09-5BD330238822"
hitPolicy="FIRST" preferredOrientation="Rule-as-Row">
+ <dmn:input id="_90FF4BF1-1EFA-4FC2-AB19-75E762FD6A73">
+ <dmn:inputExpression id="_9000F1E8-9B5B-47D2-B2A7-D61598581B5D"
typeRef="number">
+ <dmn:text>oxygene</dmn:text>
+ </dmn:inputExpression>
+ </dmn:input>
+ <dmn:input id="_134AA7DE-CECC-4A11-BFC4-8C12A87257C6">
+ <dmn:inputExpression id="_9CD36547-D37A-4138-8CFA-42E6B7C09645"
typeRef="number">
+ <dmn:text>temperature</dmn:text>
+ </dmn:inputExpression>
+ </dmn:input>
+ <dmn:output id="_E8EED071-672A-4177-BE50-9FC1CC8AED19"/>
+ <dmn:annotation name="annotation-1"/>
+ <dmn:rule id="_F935B705-FDF8-4334-8130-26A9A5635ECA">
+ <dmn:inputEntry id="_7C9B42E8-87B7-4230-B3D9-14A564ADD00A">
+ <dmn:text>[10..100]</dmn:text>
+ </dmn:inputEntry>
+ <dmn:inputEntry id="_3F897307-6E62-41E5-B841-F986DDE00A20">
+ <dmn:text>< 40</dmn:text>
+ </dmn:inputEntry>
+ <dmn:outputEntry id="_EAB5858C-200C-4468-B5C2-D082B2E21028">
+ <dmn:text>"somehow doable"</dmn:text>
+ </dmn:outputEntry>
+ <dmn:annotationEntry>
+ <dmn:text/>
+ </dmn:annotationEntry>
+ </dmn:rule>
+ <dmn:rule id="_2A61D35A-722E-4EF0-8B3C-0ACB22EF7BBF">
+ <dmn:inputEntry id="_53C1F87C-9778-468F-ABB8-D09567F7A24E">
+ <dmn:text><10</dmn:text>
+ </dmn:inputEntry>
+ <dmn:inputEntry id="_8107798C-00D3-4F11-BDF0-9D509E3904E8">
+ <dmn:text>< 40</dmn:text>
+ </dmn:inputEntry>
+ <dmn:outputEntry id="_570C9F94-13FD-4F98-90B0-3971173AA21D">
+ <dmn:text>"hardly doable"</dmn:text>
+ </dmn:outputEntry>
+ <dmn:annotationEntry>
+ <dmn:text/>
+ </dmn:annotationEntry>
+ </dmn:rule>
+ <dmn:rule id="_97632101-3E19-4BEF-B511-6E9523A48636">
+ <dmn:inputEntry id="_3110AE37-454D-4D46-BE90-EB9EBBDA32C9">
+ <dmn:text>-</dmn:text>
+ </dmn:inputEntry>
+ <dmn:inputEntry id="_C109EE05-38D4-468D-BB5C-73BC72BBB0CB">
+ <dmn:text>>= 40</dmn:text>
+ </dmn:inputEntry>
+ <dmn:outputEntry id="_6764C731-E4D0-41FF-B432-F9A8FACB6E1C">
+ <dmn:text>"too hot"</dmn:text>
+ </dmn:outputEntry>
+ <dmn:annotationEntry>
+ <dmn:text/>
+ </dmn:annotationEntry>
+ </dmn:rule>
+ </dmn:decisionTable>
+ </dmn:decision>
+ <dmndi:DMNDI>
+ <dmndi:DMNDiagram id="_E7C6ED6C-30FF-428D-BBB3-29D7098060DF" name="DRG">
+ <di:extension>
+ <kie:ComponentsWidthsExtension>
+ <kie:ComponentWidths
dmnElementRef="_C5BB119B-AACF-401F-AF09-5BD330238822">
+ <kie:width>50</kie:width>
+ </kie:ComponentWidths>
+ </kie:ComponentsWidthsExtension>
+ </di:extension>
+ <dmndi:DMNShape id="dmnshape-drg-_91C73E47-B022-445F-8EB8-03C9D151ADAF"
dmnElementRef="_91C73E47-B022-445F-8EB8-03C9D151ADAF" isCollapsed="false">
+ <dmndi:DMNStyle>
+ <dmndi:FillColor red="255" green="255" blue="255"/>
+ <dmndi:StrokeColor red="0" green="0" blue="0"/>
+ <dmndi:FontColor red="0" green="0" blue="0"/>
+ </dmndi:DMNStyle>
+ <dc:Bounds x="82" y="96" width="100" height="50"/>
+ <dmndi:DMNLabel/>
+ </dmndi:DMNShape>
+ <dmndi:DMNShape id="dmnshape-drg-_A69350B8-C033-4625-ACDD-BE3372DDA3A5"
dmnElementRef="_A69350B8-C033-4625-ACDD-BE3372DDA3A5" isCollapsed="false">
+ <dmndi:DMNStyle>
+ <dmndi:FillColor red="255" green="255" blue="255"/>
+ <dmndi:StrokeColor red="0" green="0" blue="0"/>
+ <dmndi:FontColor red="0" green="0" blue="0"/>
+ </dmndi:DMNStyle>
+ <dc:Bounds x="98" y="231" width="100" height="50"/>
+ <dmndi:DMNLabel/>
+ </dmndi:DMNShape>
+ <dmndi:DMNShape id="dmnshape-drg-_0699341C-A1BE-4B6D-B8D5-3972D67FCA45"
dmnElementRef="_0699341C-A1BE-4B6D-B8D5-3972D67FCA45" isCollapsed="false">
+ <dmndi:DMNStyle>
+ <dmndi:FillColor red="255" green="255" blue="255"/>
+ <dmndi:StrokeColor red="0" green="0" blue="0"/>
+ <dmndi:FontColor red="0" green="0" blue="0"/>
+ </dmndi:DMNStyle>
+ <dc:Bounds x="429" y="155" width="100" height="50"/>
+ <dmndi:DMNLabel/>
+ </dmndi:DMNShape>
+ <dmndi:DMNEdge
id="dmnedge-drg-_A107332C-69A6-4645-945A-A96FA2D651B0-AUTO-SOURCE-AUTO-TARGET"
dmnElementRef="_A107332C-69A6-4645-945A-A96FA2D651B0">
+ <di:waypoint x="148" y="231"/>
+ <di:waypoint x="479" y="205"/>
+ </dmndi:DMNEdge>
+ <dmndi:DMNEdge
id="dmnedge-drg-_787EB027-AB8A-4438-B731-D968F4CF79E5-AUTO-TARGET"
dmnElementRef="_787EB027-AB8A-4438-B731-D968F4CF79E5">
+ <di:waypoint x="132" y="121"/>
+ <di:waypoint x="479" y="155"/>
+ </dmndi:DMNEdge>
+ </dmndi:DMNDiagram>
+ </dmndi:DMNDI>
+</dmn:definitions>
\ No newline at end of file
diff --git
a/kogito-quarkus-examples/dmn-multiple-models-quarkus-example/src/test/java/org/kie/kogito/dmn/quarkus/example/HabitabilityTest.java
b/kogito-quarkus-examples/dmn-multiple-models-quarkus-example/src/test/java/org/kie/kogito/dmn/quarkus/example/HabitabilityTest.java
new file mode 100644
index 000000000..17e2714dc
--- /dev/null
+++
b/kogito-quarkus-examples/dmn-multiple-models-quarkus-example/src/test/java/org/kie/kogito/dmn/quarkus/example/HabitabilityTest.java
@@ -0,0 +1,46 @@
+/*
+ * 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.
+ */
+package org.kie.kogito.dmn.quarkus.example;
+
+import org.junit.jupiter.api.Test;
+
+import io.quarkus.test.junit.QuarkusTest;
+import io.restassured.http.ContentType;
+
+import static io.restassured.RestAssured.given;
+import static org.hamcrest.Matchers.is;
+
+@QuarkusTest
+public class HabitabilityTest {
+
+ @Test
+ public void testEvaluateHabitability() {
+ given()
+ .body("{\n" +
+ " \"oxygene\": 70,\n" +
+ " \"temperature\": 30\n" +
+ "}")
+ .contentType(ContentType.JSON)
+ .when()
+ .post("/habitability")
+ .then()
+ .statusCode(200)
+ .body("'habitability'", is("somehow doable"));
+ }
+}
diff --git
a/kogito-quarkus-examples/dmn-multiple-models-quarkus-example/src/test/java/org/kie/kogito/dmn/quarkus/example/NativeHabitabilityIT.java
b/kogito-quarkus-examples/dmn-multiple-models-quarkus-example/src/test/java/org/kie/kogito/dmn/quarkus/example/NativeHabitabilityIT.java
new file mode 100644
index 000000000..6bc4f990d
--- /dev/null
+++
b/kogito-quarkus-examples/dmn-multiple-models-quarkus-example/src/test/java/org/kie/kogito/dmn/quarkus/example/NativeHabitabilityIT.java
@@ -0,0 +1,27 @@
+/*
+ * 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.
+ */
+package org.kie.kogito.dmn.quarkus.example;
+
+import io.quarkus.test.junit.QuarkusIntegrationTest;
+
+@QuarkusIntegrationTest
+public class NativeHabitabilityIT extends HabitabilityTest {
+
+ // Execute the same tests but in native mode.
+}
\ No newline at end of file
diff --git
a/kogito-quarkus-examples/dmn-multiple-models-quarkus-example/src/test/java/org/kie/kogito/dmn/quarkus/example/NativeTrafficViolationIT.java
b/kogito-quarkus-examples/dmn-multiple-models-quarkus-example/src/test/java/org/kie/kogito/dmn/quarkus/example/NativeTrafficViolationIT.java
new file mode 100644
index 000000000..b43c7dca8
--- /dev/null
+++
b/kogito-quarkus-examples/dmn-multiple-models-quarkus-example/src/test/java/org/kie/kogito/dmn/quarkus/example/NativeTrafficViolationIT.java
@@ -0,0 +1,27 @@
+/*
+ * 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.
+ */
+package org.kie.kogito.dmn.quarkus.example;
+
+import io.quarkus.test.junit.QuarkusIntegrationTest;
+
+@QuarkusIntegrationTest
+public class NativeTrafficViolationIT extends TrafficViolationTest {
+
+ // Execute the same tests but in native mode.
+}
\ No newline at end of file
diff --git
a/kogito-quarkus-examples/dmn-multiple-models-quarkus-example/src/test/java/org/kie/kogito/dmn/quarkus/example/TrafficViolationTest.java
b/kogito-quarkus-examples/dmn-multiple-models-quarkus-example/src/test/java/org/kie/kogito/dmn/quarkus/example/TrafficViolationTest.java
new file mode 100644
index 000000000..3c42782c7
--- /dev/null
+++
b/kogito-quarkus-examples/dmn-multiple-models-quarkus-example/src/test/java/org/kie/kogito/dmn/quarkus/example/TrafficViolationTest.java
@@ -0,0 +1,52 @@
+/*
+ * 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.
+ */
+package org.kie.kogito.dmn.quarkus.example;
+
+import org.junit.jupiter.api.Test;
+
+import io.quarkus.test.junit.QuarkusTest;
+import io.restassured.http.ContentType;
+
+import static io.restassured.RestAssured.given;
+import static org.hamcrest.Matchers.is;
+
+@QuarkusTest
+public class TrafficViolationTest {
+
+ @Test
+ public void testEvaluateTrafficViolation() {
+ given()
+ .body("{\n" +
+ " \"Driver\": {\n" +
+ " \"Points\": 2\n" +
+ " },\n" +
+ " \"Violation\": {\n" +
+ " \"Type\": \"speed\",\n" +
+ " \"Actual Speed\": 120,\n" +
+ " \"Speed Limit\": 100\n" +
+ " }\n" +
+ "}")
+ .contentType(ContentType.JSON)
+ .when()
+ .post("/Traffic Violation")
+ .then()
+ .statusCode(200)
+ .body("'Should the driver be suspended?'", is("No"));
+ }
+}
diff --git
a/kogito-quarkus-examples/dmn-multiple-models-quarkus-example/src/test/java/testscenario/KogitoScenarioJunitActivatorTest.java
b/kogito-quarkus-examples/dmn-multiple-models-quarkus-example/src/test/java/testscenario/KogitoScenarioJunitActivatorTest.java
new file mode 100644
index 000000000..4b19a1201
--- /dev/null
+++
b/kogito-quarkus-examples/dmn-multiple-models-quarkus-example/src/test/java/testscenario/KogitoScenarioJunitActivatorTest.java
@@ -0,0 +1,29 @@
+/*
+ * 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.
+ */
+package testscenario;
+
+/**
+ * KogitoJunitActivator is a custom JUnit runner that enables the execution of
Test Scenario files (*.scesim).
+ * This activator class, when executed, will load all scesim files available
in the project and run them.
+ * Each row of the scenario will generate a test JUnit result.
+ */
[email protected](org.kogito.scenariosimulation.runner.KogitoJunitActivator.class)
+public class KogitoScenarioJunitActivatorTest {
+
+}
\ No newline at end of file
diff --git
a/kogito-quarkus-examples/dmn-multiple-models-quarkus-example/src/test/resources/TrafficViolationTest.scesim
b/kogito-quarkus-examples/dmn-multiple-models-quarkus-example/src/test/resources/TrafficViolationTest.scesim
new file mode 100644
index 000000000..ff5d6a2b3
--- /dev/null
+++
b/kogito-quarkus-examples/dmn-multiple-models-quarkus-example/src/test/resources/TrafficViolationTest.scesim
@@ -0,0 +1,766 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ScenarioSimulationModel version="1.8">
+ <simulation>
+ <scesimModelDescriptor>
+ <factMappings>
+ <FactMapping>
+ <expressionElements/>
+ <expressionIdentifier>
+ <name>Index</name>
+ <type>OTHER</type>
+ </expressionIdentifier>
+ <factIdentifier>
+ <name>#</name>
+ <className>java.lang.Integer</className>
+ </factIdentifier>
+ <className>java.lang.Integer</className>
+ <factAlias>#</factAlias>
+ <columnWidth>70</columnWidth>
+ <factMappingValueType>NOT_EXPRESSION</factMappingValueType>
+ </FactMapping>
+ <FactMapping>
+ <expressionElements/>
+ <expressionIdentifier>
+ <name>Description</name>
+ <type>OTHER</type>
+ </expressionIdentifier>
+ <factIdentifier>
+ <name>Scenario description</name>
+ <className>java.lang.String</className>
+ </factIdentifier>
+ <className>java.lang.String</className>
+ <factAlias>Scenario description</factAlias>
+ <columnWidth>300</columnWidth>
+ <factMappingValueType>NOT_EXPRESSION</factMappingValueType>
+ </FactMapping>
+ <FactMapping>
+ <expressionElements>
+ <ExpressionElement>
+ <step>Driver</step>
+ </ExpressionElement>
+ <ExpressionElement>
+ <step>Points</step>
+ </ExpressionElement>
+ </expressionElements>
+ <expressionIdentifier>
+ <name>1|5</name>
+ <type>GIVEN</type>
+ </expressionIdentifier>
+ <factIdentifier>
+ <name>Driver</name>
+ <className>Driver</className>
+ </factIdentifier>
+ <className>number</className>
+ <factAlias>Driver</factAlias>
+ <expressionAlias>Points</expressionAlias>
+ <genericTypes/>
+ <columnWidth>114</columnWidth>
+ <factMappingValueType>NOT_EXPRESSION</factMappingValueType>
+ </FactMapping>
+ <FactMapping>
+ <expressionElements>
+ <ExpressionElement>
+ <step>Violation</step>
+ </ExpressionElement>
+ <ExpressionElement>
+ <step>Type</step>
+ </ExpressionElement>
+ </expressionElements>
+ <expressionIdentifier>
+ <name>1|8</name>
+ <type>GIVEN</type>
+ </expressionIdentifier>
+ <factIdentifier>
+ <name>Violation</name>
+ <className>Violation</className>
+ </factIdentifier>
+ <className>Type</className>
+ <factAlias>Violation</factAlias>
+ <expressionAlias>Type</expressionAlias>
+ <genericTypes/>
+ <columnWidth>114</columnWidth>
+ <factMappingValueType>NOT_EXPRESSION</factMappingValueType>
+ </FactMapping>
+ <FactMapping>
+ <expressionElements>
+ <ExpressionElement>
+ <step>Violation</step>
+ </ExpressionElement>
+ <ExpressionElement>
+ <step>Speed Limit</step>
+ </ExpressionElement>
+ </expressionElements>
+ <expressionIdentifier>
+ <name>1|9</name>
+ <type>GIVEN</type>
+ </expressionIdentifier>
+ <factIdentifier>
+ <name>Violation</name>
+ <className>Violation</className>
+ </factIdentifier>
+ <className>number</className>
+ <factAlias>Violation</factAlias>
+ <expressionAlias>Speed Limit</expressionAlias>
+ <genericTypes/>
+ <columnWidth>114</columnWidth>
+ <factMappingValueType>NOT_EXPRESSION</factMappingValueType>
+ </FactMapping>
+ <FactMapping>
+ <expressionElements>
+ <ExpressionElement>
+ <step>Violation</step>
+ </ExpressionElement>
+ <ExpressionElement>
+ <step>Actual Speed</step>
+ </ExpressionElement>
+ </expressionElements>
+ <expressionIdentifier>
+ <name>1|10</name>
+ <type>GIVEN</type>
+ </expressionIdentifier>
+ <factIdentifier>
+ <name>Violation</name>
+ <className>Violation</className>
+ </factIdentifier>
+ <className>number</className>
+ <factAlias>Violation</factAlias>
+ <expressionAlias>Actual Speed</expressionAlias>
+ <genericTypes/>
+ <columnWidth>114</columnWidth>
+ <factMappingValueType>NOT_EXPRESSION</factMappingValueType>
+ </FactMapping>
+ <FactMapping>
+ <expressionElements>
+ <ExpressionElement>
+ <step>Fine</step>
+ </ExpressionElement>
+ <ExpressionElement>
+ <step>Amount</step>
+ </ExpressionElement>
+ </expressionElements>
+ <expressionIdentifier>
+ <name>1|11</name>
+ <type>EXPECT</type>
+ </expressionIdentifier>
+ <factIdentifier>
+ <name>Fine</name>
+ <className>Fine</className>
+ </factIdentifier>
+ <className>number</className>
+ <factAlias>Fine</factAlias>
+ <expressionAlias>Amount</expressionAlias>
+ <genericTypes/>
+ <columnWidth>114</columnWidth>
+ <factMappingValueType>NOT_EXPRESSION</factMappingValueType>
+ </FactMapping>
+ <FactMapping>
+ <expressionElements>
+ <ExpressionElement>
+ <step>Fine</step>
+ </ExpressionElement>
+ <ExpressionElement>
+ <step>Points</step>
+ </ExpressionElement>
+ </expressionElements>
+ <expressionIdentifier>
+ <name>1|12</name>
+ <type>EXPECT</type>
+ </expressionIdentifier>
+ <factIdentifier>
+ <name>Fine</name>
+ <className>Fine</className>
+ </factIdentifier>
+ <className>number</className>
+ <factAlias>Fine</factAlias>
+ <expressionAlias>Points</expressionAlias>
+ <genericTypes/>
+ <columnWidth>114</columnWidth>
+ <factMappingValueType>NOT_EXPRESSION</factMappingValueType>
+ </FactMapping>
+ <FactMapping>
+ <expressionElements>
+ <ExpressionElement>
+ <step>Should the driver be suspended?</step>
+ </ExpressionElement>
+ </expressionElements>
+ <expressionIdentifier>
+ <name>1|13</name>
+ <type>EXPECT</type>
+ </expressionIdentifier>
+ <factIdentifier>
+ <name>Should the driver be suspended?</name>
+ <className>Should the driver be suspended?</className>
+ </factIdentifier>
+ <className>string</className>
+ <factAlias>Should the driver be suspended?</factAlias>
+ <expressionAlias>value</expressionAlias>
+ <genericTypes/>
+ <columnWidth>114</columnWidth>
+ <factMappingValueType>NOT_EXPRESSION</factMappingValueType>
+ </FactMapping>
+ </factMappings>
+ </scesimModelDescriptor>
+ <scesimData>
+ <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">Above speed limit: 10km/h and 30
km/h</rawValue>
+ </FactMappingValue>
+ <FactMappingValue>
+ <factIdentifier>
+ <name>Driver</name>
+ <className>Driver</className>
+ </factIdentifier>
+ <expressionIdentifier>
+ <name>1|5</name>
+ <type>GIVEN</type>
+ </expressionIdentifier>
+ <rawValue class="string">10</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">120</rawValue>
+ </FactMappingValue>
+ <FactMappingValue>
+ <factIdentifier>
+ <name>Fine</name>
+ <className>Fine</className>
+ </factIdentifier>
+ <expressionIdentifier>
+ <name>1|11</name>
+ <type>EXPECT</type>
+ </expressionIdentifier>
+ <rawValue class="string">500</rawValue>
+ </FactMappingValue>
+ <FactMappingValue>
+ <factIdentifier>
+ <name>Fine</name>
+ <className>Fine</className>
+ </factIdentifier>
+ <expressionIdentifier>
+ <name>1|12</name>
+ <type>EXPECT</type>
+ </expressionIdentifier>
+ <rawValue class="string">3</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>
+ <expressionIdentifier>
+ <name>Index</name>
+ <type>OTHER</type>
+ </expressionIdentifier>
+ <rawValue class="string">1</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">Above speed limit: more than 30
km/h</rawValue>
+ </FactMappingValue>
+ <FactMappingValue>
+ <factIdentifier>
+ <name>Driver</name>
+ <className>Driver</className>
+ </factIdentifier>
+ <expressionIdentifier>
+ <name>1|5</name>
+ <type>GIVEN</type>
+ </expressionIdentifier>
+ <rawValue class="string">10</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">150</rawValue>
+ </FactMappingValue>
+ <FactMappingValue>
+ <factIdentifier>
+ <name>Fine</name>
+ <className>Fine</className>
+ </factIdentifier>
+ <expressionIdentifier>
+ <name>1|11</name>
+ <type>EXPECT</type>
+ </expressionIdentifier>
+ <rawValue class="string">1000</rawValue>
+ </FactMappingValue>
+ <FactMappingValue>
+ <factIdentifier>
+ <name>Fine</name>
+ <className>Fine</className>
+ </factIdentifier>
+ <expressionIdentifier>
+ <name>1|12</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>
+ <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>
+ <expressionIdentifier>
+ <name>Index</name>
+ <type>OTHER</type>
+ </expressionIdentifier>
+ <rawValue class="string">2</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">Parking violation</rawValue>
+ </FactMappingValue>
+ <FactMappingValue>
+ <factIdentifier>
+ <name>Driver</name>
+ <className>Driver</className>
+ </factIdentifier>
+ <expressionIdentifier>
+ <name>1|5</name>
+ <type>GIVEN</type>
+ </expressionIdentifier>
+ <rawValue class="string">10</rawValue>
+ </FactMappingValue>
+ <FactMappingValue>
+ <factIdentifier>
+ <name>Violation</name>
+ <className>Violation</className>
+ </factIdentifier>
+ <expressionIdentifier>
+ <name>1|8</name>
+ <type>GIVEN</type>
+ </expressionIdentifier>
+ <rawValue class="string">"parking"</rawValue>
+ </FactMappingValue>
+ <FactMappingValue>
+ <factIdentifier>
+ <name>Violation</name>
+ <className>Violation</className>
+ </factIdentifier>
+ <expressionIdentifier>
+ <name>1|9</name>
+ <type>GIVEN</type>
+ </expressionIdentifier>
+ </FactMappingValue>
+ <FactMappingValue>
+ <factIdentifier>
+ <name>Violation</name>
+ <className>Violation</className>
+ </factIdentifier>
+ <expressionIdentifier>
+ <name>1|10</name>
+ <type>GIVEN</type>
+ </expressionIdentifier>
+ </FactMappingValue>
+ <FactMappingValue>
+ <factIdentifier>
+ <name>Fine</name>
+ <className>Fine</className>
+ </factIdentifier>
+ <expressionIdentifier>
+ <name>1|11</name>
+ <type>EXPECT</type>
+ </expressionIdentifier>
+ <rawValue class="string">100</rawValue>
+ </FactMappingValue>
+ <FactMappingValue>
+ <factIdentifier>
+ <name>Fine</name>
+ <className>Fine</className>
+ </factIdentifier>
+ <expressionIdentifier>
+ <name>1|12</name>
+ <type>EXPECT</type>
+ </expressionIdentifier>
+ <rawValue class="string">1</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>
+ <expressionIdentifier>
+ <name>Index</name>
+ <type>OTHER</type>
+ </expressionIdentifier>
+ <rawValue class="string">3</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">DUI violation</rawValue>
+ </FactMappingValue>
+ <FactMappingValue>
+ <factIdentifier>
+ <name>Driver</name>
+ <className>Driver</className>
+ </factIdentifier>
+ <expressionIdentifier>
+ <name>1|5</name>
+ <type>GIVEN</type>
+ </expressionIdentifier>
+ <rawValue class="string">10</rawValue>
+ </FactMappingValue>
+ <FactMappingValue>
+ <factIdentifier>
+ <name>Violation</name>
+ <className>Violation</className>
+ </factIdentifier>
+ <expressionIdentifier>
+ <name>1|8</name>
+ <type>GIVEN</type>
+ </expressionIdentifier>
+ <rawValue class="string">"driving under the influence"</rawValue>
+ </FactMappingValue>
+ <FactMappingValue>
+ <factIdentifier>
+ <name>Violation</name>
+ <className>Violation</className>
+ </factIdentifier>
+ <expressionIdentifier>
+ <name>1|9</name>
+ <type>GIVEN</type>
+ </expressionIdentifier>
+ </FactMappingValue>
+ <FactMappingValue>
+ <factIdentifier>
+ <name>Violation</name>
+ <className>Violation</className>
+ </factIdentifier>
+ <expressionIdentifier>
+ <name>1|10</name>
+ <type>GIVEN</type>
+ </expressionIdentifier>
+ </FactMappingValue>
+ <FactMappingValue>
+ <factIdentifier>
+ <name>Fine</name>
+ <className>Fine</className>
+ </factIdentifier>
+ <expressionIdentifier>
+ <name>1|11</name>
+ <type>EXPECT</type>
+ </expressionIdentifier>
+ <rawValue class="string">1000</rawValue>
+ </FactMappingValue>
+ <FactMappingValue>
+ <factIdentifier>
+ <name>Fine</name>
+ <className>Fine</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>
+ <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>
+ <type>EXPECT</type>
+ </expressionIdentifier>
+ <rawValue class="string">1000</rawValue>
+ </FactMappingValue>
+ <FactMappingValue>
+ <factIdentifier>
+ <name>Fine</name>
+ <className>Fine</className>
+ </factIdentifier>
+ <expressionIdentifier>
+ <name>1|12</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>
+ <expressionIdentifier>
+ <name>1|13</name>
+ <type>EXPECT</type>
+ </expressionIdentifier>
+ <rawValue class="string">"Yes"</rawValue>
+ </FactMappingValue>
+ <FactMappingValue>
+ <factIdentifier>
+ <name>#</name>
+ <className>java.lang.Integer</className>
+ </factIdentifier>
+ <expressionIdentifier>
+ <name>Index</name>
+ <type>OTHER</type>
+ </expressionIdentifier>
+ <rawValue class="string">5</rawValue>
+ </FactMappingValue>
+ </factMappingValues>
+ </Scenario>
+ </scesimData>
+ </simulation>
+ <background>
+ <scesimModelDescriptor>
+ <factMappings>
+ <FactMapping>
+ <expressionElements/>
+ <expressionIdentifier>
+ <name>1|1</name>
+ <type>GIVEN</type>
+ </expressionIdentifier>
+ <factIdentifier>
+ <name>Empty</name>
+ <className>java.lang.Void</className>
+ </factIdentifier>
+ <className>java.lang.Void</className>
+ <factAlias>INSTANCE 1</factAlias>
+ <expressionAlias>PROPERTY 1</expressionAlias>
+ <columnWidth>114</columnWidth>
+ <factMappingValueType>NOT_EXPRESSION</factMappingValueType>
+ </FactMapping>
+ </factMappings>
+ </scesimModelDescriptor>
+ <scesimData>
+ <BackgroundData>
+ <factMappingValues>
+ <FactMappingValue>
+ <factIdentifier>
+ <name>Empty</name>
+ <className>java.lang.Void</className>
+ </factIdentifier>
+ <expressionIdentifier>
+ <name>1|1</name>
+ <type>GIVEN</type>
+ </expressionIdentifier>
+ </FactMappingValue>
+ </factMappingValues>
+ </BackgroundData>
+ </scesimData>
+ </background>
+ <settings>
+ <dmnFilePath>src/main/resources/Traffic Violation.dmn</dmnFilePath>
+ <type>DMN</type>
+
<dmnNamespace>https://github.com/kiegroup/drools/kie-dmn/_A4BCA8B8-CF08-433F-93B2-A2598F19ECFF</dmnNamespace>
+ <dmnName>Traffic Violation</dmnName>
+ <skipFromBuild>false</skipFromBuild>
+ <stateless>false</stateless>
+ </settings>
+ <imports>
+ <imports/>
+ </imports>
+</ScenarioSimulationModel>
\ No newline at end of file
diff --git
a/kogito-quarkus-examples/dmn-multiple-models-quarkus-example/src/test/resources/application.properties
b/kogito-quarkus-examples/dmn-multiple-models-quarkus-example/src/test/resources/application.properties
new file mode 100644
index 000000000..a047ea13b
--- /dev/null
+++
b/kogito-quarkus-examples/dmn-multiple-models-quarkus-example/src/test/resources/application.properties
@@ -0,0 +1,21 @@
+#
+# 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.
+#
+
+# Quarkus
+quarkus.http.test-port=0
\ No newline at end of file
diff --git a/kogito-quarkus-examples/pom.xml b/kogito-quarkus-examples/pom.xml
index 67e4b8a8d..6e68947c4 100644
--- a/kogito-quarkus-examples/pom.xml
+++ b/kogito-quarkus-examples/pom.xml
@@ -58,6 +58,7 @@
<module>dmn-listener-dtable</module>
<module>dmn-pmml-quarkus-example</module>
<module>dmn-quarkus-example</module>
+ <module>dmn-multiple-models-quarkus-example</module>
<module>dmn-tracing-quarkus</module>
<module>flexible-process-quarkus</module>
<module>kogito-travel-agency</module>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]