This is an automated email from the ASF dual-hosted git repository.

porcelli 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 5904656d6 [incubator-kie-issues#1220] Quarkus example to showcase PIM 
functionality (#1979)
5904656d6 is described below

commit 5904656d6d3ee3db35503407a0961cd9cdc15229
Author: Martin Weiler <[email protected]>
AuthorDate: Tue Jul 30 07:28:07 2024 -0600

    [incubator-kie-issues#1220] Quarkus example to showcase PIM functionality 
(#1979)
    
    * [incubator-kie-issues#1220] Quarkus example to showcase PIM functionality
    
    * Align example with compact architecture setup
---
 .../process-instance-migration-quarkus/README.md   | 286 +++++++++++++++++++++
 .../docker-compose/.gitignore                      |   3 +
 .../docker-compose/README.md                       |  47 ++++
 .../docker-compose/docker-compose.yml              |  64 +++++
 .../docker-compose/pgadmin/pgpass                  |   3 +
 .../docker-compose/pgadmin/servers.json            |  14 +
 .../docker-compose/sql/init.sql                    |  22 ++
 .../docker-compose/startServices.sh                |  40 +++
 .../docs/images/addedtask.png                      | Bin 0 -> 46793 bytes
 .../docs/images/modified.png                       | Bin 0 -> 49922 bytes
 .../docs/images/simple.png                         | Bin 0 -> 44017 bytes
 .../process-instance-migration-quarkus/pom.xml     | 220 ++++++++++++++++
 .../migration-plan/addedtask_migration.mpf         |  19 ++
 .../src/main/resources/addedtask.bpmn              | 226 ++++++++++++++++
 .../src/main/resources/application.properties      |  49 ++++
 .../src/main/resources/modified.bpmn               | 187 ++++++++++++++
 .../src/main/resources/simple.bpmn                 | 155 +++++++++++
 17 files changed, 1335 insertions(+)

diff --git 
a/kogito-quarkus-examples/process-instance-migration-quarkus/README.md 
b/kogito-quarkus-examples/process-instance-migration-quarkus/README.md
new file mode 100644
index 000000000..9f12a1b6a
--- /dev/null
+++ b/kogito-quarkus-examples/process-instance-migration-quarkus/README.md
@@ -0,0 +1,286 @@
+# Process Instance Migration (PIM) example
+
+## Description
+
+This example showcases the Process Instance Migration (PIM) functionality. 
This feature can be used to migrate
+active process instances from one process definition (v1) to another (v2).
+
+This example is using the *Compact Architecture* that is based on simplified 
communication among the different
+*Kogito* services without the need of events (Kafka/HTTP) between them. Note 
that this design choice is unrelated
+to the Process Instance Migration functionality.
+
+## The test processes
+
+### The original BPMN Process
+
+<div style="text-align:center">
+   <figure>
+      <img width=75%  src="docs/images/simple.png" alt="Simple Process 
Diagram">
+      <figcaption>Simple Process Diagram</figcaption>
+   </figure>
+</div>
+
+The process follows a very basic design with two script tasks and a catching 
signal event in between to act as a wait state.
+
+<div style="text-align:center">
+   <figure>
+      <img width=75%  src="docs/images/modified.png" alt="Modified Process 
Diagram">
+      <figcaption>Modified Process Diagram</figcaption>
+   </figure>
+</div>
+
+The modified version of this simple process has own additional script task 
**after** the wait state.
+
+
+## Running the example
+### Prerequisites
+
+* Java 17+ installed
+* Environment variable JAVA_HOME set accordingly
+* Maven 3.9.3+ installed
+* Docker and Docker Compose to run the required example infrastructure.
+
+And when using native image compilation, you will also need:
+- GraalVM 20.3+ installed
+- Environment variable GRAALVM_HOME set accordingly
+- GraalVM native image needs as well native-image extension: 
https://www.graalvm.org/reference-manual/native-image/
+- Note that GraalVM native image compilation typically requires other packages 
(glibc-devel, zlib-devel and gcc) to be installed too, please refer to GraalVM 
installation documentation for more details.
+
+### Infrastructure Services
+
+This quickstart provides a docker compose template that starts all the 
required services. This setup ensures that all services are connected with a 
default configuration.
+
+- PostgreSQL: 5432
+- PgAdmin: 8055
+- Kogito Process Instance Migration Service: 8080
+
+To help bootstraping the Infrastructure Services, the example provides the 
`startServices.sh` script inside the *docker-compose* 
+folder.
+
+> **_NOTE_**: the docker compose template requires using _extra_hosts_ to 
allow the services use the host network, this may 
+> carry some issues if you are using a **podman** version older than **4.7**.
+
+### Building & Running the example
+
+To build the example, on a Terminal, run the following command:
+```shell
+mvn clean package -Pcontainer
+```
+This will build the example quarkus application and create a Docker image that 
will be started in the `docker-compose` template.
+
+To execute the full example (including consoles), open a Terminal and run the 
following command inside the `docker-compose` folder:
+
+```shell
+sh startServices.sh 
+```
+
+Additionally, if you want to start only the example and the minimal 
Infrastructure Services (PostgreSQL, Data-Index and Jobs Service), 
+you can run the same `startServices.sh` script but passing the `example` 
argument 
+
+```shell
+sh startServices.sh example
+```
+
+> **_NOTE:_**  starting the Infrastructure Services, please consider running a 
```mvn clean package -Pcontainer```
+> command on the project root before running the ```startServices.sh``` script 
for the first time or any time you modify the project.
+
+### Running the example in Development mode
+
+To run the example in Development mode, just run the following command in a 
Terminal:
+
+```shell
+mvn clean package quarkus:dev -Pdevelopment
+```
+
+The Development Mode will embed all the needed Infrastructure Services 
(PostgreSQL, Data-Index & Jobs Service) and won't 
+require any extra step.
+
+The `development` profile includes the **Runtime Tools Quarkus Extension** 
that exposes a new section in the **Quarkus Dev-UI** 
+unifying the **Management Console** & **Task Console** functionalities. 
**Quarkus Dev-UI** is available at http://localhost:8080/q/dev
+
+> **_NOTE:_**  For more information about how to work with Kogito Runtime 
Tools Quarkus Extension, please refer to the [Kogito 
Documentation](https://docs.kogito.kie.org/latest/html_single/#con-runtime-tools-dev-ui_kogito-developing-process-services)
 page.
+
+### Executing an instance of the Simple Process
+
+Once the service is up and running you can start an instance of the **Simple** 
process by a sending request to `http://localhost:8080/simple`.
+
+
+In a Terminal you can execute this curl command to start a **Simple** process:
+```bash
+curl -H "Content-Type: application/json" -H "Accept: application/json" -X POST 
http://localhost:8080/simple -d '{}'
+```
+
+If everything went well you may get a response like:
+```json
+{
+  "id": "b97efe7d-dc9b-4da8-8b3e-6100f8d8b045"
+}
+```
+
+In the console of the example container you should see the following log 
message:
+```
+Started process e4bf4948-1f56-4ee3-9f2c-5010aaf50701 [simple, v1.0]
+```
+
+To finish this process instance, execute the following command, using the 
process instance id previously returned, to send a signal:
+```bash
+curl -H "Content-Type: application/json" -H "Accept: application/json" -X POST 
http://localhost:8080/simple/e4bf4948-1f56-4ee3-9f2c-5010aaf50701/continue -d 
'{}'
+```
+
+In the console of the example container you should see the following log 
message:
+```
+Ending process e4bf4948-1f56-4ee3-9f2c-5010aaf50701 [simple, v1.0]
+```
+
+### Using PIM to migrate a process instance from the Simple Process to the 
Modified Process
+
+In a Terminal, start another instance of the **Simple** process:
+```bash
+curl -H "Content-Type: application/json" -H "Accept: application/json" -X POST 
http://localhost:8080/simple -d '{}'
+```
+
+Note the new process instance id that is returned by the engine:
+```json
+{
+  "id": "2a507f63-9db1-4d15-b64c-9e14f922d470"
+}
+```
+
+Using the Management API, the following two endpoints can be used to migrate 
active process instances:
+* `/management/processes/{processId}/migrate`: Use this endpoint to migrate 
**all** active process instances of a given `processId` to a new target process 
definition
+* `/management/processes/{processId}/instances/{processInstanceId}/migrate`: 
Use this endpoint to migrate a specific process instance of a given `processId` 
to a new target process definition
+
+In a Terminal, invoke the Management API to migrate the newly created process 
instance:
+```bash
+curl -H "Content-Type: application/json" -H "Accept: application/json" -X POST 
http://localhost:8080/management/processes/simple/migrate -d '{
+  "targetProcessId": "modified",
+  "targetProcessVersion": "1.0"
+}'
+```
+
+The response will contain information about the migration:
+```json
+{
+   "message":"All intances migrated",
+   "numberOfProcessInstanceMigrated":1
+}
+```
+
+Alternatively, use the following endpoint to migrate just a single process 
instance:
+```bash
+curl -H "Content-Type: application/json" -H "Accept: application/json" -X POST 
http://localhost:8080/management/processes/simple/instances/2a507f63-9db1-4d15-b64c-9e14f922d470/migrate
 -d '{
+  "targetProcessId": "modified",
+  "targetProcessVersion": "1.0"
+}'
+```
+
+
+Note that the invocation of the `migrate` endpoint is the first step of the 
PIM functionality. It flags the selected process instance(s) as migrated to the 
defined target process definition. The second step of the migration will happen 
the next time the process instance is unmarshalled. This would be the case when 
the process instance is triggered to continue its execution. If you want to 
test whether this unmarshalling step is successful after the migration, the 
following PUT call can b [...]
+```bash
+curl -H "Content-Type: application/json" -H "Accept: application/json" -X PUT 
http://localhost:8080/modified/2a507f63-9db1-4d15-b64c-9e14f922d470 -d '{}'
+```
+
+If successful, this call will just return the processInstanceId of the process 
instance.
+
+
+To finish this process instance, execute the following command, using the 
process instance id previously returned, to send a signal against the endpoint 
of the **Modified** process:
+```bash
+curl -H "Content-Type: application/json" -H "Accept: application/json" -X POST 
http://localhost:8080/modified/2a507f63-9db1-4d15-b64c-9e14f922d470/continue -d 
'{}'
+```
+
+In the console of the example container you should see the following log 
messages:
+```
+Executing added node
+Ending process 2a507f63-9db1-4d15-b64c-9e14f922d470 [modified, v1.0]
+```
+
+### Using PIM to migrate a process instance from the Simple Process to the 
Addedtask Process with a migration plan
+
+In the first migration example, the **Modified** process contained an added 
node after the current wait state. The wait state itself was unchanged in both 
process definitions, using the same internal node id. Therefore, no additional 
information had to be provided for the migration to be successful.
+
+Consider another modification of the original **Simple** process, this time 
adding a Human Task node **before** the Catching Signal Event:
+
+<div style="text-align:center">
+   <figure>
+      <img width=75%  src="docs/images/addedtask.png" alt="Addedtask Process 
Diagram">
+      <figcaption>Addedtask Process Diagram</figcaption>
+   </figure>
+</div>
+
+With this change, the BPMN representation has changed in a way that the 
Catching Signal Event now has a different nodeId:
+
+**[src/main/resources/simple.bpmn](src/main/resources/simple.bpmn)**
+```xml
+    <bpmn2:intermediateCatchEvent id="_8430CA7E-8CC6-4C2C-9664-6B5BBD5E36CB">
+```
+
+**[src/main/resources/addedtask.bpmn](src/main/resources/addedtask.bpmn)**
+```xml
+    <bpmn2:intermediateCatchEvent id="_1D65864A-96AF-44FC-92CE-2073B9FBA7D0">
+```
+
+In order to migrate process instances between process definitions with such 
changes, we need to provide a Migration Plan File (extension *.mpf). This file 
defines the migration plan with all required node mappings:
+
+**[src/main/resources/META-INF/migration-plan/addedtask_migration.mpf](src/main/resources/META-INF/migration-plan/addedtask_migration.mpf)**
+```json
+{
+    "name" : "simple to addedtask migration",
+    "processMigrationPlan" : {
+        "sourceProcessDefinition" : {
+            "processId" : "simple",
+            "processVersion" : "1.0"
+        },
+        "targetProcessDefinition" : {
+            "processId" : "addedtask",
+            "processVersion" : "1.0"
+        },
+        "nodeInstanceMigrationPlan" : [
+            {
+                "sourceNodeId" : "_8430CA7E-8CC6-4C2C-9664-6B5BBD5E36CB",
+                "targetNodeId" : "_1D65864A-96AF-44FC-92CE-2073B9FBA7D0"
+            }
+        ]
+    }
+}
+```
+
+Now that we have this migration plan deployed with our new process, we can 
test the Process Instance Migration with the same steps as before.
+
+In a Terminal, start another instance of the **Simple** process:
+```bash
+curl -H "Content-Type: application/json" -H "Accept: application/json" -X POST 
http://localhost:8080/simple -d '{}'
+```
+
+Note the new process instance id that is returned by the engine:
+```json
+{
+  "id": "29ec3980-9f0f-4b92-8a2d-394ffdb477e3"
+}
+```
+
+In a Terminal, invoke the Management API to migrate the newly created process 
instance:
+```bash
+curl -H "Content-Type: application/json" -H "Accept: application/json" -X POST 
http://localhost:8080/management/processes/simple/migrate -d '{
+  "targetProcessId": "addedtask",
+  "targetProcessVersion": "1.0"
+}'
+```
+
+The response will contain information about the migration:
+```json
+{
+   "message":"All intances migrated",
+   "numberOfProcessInstanceMigrated":1
+}
+```
+
+To finish this process instance, execute the following command, using the 
process instance id previously returned, to send a signal against the endpoint 
of the **Addedtask** process:
+```bash
+curl -H "Content-Type: application/json" -H "Accept: application/json" -X POST 
http://localhost:8080/addedtask/29ec3980-9f0f-4b92-8a2d-394ffdb477e3/continue 
-d '{}'
+```
+
+In the console of the example container you should see the following log 
messages:
+```
+Ending process 29ec3980-9f0f-4b92-8a2d-394ffdb477e3 [addedtask, v1.0]
+```
+
diff --git 
a/kogito-quarkus-examples/process-instance-migration-quarkus/docker-compose/.gitignore
 
b/kogito-quarkus-examples/process-instance-migration-quarkus/docker-compose/.gitignore
new file mode 100644
index 000000000..b6632dbda
--- /dev/null
+++ 
b/kogito-quarkus-examples/process-instance-migration-quarkus/docker-compose/.gitignore
@@ -0,0 +1,3 @@
+.env
+svg/
+persistence/
\ No newline at end of file
diff --git 
a/kogito-quarkus-examples/process-instance-migration-quarkus/docker-compose/README.md
 
b/kogito-quarkus-examples/process-instance-migration-quarkus/docker-compose/README.md
new file mode 100644
index 000000000..de3b95918
--- /dev/null
+++ 
b/kogito-quarkus-examples/process-instance-migration-quarkus/docker-compose/README.md
@@ -0,0 +1,47 @@
+# Kogito and Infrastructure services
+
+To allow a quick setup of all services required to run this demo, we provide a 
docker compose template that starts the following services:
+- Postgresql
+- PgAdmin
+- Kogito Process Instance Migration Service (Only available if the example has 
been compiled using the `container` mvn profile eg: ```mvn clean package 
-Pcontainer```)
+
+The docker compose template provides three profiles to enable starting only 
the set of services you want to use. The profiles are:
+- **infra**: Starts only the minimal infrastructure to run the example 
(Postgresql, pgadmin)
+- **example**: Starts the services in *infra* profile and the Kogito Example 
Service. Requires the example to be compiled using the `container` mvn profile 
eg: ```mvn clean package -Pcontainer```.
+
+> NOTE: In order to use it, please ensure you have Docker Compose installed on 
your machine, otherwise follow the instructions available
+in [here](https://docs.docker.com/compose/install/).
+
+## Starting the services
+
+Use the `startServices.sh` passing the docker profile you want to use as an 
argument. If no profile is provided the script will default to **full**.
+
+Eg:
+```shell
+sh startServices.sh example
+```
+
+Once the services are started (depending on the profile), the following ports 
will be assigned on your local machine:
+- Postgresql: 5432
+- PgAdmin: 8055
+- Kogito Process Instance Migration Service: 8080
+
+## Stopping and removing volume data
+
+To stop all services, simply run:
+
+```shell
+docker compose stop
+```
+or 
+
+```shell
+docker compose down 
+```
+to stop the services and remove the containers.
+
+For more details please check the Docker Compose documentation.
+
+```shell
+docker-compose --help
+```
diff --git 
a/kogito-quarkus-examples/process-instance-migration-quarkus/docker-compose/docker-compose.yml
 
b/kogito-quarkus-examples/process-instance-migration-quarkus/docker-compose/docker-compose.yml
new file mode 100644
index 000000000..a4addff8c
--- /dev/null
+++ 
b/kogito-quarkus-examples/process-instance-migration-quarkus/docker-compose/docker-compose.yml
@@ -0,0 +1,64 @@
+version: '3'
+
+services:
+  postgres:
+    container_name: postgres
+    image: postgres:16.1-alpine3.19
+    profiles: [ "infra", "example", "full" ]
+    ports:
+      - "5432:5432"
+    volumes:
+      - ./sql:/docker-entrypoint-initdb.d:Z
+    healthcheck:
+      test: [ "CMD", "pg_isready", "-q", "-d", "kogito", "-U", "kogito-user" ]
+      timeout: 45s
+      interval: 10s
+      retries: 50
+    environment:
+      POSTGRES_USER: postgres
+      POSTGRES_PASSWORD: postgres
+
+  pgadmin:
+    container_name: pgadmin
+    image: dpage/pgadmin4:8.2
+    profiles: [ "infra", "example", "full" ]
+    ports:
+      - 8055:80
+    depends_on:
+      - postgres
+    volumes:
+      - ./pgadmin/servers.json:/pgadmin4/servers.json
+      - ./pgadmin/pgpass:/pgadmin4/pgpass
+    entrypoint: >
+      /bin/sh -c "
+      cp -f /pgadmin4/pgpass /var/lib/pgadmin/;
+      chmod 600 /var/lib/pgadmin/pgpass;
+      /entrypoint.sh
+      "
+    environment:
+      PGADMIN_DEFAULT_EMAIL: [email protected]
+      PGADMIN_DEFAULT_PASSWORD: pass
+      PGADMIN_CONFIG_SERVER_MODE: 'False'
+      PGADMIN_CONFIG_MASTER_PASSWORD_REQUIRED: 'False'
+      GUNICORN_ACCESS_LOGFILE: '/dev/null'
+
+  kogito-process-instance-migration-service:
+    container_name: kogito-process-instance-migration-service
+    image: 
dev.local/${USER}/kogito-process-instance-migration-service:1.0-SNAPSHOT
+    profiles: ["example", "full"]
+    ports:
+      - "8080:8080"
+    depends_on:
+      - postgres
+    environment:
+      QUARKUS_HTTP_CORS_ORIGINS: "/.*/"
+      QUARKUS_DATASOURCE_JDBC_URL: "jdbc:postgresql://postgres:5432/kogito"
+      QUARKUS_DATASOURCE_REACTIVE_URL: "postgresql://postgres:5432/kogito"
+      QUARKUS_DATASOURCE_USERNAME: kogito-user
+      QUARKUS_DATASOURCE_PASSWORD: kogito-pass
+      QUARKUS_DATASOURCE_DB_KIND: postgresql
+      KOGITO_JOBS_SERVICE_URL: http://${DOCKER_GATEWAY_HOST}:8080
+      KOGITO_SERVICE_URL: http://${DOCKER_GATEWAY_HOST}:8080
+      KOGITO_DATAINDEX_HTTP_URL: http://${DOCKER_GATEWAY_HOST}:8080
+    extra_hosts:
+      - "${DOCKER_GATEWAY_HOST}:host-gateway"
diff --git 
a/kogito-quarkus-examples/process-instance-migration-quarkus/docker-compose/pgadmin/pgpass
 
b/kogito-quarkus-examples/process-instance-migration-quarkus/docker-compose/pgadmin/pgpass
new file mode 100644
index 000000000..11a6f7c60
--- /dev/null
+++ 
b/kogito-quarkus-examples/process-instance-migration-quarkus/docker-compose/pgadmin/pgpass
@@ -0,0 +1,3 @@
+postgres:5432:kogito:kogito-user:kogito-pass
+postgres:5432:keycloak:kogito-user:kogito-pass
+postgres:5432:postgres:kogito-user:kogito-pass
\ No newline at end of file
diff --git 
a/kogito-quarkus-examples/process-instance-migration-quarkus/docker-compose/pgadmin/servers.json
 
b/kogito-quarkus-examples/process-instance-migration-quarkus/docker-compose/pgadmin/servers.json
new file mode 100644
index 000000000..a112980d5
--- /dev/null
+++ 
b/kogito-quarkus-examples/process-instance-migration-quarkus/docker-compose/pgadmin/servers.json
@@ -0,0 +1,14 @@
+{
+  "Servers": {
+    "1": {
+      "Name": "kogito",
+      "Group": "Servers",
+      "Host": "postgres",
+      "Port": 5432,
+      "MaintenanceDB": "kogito",
+      "Username": "kogito-user",
+      "SSLMode": "disable",
+      "PassFile": "/var/lib/pgadmin/pgpass"
+    }
+  }
+}
\ No newline at end of file
diff --git 
a/kogito-quarkus-examples/process-instance-migration-quarkus/docker-compose/sql/init.sql
 
b/kogito-quarkus-examples/process-instance-migration-quarkus/docker-compose/sql/init.sql
new file mode 100644
index 000000000..3097ad7d8
--- /dev/null
+++ 
b/kogito-quarkus-examples/process-instance-migration-quarkus/docker-compose/sql/init.sql
@@ -0,0 +1,22 @@
+CREATE ROLE "kogito-user" WITH
+    LOGIN
+    SUPERUSER
+    INHERIT
+    CREATEDB
+    CREATEROLE
+    NOREPLICATION
+    PASSWORD 'kogito-pass';
+
+CREATE DATABASE kogito
+    WITH
+    OWNER = "kogito-user"
+    ENCODING = 'UTF8'
+    LC_COLLATE = 'en_US.utf8'
+    LC_CTYPE = 'en_US.utf8'
+    TABLESPACE = pg_default
+    CONNECTION LIMIT = -1;
+
+
+GRANT ALL PRIVILEGES ON DATABASE postgres TO "kogito-user";
+GRANT ALL PRIVILEGES ON DATABASE kogito TO "kogito-user";
+GRANT ALL PRIVILEGES ON DATABASE kogito TO postgres;
diff --git 
a/kogito-quarkus-examples/process-instance-migration-quarkus/docker-compose/startServices.sh
 
b/kogito-quarkus-examples/process-instance-migration-quarkus/docker-compose/startServices.sh
new file mode 100755
index 000000000..8b0c6f434
--- /dev/null
+++ 
b/kogito-quarkus-examples/process-instance-migration-quarkus/docker-compose/startServices.sh
@@ -0,0 +1,40 @@
+#!/bin/sh
+
+PROFILE="example"
+
+echo "Script requires your Kogito Example to be compiled"
+
+PROJECT_VERSION=$(cd ../ && mvn help:evaluate -Dexpression=project.version -q 
-DforceStdout)
+
+echo "Project version: ${PROJECT_VERSION}"
+
+if [[ $PROJECT_VERSION == *SNAPSHOT ]];
+then
+  KOGITO_VERSION="latest"
+else
+  KOGITO_VERSION=${PROJECT_VERSION%.*}
+fi
+
+if [ -n "$1" ]; then
+  if [[ ("$1" == "infra") || ("$1" == "example")]];
+  then
+    PROFILE="$1"
+  else
+    echo "Unknown docker profile '$1'. The supported profiles are:"
+    echo "* 'infra': Use this profile to start only the minimum infrastructure 
to run the example (postgresql, data-index & jobs-service)."
+    echo "* 'example': Use this profile to start the example infrastructure 
and the kogito-example service. Requires the example to be compiled using the 
'container' profile (-Pcontainer)"
+    exit 1;
+  fi
+fi
+
+echo "Kogito Image version: ${KOGITO_VERSION}"
+echo "KOGITO_VERSION=${KOGITO_VERSION}" > ".env"
+echo "COMPOSE_PROFILES='${PROFILE}'" >> ".env"
+
+if [ "$(uname)" == "Darwin" ]; then
+   echo "DOCKER_GATEWAY_HOST=kubernetes.docker.internal" >> ".env"
+elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
+   echo "DOCKER_GATEWAY_HOST=172.17.0.1" >> ".env"
+fi
+
+docker compose up
\ No newline at end of file
diff --git 
a/kogito-quarkus-examples/process-instance-migration-quarkus/docs/images/addedtask.png
 
b/kogito-quarkus-examples/process-instance-migration-quarkus/docs/images/addedtask.png
new file mode 100644
index 000000000..5745ce157
Binary files /dev/null and 
b/kogito-quarkus-examples/process-instance-migration-quarkus/docs/images/addedtask.png
 differ
diff --git 
a/kogito-quarkus-examples/process-instance-migration-quarkus/docs/images/modified.png
 
b/kogito-quarkus-examples/process-instance-migration-quarkus/docs/images/modified.png
new file mode 100644
index 000000000..e6c32497a
Binary files /dev/null and 
b/kogito-quarkus-examples/process-instance-migration-quarkus/docs/images/modified.png
 differ
diff --git 
a/kogito-quarkus-examples/process-instance-migration-quarkus/docs/images/simple.png
 
b/kogito-quarkus-examples/process-instance-migration-quarkus/docs/images/simple.png
new file mode 100644
index 000000000..99d556dfa
Binary files /dev/null and 
b/kogito-quarkus-examples/process-instance-migration-quarkus/docs/images/simple.png
 differ
diff --git a/kogito-quarkus-examples/process-instance-migration-quarkus/pom.xml 
b/kogito-quarkus-examples/process-instance-migration-quarkus/pom.xml
new file mode 100644
index 000000000..6fc1e9755
--- /dev/null
+++ b/kogito-quarkus-examples/process-instance-migration-quarkus/pom.xml
@@ -0,0 +1,220 @@
+<?xml version="1.0"?>
+<!--
+
+    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>process-instance-migration-quarkus</artifactId>
+  <name>Kogito Example :: Process Instance Migration Quarkus</name>
+  <description>Process Instance Migration example - Quarkus</description>
+  <properties>
+    <quarkus-plugin.version>3.8.4</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.8.4</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-apps.bom.artifact-id>kogito-apps-bom</kogito-apps.bom.artifact-id>
+    <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>${version.org.kie.kogito}</version>
+        <type>pom</type>
+        <scope>import</scope>
+      </dependency>
+      <dependency>
+        <groupId>${kogito.bom.group-id}</groupId>
+        <artifactId>${kogito-apps.bom.artifact-id}</artifactId>
+        <version>${version.org.kie.kogito}</version>
+        <type>pom</type>
+        <scope>import</scope>
+      </dependency>
+    </dependencies>
+  </dependencyManagement>
+  <dependencies>
+    <dependency>
+      <groupId>io.quarkus</groupId>
+      <artifactId>quarkus-resteasy</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-smallrye-health</artifactId>
+    </dependency>
+
+    <dependency>
+      <groupId>org.jbpm</groupId>
+      <artifactId>jbpm-with-drools-quarkus</artifactId>
+    </dependency>
+
+    <dependency>
+      <groupId>org.jbpm</groupId>
+      <artifactId>jbpm-quarkus</artifactId>
+    </dependency>
+
+    <dependency>
+      <groupId>org.kie</groupId>
+      <artifactId>kie-addons-quarkus-process-management</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.kie</groupId>
+      <artifactId>kogito-addons-quarkus-jobs-management</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.kie</groupId>
+      <artifactId>kie-addons-quarkus-process-svg</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.kie</groupId>
+      <artifactId>kie-addons-quarkus-source-files</artifactId>
+    </dependency>
+
+    <!-- Persistence -->
+    <dependency>
+      <groupId>io.quarkus</groupId>
+      <artifactId>quarkus-jdbc-postgresql</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>io.quarkus</groupId>
+      <artifactId>quarkus-agroal</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.kie</groupId>
+      <artifactId>kie-addons-quarkus-persistence-jdbc</artifactId>
+    </dependency>
+
+    <!-- Data Index Addon -->
+    <dependency>
+      <groupId>org.kie</groupId>
+      <artifactId>kogito-addons-quarkus-data-index-postgresql</artifactId>
+    </dependency>
+
+    <!-- Data Index Persistence -->
+    <dependency>
+      <groupId>org.kie</groupId>
+      
<artifactId>kogito-addons-quarkus-data-index-persistence-postgresql</artifactId>
+    </dependency>
+
+    <!-- Jobs Service -->
+    <dependency>
+      <groupId>org.kie</groupId>
+      <artifactId>kogito-addons-quarkus-jobs</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.kie.kogito</groupId>
+      <artifactId>jobs-service-postgresql-common</artifactId>
+    </dependency>
+
+    <!-- Data Audit -->
+    <dependency>
+      <groupId>org.kie</groupId>
+      <artifactId>kogito-addons-quarkus-data-audit-jpa</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.kie</groupId>
+      <artifactId>kogito-addons-quarkus-data-audit</artifactId>
+    </dependency>
+  </dependencies>
+  <profiles>
+    <profile>
+      <id>container</id>
+      <properties>
+        <quarkus.profile>container</quarkus.profile>
+      </properties>
+      <dependencies>
+        <dependency>
+          <groupId>io.quarkus</groupId>
+          <artifactId>quarkus-container-image-jib</artifactId>
+        </dependency>
+      </dependencies>
+    </profile>
+    <profile>
+      <id>development</id>
+      <properties>
+        <quarkus.profile>dev</quarkus.profile>
+      </properties>
+    </profile>
+  </profiles>
+  <build>
+    <finalName>${project.artifactId}</finalName>
+    <plugins>
+      <plugin>
+        <artifactId>maven-compiler-plugin</artifactId>
+        <version>${version.compiler.plugin}</version>
+        <configuration>
+          <release>${maven.compiler.release}</release>
+        </configuration>
+      </plugin>
+      <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>
+      <plugin>
+        <artifactId>maven-failsafe-plugin</artifactId>
+        <configuration>
+          <systemPropertyVariables>
+            
<java.util.logging.manager>org.jboss.logmanager.LogManager</java.util.logging.manager>
+            <maven.home>${maven.home}</maven.home>
+          </systemPropertyVariables>
+        </configuration>
+        <executions>
+          <execution>
+            <goals>
+              <goal>integration-test</goal>
+              <goal>verify</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+  </build>
+</project>
diff --git 
a/kogito-quarkus-examples/process-instance-migration-quarkus/src/main/resources/META-INF/migration-plan/addedtask_migration.mpf
 
b/kogito-quarkus-examples/process-instance-migration-quarkus/src/main/resources/META-INF/migration-plan/addedtask_migration.mpf
new file mode 100644
index 000000000..bffd88c47
--- /dev/null
+++ 
b/kogito-quarkus-examples/process-instance-migration-quarkus/src/main/resources/META-INF/migration-plan/addedtask_migration.mpf
@@ -0,0 +1,19 @@
+{
+    "name" : "simple to addedtask migration",
+    "processMigrationPlan" : {
+        "sourceProcessDefinition" : {
+            "processId" : "simple",
+            "processVersion" : "1.0"
+        },
+        "targetProcessDefinition" : {
+            "processId" : "addedtask",
+            "processVersion" : "1.0"
+        },
+        "nodeInstanceMigrationPlan" : [
+            {
+                "sourceNodeId" : "_8430CA7E-8CC6-4C2C-9664-6B5BBD5E36CB",
+                "targetNodeId" : "_1D65864A-96AF-44FC-92CE-2073B9FBA7D0"
+            }
+        ]
+    }
+}
diff --git 
a/kogito-quarkus-examples/process-instance-migration-quarkus/src/main/resources/addedtask.bpmn
 
b/kogito-quarkus-examples/process-instance-migration-quarkus/src/main/resources/addedtask.bpmn
new file mode 100644
index 000000000..67688a378
--- /dev/null
+++ 
b/kogito-quarkus-examples/process-instance-migration-quarkus/src/main/resources/addedtask.bpmn
@@ -0,0 +1,226 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<bpmn2:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL"; 
xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI"; 
xmlns:bpsim="http://www.bpsim.org/schemas/1.0"; 
xmlns:dc="http://www.omg.org/spec/DD/20100524/DC"; 
xmlns:di="http://www.omg.org/spec/DD/20100524/DI"; 
xmlns:drools="http://www.jboss.org/drools"; id="_4YtTwNp2EDyug9043TBvzA" 
xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd 
http://www. [...]
+  <bpmn2:itemDefinition 
id="__74EA6719-7F99-48CD-A98E-17D422668B87_SkippableInputXItem" 
structureRef="Object"/>
+  <bpmn2:itemDefinition 
id="__74EA6719-7F99-48CD-A98E-17D422668B87_PriorityInputXItem" 
structureRef="Object"/>
+  <bpmn2:itemDefinition 
id="__74EA6719-7F99-48CD-A98E-17D422668B87_CommentInputXItem" 
structureRef="Object"/>
+  <bpmn2:itemDefinition 
id="__74EA6719-7F99-48CD-A98E-17D422668B87_DescriptionInputXItem" 
structureRef="Object"/>
+  <bpmn2:itemDefinition 
id="__74EA6719-7F99-48CD-A98E-17D422668B87_CreatedByInputXItem" 
structureRef="Object"/>
+  <bpmn2:itemDefinition 
id="__74EA6719-7F99-48CD-A98E-17D422668B87_TaskNameInputXItem" 
structureRef="Object"/>
+  <bpmn2:itemDefinition 
id="__74EA6719-7F99-48CD-A98E-17D422668B87_GroupIdInputXItem" 
structureRef="Object"/>
+  <bpmn2:itemDefinition 
id="__74EA6719-7F99-48CD-A98E-17D422668B87_ContentInputXItem" 
structureRef="Object"/>
+  <bpmn2:itemDefinition 
id="__74EA6719-7F99-48CD-A98E-17D422668B87_NotStartedReassignInputXItem" 
structureRef="Object"/>
+  <bpmn2:itemDefinition 
id="__74EA6719-7F99-48CD-A98E-17D422668B87_NotCompletedReassignInputXItem" 
structureRef="Object"/>
+  <bpmn2:itemDefinition 
id="__74EA6719-7F99-48CD-A98E-17D422668B87_NotStartedNotifyInputXItem" 
structureRef="Object"/>
+  <bpmn2:itemDefinition 
id="__74EA6719-7F99-48CD-A98E-17D422668B87_NotCompletedNotifyInputXItem" 
structureRef="Object"/>
+  <bpmn2:signal id="_-567202649" name="continue"/>
+  <bpmn2:collaboration id="_CBE50C08-ACA1-4387-8BB6-77A4ABF6E340" 
name="Default Collaboration">
+    <bpmn2:participant id="_AD5CA32E-D2C6-45B3-9CB8-C3F45481F254" name="Pool 
Participant" processRef="addedtask"/>
+  </bpmn2:collaboration>
+  <bpmn2:process id="addedtask" drools:packageName="com.example" 
drools:version="1.0" drools:adHoc="false" name="addedtask" isExecutable="true" 
processType="Public">
+    <bpmn2:sequenceFlow id="_D0E6CA53-1ECE-4F8D-AAF0-829B30A2719F" 
sourceRef="_74EA6719-7F99-48CD-A98E-17D422668B87" 
targetRef="_1D65864A-96AF-44FC-92CE-2073B9FBA7D0">
+      <bpmn2:extensionElements>
+        <drools:metaData name="isAutoConnection.target">
+          <drools:metaValue><![CDATA[true]]></drools:metaValue>
+        </drools:metaData>
+      </bpmn2:extensionElements>
+    </bpmn2:sequenceFlow>
+    <bpmn2:sequenceFlow id="_FA3E1FF8-4894-47DA-90EB-DAB27BD7E925" 
sourceRef="_7C0F340A-57A6-40ED-A802-4C8A5B61B8E4" 
targetRef="_8F029B9C-9B3C-4907-8C68-69B30FD85A88">
+      <bpmn2:extensionElements>
+        <drools:metaData name="isAutoConnection.target">
+          <drools:metaValue><![CDATA[true]]></drools:metaValue>
+        </drools:metaData>
+      </bpmn2:extensionElements>
+    </bpmn2:sequenceFlow>
+    <bpmn2:sequenceFlow id="_2DFFEEA8-CA22-4076-A703-DB36A6471775" 
sourceRef="_1D65864A-96AF-44FC-92CE-2073B9FBA7D0" 
targetRef="_7C0F340A-57A6-40ED-A802-4C8A5B61B8E4">
+      <bpmn2:extensionElements>
+        <drools:metaData name="isAutoConnection.target">
+          <drools:metaValue><![CDATA[true]]></drools:metaValue>
+        </drools:metaData>
+      </bpmn2:extensionElements>
+    </bpmn2:sequenceFlow>
+    <bpmn2:sequenceFlow id="_916690AE-8B09-4FA5-BF0D-8638E01A7472" 
sourceRef="_9660EA72-BFEC-4FAE-B5C3-48513A420288" 
targetRef="_74EA6719-7F99-48CD-A98E-17D422668B87"/>
+    <bpmn2:sequenceFlow id="_C7A1A566-057F-4A80-B654-61270F82F365" 
sourceRef="_D7D85E86-FA30-43CB-9DB6-A3FC067049C1" 
targetRef="_9660EA72-BFEC-4FAE-B5C3-48513A420288"/>
+    <bpmn2:intermediateCatchEvent id="_1D65864A-96AF-44FC-92CE-2073B9FBA7D0">
+      <bpmn2:incoming>_D0E6CA53-1ECE-4F8D-AAF0-829B30A2719F</bpmn2:incoming>
+      <bpmn2:outgoing>_2DFFEEA8-CA22-4076-A703-DB36A6471775</bpmn2:outgoing>
+      <bpmn2:signalEventDefinition signalRef="_-567202649"/>
+    </bpmn2:intermediateCatchEvent>
+    <bpmn2:userTask id="_74EA6719-7F99-48CD-A98E-17D422668B87" name="HT">
+      <bpmn2:extensionElements>
+        <drools:metaData name="elementname">
+          <drools:metaValue><![CDATA[HT]]></drools:metaValue>
+        </drools:metaData>
+      </bpmn2:extensionElements>
+      <bpmn2:incoming>_916690AE-8B09-4FA5-BF0D-8638E01A7472</bpmn2:incoming>
+      <bpmn2:outgoing>_D0E6CA53-1ECE-4F8D-AAF0-829B30A2719F</bpmn2:outgoing>
+      <bpmn2:ioSpecification>
+        <bpmn2:dataInput 
id="_74EA6719-7F99-48CD-A98E-17D422668B87_TaskNameInputX" drools:dtype="Object" 
itemSubjectRef="__74EA6719-7F99-48CD-A98E-17D422668B87_TaskNameInputXItem" 
name="TaskName"/>
+        <bpmn2:dataInput 
id="_74EA6719-7F99-48CD-A98E-17D422668B87_SkippableInputX" 
drools:dtype="Object" 
itemSubjectRef="__74EA6719-7F99-48CD-A98E-17D422668B87_SkippableInputXItem" 
name="Skippable"/>
+        <bpmn2:inputSet>
+          
<bpmn2:dataInputRefs>_74EA6719-7F99-48CD-A98E-17D422668B87_TaskNameInputX</bpmn2:dataInputRefs>
+          
<bpmn2:dataInputRefs>_74EA6719-7F99-48CD-A98E-17D422668B87_SkippableInputX</bpmn2:dataInputRefs>
+        </bpmn2:inputSet>
+      </bpmn2:ioSpecification>
+      <bpmn2:dataInputAssociation>
+        
<bpmn2:targetRef>_74EA6719-7F99-48CD-A98E-17D422668B87_TaskNameInputX</bpmn2:targetRef>
+        <bpmn2:assignment>
+          <bpmn2:from 
xsi:type="bpmn2:tFormalExpression"><![CDATA[Task]]></bpmn2:from>
+          <bpmn2:to 
xsi:type="bpmn2:tFormalExpression"><![CDATA[_74EA6719-7F99-48CD-A98E-17D422668B87_TaskNameInputX]]></bpmn2:to>
+        </bpmn2:assignment>
+      </bpmn2:dataInputAssociation>
+      <bpmn2:dataInputAssociation>
+        
<bpmn2:targetRef>_74EA6719-7F99-48CD-A98E-17D422668B87_SkippableInputX</bpmn2:targetRef>
+        <bpmn2:assignment>
+          <bpmn2:from 
xsi:type="bpmn2:tFormalExpression"><![CDATA[false]]></bpmn2:from>
+          <bpmn2:to 
xsi:type="bpmn2:tFormalExpression"><![CDATA[_74EA6719-7F99-48CD-A98E-17D422668B87_SkippableInputX]]></bpmn2:to>
+        </bpmn2:assignment>
+      </bpmn2:dataInputAssociation>
+    </bpmn2:userTask>
+    <bpmn2:endEvent id="_8F029B9C-9B3C-4907-8C68-69B30FD85A88">
+      <bpmn2:incoming>_FA3E1FF8-4894-47DA-90EB-DAB27BD7E925</bpmn2:incoming>
+    </bpmn2:endEvent>
+    <bpmn2:scriptTask id="_7C0F340A-57A6-40ED-A802-4C8A5B61B8E4" name="log 
process continuation" scriptFormat="http://www.java.com/java";>
+      <bpmn2:extensionElements>
+        <drools:metaData name="elementname">
+          <drools:metaValue><![CDATA[log process 
continuation]]></drools:metaValue>
+        </drools:metaData>
+      </bpmn2:extensionElements>
+      <bpmn2:incoming>_2DFFEEA8-CA22-4076-A703-DB36A6471775</bpmn2:incoming>
+      <bpmn2:outgoing>_FA3E1FF8-4894-47DA-90EB-DAB27BD7E925</bpmn2:outgoing>
+      <bpmn2:script>System.out.println("Ending process " + 
kcontext.getProcessInstance().getId() + " [" + 
kcontext.getProcessInstance().getProcessName() + ", v" + 
kcontext.getProcessInstance().getProcessVersion() + "]");</bpmn2:script>
+    </bpmn2:scriptTask>
+    <bpmn2:scriptTask id="_9660EA72-BFEC-4FAE-B5C3-48513A420288" name="log 
process creation" scriptFormat="http://www.java.com/java";>
+      <bpmn2:extensionElements>
+        <drools:metaData name="elementname">
+          <drools:metaValue><![CDATA[log process creation]]></drools:metaValue>
+        </drools:metaData>
+      </bpmn2:extensionElements>
+      <bpmn2:incoming>_C7A1A566-057F-4A80-B654-61270F82F365</bpmn2:incoming>
+      <bpmn2:outgoing>_916690AE-8B09-4FA5-BF0D-8638E01A7472</bpmn2:outgoing>
+      <bpmn2:script>System.out.println("Started process " + 
kcontext.getProcessInstance().getId() + " [" + 
kcontext.getProcessInstance().getProcessName() + ", v" + 
kcontext.getProcessInstance().getProcessVersion() + "]");</bpmn2:script>
+    </bpmn2:scriptTask>
+    <bpmn2:startEvent id="_D7D85E86-FA30-43CB-9DB6-A3FC067049C1">
+      <bpmn2:outgoing>_C7A1A566-057F-4A80-B654-61270F82F365</bpmn2:outgoing>
+    </bpmn2:startEvent>
+  </bpmn2:process>
+  <bpmndi:BPMNDiagram>
+    <bpmndi:BPMNPlane bpmnElement="addedtask">
+      <bpmndi:BPMNShape id="shape__D7D85E86-FA30-43CB-9DB6-A3FC067049C1" 
bpmnElement="_D7D85E86-FA30-43CB-9DB6-A3FC067049C1">
+        <dc:Bounds height="56" width="56" x="112" y="261"/>
+      </bpmndi:BPMNShape>
+      <bpmndi:BPMNShape id="shape__9660EA72-BFEC-4FAE-B5C3-48513A420288" 
bpmnElement="_9660EA72-BFEC-4FAE-B5C3-48513A420288">
+        <dc:Bounds height="102" width="154" x="248" y="238"/>
+      </bpmndi:BPMNShape>
+      <bpmndi:BPMNShape id="shape__7C0F340A-57A6-40ED-A802-4C8A5B61B8E4" 
bpmnElement="_7C0F340A-57A6-40ED-A802-4C8A5B61B8E4">
+        <dc:Bounds height="102" width="154" x="838" y="238"/>
+      </bpmndi:BPMNShape>
+      <bpmndi:BPMNShape id="shape__8F029B9C-9B3C-4907-8C68-69B30FD85A88" 
bpmnElement="_8F029B9C-9B3C-4907-8C68-69B30FD85A88">
+        <dc:Bounds height="56" width="56" x="1050" y="261"/>
+      </bpmndi:BPMNShape>
+      <bpmndi:BPMNShape id="shape__74EA6719-7F99-48CD-A98E-17D422668B87" 
bpmnElement="_74EA6719-7F99-48CD-A98E-17D422668B87">
+        <dc:Bounds height="102" width="154" x="462" y="238"/>
+      </bpmndi:BPMNShape>
+      <bpmndi:BPMNShape id="shape__1D65864A-96AF-44FC-92CE-2073B9FBA7D0" 
bpmnElement="_1D65864A-96AF-44FC-92CE-2073B9FBA7D0">
+        <dc:Bounds height="56" width="56" x="681" y="261"/>
+      </bpmndi:BPMNShape>
+      <bpmndi:BPMNEdge 
id="edge_shape__D7D85E86-FA30-43CB-9DB6-A3FC067049C1_to_shape__9660EA72-BFEC-4FAE-B5C3-48513A420288"
 bpmnElement="_C7A1A566-057F-4A80-B654-61270F82F365">
+        <di:waypoint x="140" y="289"/>
+        <di:waypoint x="325" y="289"/>
+      </bpmndi:BPMNEdge>
+      <bpmndi:BPMNEdge 
id="edge_shape__9660EA72-BFEC-4FAE-B5C3-48513A420288_to_shape__74EA6719-7F99-48CD-A98E-17D422668B87"
 bpmnElement="_916690AE-8B09-4FA5-BF0D-8638E01A7472">
+        <di:waypoint x="325" y="289"/>
+        <di:waypoint x="539" y="289"/>
+      </bpmndi:BPMNEdge>
+      <bpmndi:BPMNEdge 
id="edge_shape__1D65864A-96AF-44FC-92CE-2073B9FBA7D0_to_shape__7C0F340A-57A6-40ED-A802-4C8A5B61B8E4"
 bpmnElement="_2DFFEEA8-CA22-4076-A703-DB36A6471775">
+        <di:waypoint x="709" y="289"/>
+        <di:waypoint x="838" y="289"/>
+      </bpmndi:BPMNEdge>
+      <bpmndi:BPMNEdge 
id="edge_shape__7C0F340A-57A6-40ED-A802-4C8A5B61B8E4_to_shape__8F029B9C-9B3C-4907-8C68-69B30FD85A88"
 bpmnElement="_FA3E1FF8-4894-47DA-90EB-DAB27BD7E925">
+        <di:waypoint x="915" y="289"/>
+        <di:waypoint x="1127" y="261"/>
+      </bpmndi:BPMNEdge>
+      <bpmndi:BPMNEdge 
id="edge_shape__74EA6719-7F99-48CD-A98E-17D422668B87_to_shape__1D65864A-96AF-44FC-92CE-2073B9FBA7D0"
 bpmnElement="_D0E6CA53-1ECE-4F8D-AAF0-829B30A2719F">
+        <di:waypoint x="539" y="289"/>
+        <di:waypoint x="681" y="289"/>
+      </bpmndi:BPMNEdge>
+    </bpmndi:BPMNPlane>
+  </bpmndi:BPMNDiagram>
+  <bpmn2:relationship type="BPSimData">
+    <bpmn2:extensionElements>
+      <bpsim:BPSimData>
+        <bpsim:Scenario id="default" name="Simulationscenario">
+          <bpsim:ScenarioParameters/>
+          <bpsim:ElementParameters 
elementRef="_D7D85E86-FA30-43CB-9DB6-A3FC067049C1">
+            <bpsim:TimeParameters>
+              <bpsim:ProcessingTime>
+                <bpsim:NormalDistribution mean="0" standardDeviation="0"/>
+              </bpsim:ProcessingTime>
+            </bpsim:TimeParameters>
+          </bpsim:ElementParameters>
+          <bpsim:ElementParameters 
elementRef="_9660EA72-BFEC-4FAE-B5C3-48513A420288">
+            <bpsim:TimeParameters>
+              <bpsim:ProcessingTime>
+                <bpsim:NormalDistribution mean="0" standardDeviation="0"/>
+              </bpsim:ProcessingTime>
+            </bpsim:TimeParameters>
+            <bpsim:ResourceParameters>
+              <bpsim:Availability>
+                <bpsim:FloatingParameter value="0"/>
+              </bpsim:Availability>
+              <bpsim:Quantity>
+                <bpsim:FloatingParameter value="0"/>
+              </bpsim:Quantity>
+            </bpsim:ResourceParameters>
+            <bpsim:CostParameters>
+              <bpsim:UnitCost>
+                <bpsim:FloatingParameter value="0"/>
+              </bpsim:UnitCost>
+            </bpsim:CostParameters>
+          </bpsim:ElementParameters>
+          <bpsim:ElementParameters 
elementRef="_7C0F340A-57A6-40ED-A802-4C8A5B61B8E4">
+            <bpsim:TimeParameters>
+              <bpsim:ProcessingTime>
+                <bpsim:NormalDistribution mean="0" standardDeviation="0"/>
+              </bpsim:ProcessingTime>
+            </bpsim:TimeParameters>
+            <bpsim:ResourceParameters>
+              <bpsim:Availability>
+                <bpsim:FloatingParameter value="0"/>
+              </bpsim:Availability>
+              <bpsim:Quantity>
+                <bpsim:FloatingParameter value="0"/>
+              </bpsim:Quantity>
+            </bpsim:ResourceParameters>
+            <bpsim:CostParameters>
+              <bpsim:UnitCost>
+                <bpsim:FloatingParameter value="0"/>
+              </bpsim:UnitCost>
+            </bpsim:CostParameters>
+          </bpsim:ElementParameters>
+          <bpsim:ElementParameters 
elementRef="_74EA6719-7F99-48CD-A98E-17D422668B87">
+            <bpsim:TimeParameters>
+              <bpsim:ProcessingTime>
+                <bpsim:NormalDistribution mean="0" standardDeviation="0"/>
+              </bpsim:ProcessingTime>
+            </bpsim:TimeParameters>
+            <bpsim:ResourceParameters>
+              <bpsim:Availability>
+                <bpsim:FloatingParameter value="0"/>
+              </bpsim:Availability>
+              <bpsim:Quantity>
+                <bpsim:FloatingParameter value="0"/>
+              </bpsim:Quantity>
+            </bpsim:ResourceParameters>
+            <bpsim:CostParameters>
+              <bpsim:UnitCost>
+                <bpsim:FloatingParameter value="0"/>
+              </bpsim:UnitCost>
+            </bpsim:CostParameters>
+          </bpsim:ElementParameters>
+        </bpsim:Scenario>
+      </bpsim:BPSimData>
+    </bpmn2:extensionElements>
+    <bpmn2:source>_4YtTwNp2EDyug9043TBvzA</bpmn2:source>
+    <bpmn2:target>_4YtTwNp2EDyug9043TBvzA</bpmn2:target>
+  </bpmn2:relationship>
+</bpmn2:definitions>
\ No newline at end of file
diff --git 
a/kogito-quarkus-examples/process-instance-migration-quarkus/src/main/resources/application.properties
 
b/kogito-quarkus-examples/process-instance-migration-quarkus/src/main/resources/application.properties
new file mode 100644
index 000000000..077d6091e
--- /dev/null
+++ 
b/kogito-quarkus-examples/process-instance-migration-quarkus/src/main/resources/application.properties
@@ -0,0 +1,49 @@
+# Packaging
+#quarkus.package.type=fast-jar
+
+#https://quarkus.io/guides/openapi-swaggerui
+quarkus.http.cors=true
+quarkus.smallrye-openapi.path=/docs/openapi.json
+quarkus.swagger-ui.always-include=true
+quarkus.kogito.data-index.graphql.ui.always-include=true
+quarkus.http.test-port=0
+
+# Kogito-service
+kogito.service.url=http://localhost:8080
+
+#Job-service
+kogito.jobs-service.url=http://localhost:8080
+
+# to be reachable from the container running job-service
+kogito.dataindex.http.url=http://localhost:8080
+kogito.dataindex.ws.url=ws://localhost:8080
+
+# run create tables scripts
+quarkus.flyway.migrate-at-start=true
+quarkus.flyway.baseline-on-migrate=true
+quarkus.flyway.baseline-version=0.0
+quarkus.flyway.locations=classpath:/db/migration,classpath:/db/jobs-service,classpath:/db/data-audit/postgresql
+quarkus.flyway.table=FLYWAY_RUNTIME_SERVICE
+
+kogito.persistence.type=jdbc
+quarkus.datasource.db-kind=postgresql
+%prod.quarkus.datasource.username=kogito-user
+%prod.quarkus.datasource.password=kogito-pass
+%prod.quarkus.datasource.jdbc.url=${QUARKUS_DATASOURCE_JDBC_URL:jdbc:postgresql://localhost:5432/kogito}
+%prod.quarkus.datasource.reactive.url=${QUARKUS_DATASOURCE_REACTIVE_URL:postgresql://localhost:5432/kogito}
+
+quarkus.native.native-image-xmx=8g
+
+# profile to pack this example into a container, to use it execute activate 
the maven container profile, -Pcontainer
+%container.quarkus.container-image.build=true
+%container.quarkus.container-image.push=false
+%container.quarkus.container-image.group=${USER}
+%container.quarkus.container-image.registry=dev.local
+%container.quarkus.container-image.tag=1.0-SNAPSHOT
+%container.quarkus.container-image.name=kogito-process-instance-migration-service
+
+%dev.quarkus.kogito.devservices.enabled=true
+%dev.kogito.users.jdoe.groups=admin,HR,IT
+
+# Disabling OIDC
+quarkus.oidc.enabled=false
\ No newline at end of file
diff --git 
a/kogito-quarkus-examples/process-instance-migration-quarkus/src/main/resources/modified.bpmn
 
b/kogito-quarkus-examples/process-instance-migration-quarkus/src/main/resources/modified.bpmn
new file mode 100644
index 000000000..530941a90
--- /dev/null
+++ 
b/kogito-quarkus-examples/process-instance-migration-quarkus/src/main/resources/modified.bpmn
@@ -0,0 +1,187 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<bpmn2:definitions xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL"; 
xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI"; 
xmlns:bpsim="http://www.bpsim.org/schemas/1.0"; 
xmlns:dc="http://www.omg.org/spec/DD/20100524/DC"; 
xmlns:di="http://www.omg.org/spec/DD/20100524/DI"; 
xmlns:drools="http://www.jboss.org/drools"; xmlns:xsi="xsi" 
id="_hNupoNpwEDyMua5P8aJUyQ" 
xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd 
http://www.jboss.org/drools drools.xsd http://www [...]
+  <bpmn2:signal id="_-567202649" name="continue"/>
+  <bpmn2:collaboration id="_0E80BD34-E425-46B0-9240-8D89886F0106" 
name="Default Collaboration">
+    <bpmn2:participant id="_98FB715D-89E4-4893-85FC-B62FC39BF239" name="Pool 
Participant" processRef="modified"/>
+  </bpmn2:collaboration>
+  <bpmn2:process id="modified" drools:packageName="com.example" 
drools:version="1.0" drools:adHoc="false" name="modified" isExecutable="true" 
processType="Public">
+    <bpmn2:sequenceFlow id="_FA3E1FF8-4894-47DA-90EB-DAB27BD7E925" 
sourceRef="_7C0F340A-57A6-40ED-A802-4C8A5B61B8E4" 
targetRef="_8F029B9C-9B3C-4907-8C68-69B30FD85A88">
+      <bpmn2:extensionElements>
+        <drools:metaData name="isAutoConnection.target">
+          <drools:metaValue><![CDATA[true]]></drools:metaValue>
+        </drools:metaData>
+      </bpmn2:extensionElements>
+    </bpmn2:sequenceFlow>
+    <bpmn2:sequenceFlow id="_B7675247-EA61-4BFC-9103-1AFF3E8E25ED" 
sourceRef="_10B17284-9CB6-4B80-9BE0-EE862F9E7178" 
targetRef="_7C0F340A-57A6-40ED-A802-4C8A5B61B8E4"/>
+    <bpmn2:sequenceFlow id="_C9EA1F49-3940-4EBF-9493-7D36839FCD16" 
sourceRef="_8430CA7E-8CC6-4C2C-9664-6B5BBD5E36CB" 
targetRef="_10B17284-9CB6-4B80-9BE0-EE862F9E7178"/>
+    <bpmn2:sequenceFlow id="_D77BDF48-2A9F-4032-9BE5-AC111F59EE88" 
sourceRef="_9660EA72-BFEC-4FAE-B5C3-48513A420288" 
targetRef="_8430CA7E-8CC6-4C2C-9664-6B5BBD5E36CB">
+      <bpmn2:extensionElements>
+        <drools:metaData name="isAutoConnection.target">
+          <drools:metaValue><![CDATA[true]]></drools:metaValue>
+        </drools:metaData>
+      </bpmn2:extensionElements>
+    </bpmn2:sequenceFlow>
+    <bpmn2:sequenceFlow id="_C7A1A566-057F-4A80-B654-61270F82F365" 
sourceRef="_D7D85E86-FA30-43CB-9DB6-A3FC067049C1" 
targetRef="_9660EA72-BFEC-4FAE-B5C3-48513A420288"/>
+    <bpmn2:scriptTask id="_10B17284-9CB6-4B80-9BE0-EE862F9E7178" name="added 
node" scriptFormat="http://www.java.com/java";>
+      <bpmn2:extensionElements>
+        <drools:metaData name="elementname">
+          <drools:metaValue><![CDATA[added node]]></drools:metaValue>
+        </drools:metaData>
+      </bpmn2:extensionElements>
+      <bpmn2:incoming>_C9EA1F49-3940-4EBF-9493-7D36839FCD16</bpmn2:incoming>
+      <bpmn2:outgoing>_B7675247-EA61-4BFC-9103-1AFF3E8E25ED</bpmn2:outgoing>
+      <bpmn2:script>System.out.println("Executing added node");</bpmn2:script>
+    </bpmn2:scriptTask>
+    <bpmn2:endEvent id="_8F029B9C-9B3C-4907-8C68-69B30FD85A88">
+      <bpmn2:incoming>_FA3E1FF8-4894-47DA-90EB-DAB27BD7E925</bpmn2:incoming>
+    </bpmn2:endEvent>
+    <bpmn2:scriptTask id="_7C0F340A-57A6-40ED-A802-4C8A5B61B8E4" name="log 
process continuation" scriptFormat="http://www.java.com/java";>
+      <bpmn2:extensionElements>
+        <drools:metaData name="elementname">
+          <drools:metaValue><![CDATA[log process 
continuation]]></drools:metaValue>
+        </drools:metaData>
+      </bpmn2:extensionElements>
+      <bpmn2:incoming>_B7675247-EA61-4BFC-9103-1AFF3E8E25ED</bpmn2:incoming>
+      <bpmn2:outgoing>_FA3E1FF8-4894-47DA-90EB-DAB27BD7E925</bpmn2:outgoing>
+      <bpmn2:script>System.out.println("Ending process " + 
kcontext.getProcessInstance().getId() + " [" + 
kcontext.getProcessInstance().getProcessName() + ", v" + 
kcontext.getProcessInstance().getProcessVersion() + "]");</bpmn2:script>
+    </bpmn2:scriptTask>
+    <bpmn2:intermediateCatchEvent id="_8430CA7E-8CC6-4C2C-9664-6B5BBD5E36CB">
+      <bpmn2:incoming>_D77BDF48-2A9F-4032-9BE5-AC111F59EE88</bpmn2:incoming>
+      <bpmn2:outgoing>_C9EA1F49-3940-4EBF-9493-7D36839FCD16</bpmn2:outgoing>
+      <bpmn2:signalEventDefinition signalRef="_-567202649"/>
+    </bpmn2:intermediateCatchEvent>
+    <bpmn2:scriptTask id="_9660EA72-BFEC-4FAE-B5C3-48513A420288" name="log 
process creation" scriptFormat="http://www.java.com/java";>
+      <bpmn2:extensionElements>
+        <drools:metaData name="elementname">
+          <drools:metaValue><![CDATA[log process creation]]></drools:metaValue>
+        </drools:metaData>
+      </bpmn2:extensionElements>
+      <bpmn2:incoming>_C7A1A566-057F-4A80-B654-61270F82F365</bpmn2:incoming>
+      <bpmn2:outgoing>_D77BDF48-2A9F-4032-9BE5-AC111F59EE88</bpmn2:outgoing>
+      <bpmn2:script>System.out.println("Started process " + 
kcontext.getProcessInstance().getId() + " [" + 
kcontext.getProcessInstance().getProcessName() + ", v" + 
kcontext.getProcessInstance().getProcessVersion() + "]");</bpmn2:script>
+    </bpmn2:scriptTask>
+    <bpmn2:startEvent id="_D7D85E86-FA30-43CB-9DB6-A3FC067049C1">
+      <bpmn2:outgoing>_C7A1A566-057F-4A80-B654-61270F82F365</bpmn2:outgoing>
+    </bpmn2:startEvent>
+  </bpmn2:process>
+  <bpmndi:BPMNDiagram>
+    <bpmndi:BPMNPlane bpmnElement="modified">
+      <bpmndi:BPMNShape id="shape__D7D85E86-FA30-43CB-9DB6-A3FC067049C1" 
bpmnElement="_D7D85E86-FA30-43CB-9DB6-A3FC067049C1">
+        <dc:Bounds height="56" width="56" x="164" y="261"/>
+      </bpmndi:BPMNShape>
+      <bpmndi:BPMNShape id="shape__9660EA72-BFEC-4FAE-B5C3-48513A420288" 
bpmnElement="_9660EA72-BFEC-4FAE-B5C3-48513A420288">
+        <dc:Bounds height="102" width="154" x="300" y="238"/>
+      </bpmndi:BPMNShape>
+      <bpmndi:BPMNShape id="shape__8430CA7E-8CC6-4C2C-9664-6B5BBD5E36CB" 
bpmnElement="_8430CA7E-8CC6-4C2C-9664-6B5BBD5E36CB">
+        <dc:Bounds height="56" width="56" x="534" y="261"/>
+      </bpmndi:BPMNShape>
+      <bpmndi:BPMNShape id="shape__7C0F340A-57A6-40ED-A802-4C8A5B61B8E4" 
bpmnElement="_7C0F340A-57A6-40ED-A802-4C8A5B61B8E4">
+        <dc:Bounds height="102" width="154" x="904" y="238"/>
+      </bpmndi:BPMNShape>
+      <bpmndi:BPMNShape id="shape__8F029B9C-9B3C-4907-8C68-69B30FD85A88" 
bpmnElement="_8F029B9C-9B3C-4907-8C68-69B30FD85A88">
+        <dc:Bounds height="56" width="56" x="1116" y="261"/>
+      </bpmndi:BPMNShape>
+      <bpmndi:BPMNShape id="shape__10B17284-9CB6-4B80-9BE0-EE862F9E7178" 
bpmnElement="_10B17284-9CB6-4B80-9BE0-EE862F9E7178">
+        <dc:Bounds height="102" width="154" x="670" y="238"/>
+      </bpmndi:BPMNShape>
+      <bpmndi:BPMNEdge 
id="edge_shape__D7D85E86-FA30-43CB-9DB6-A3FC067049C1_to_shape__9660EA72-BFEC-4FAE-B5C3-48513A420288"
 bpmnElement="_C7A1A566-057F-4A80-B654-61270F82F365">
+        <di:waypoint x="192" y="289"/>
+        <di:waypoint x="377" y="289"/>
+      </bpmndi:BPMNEdge>
+      <bpmndi:BPMNEdge 
id="edge_shape__9660EA72-BFEC-4FAE-B5C3-48513A420288_to_shape__8430CA7E-8CC6-4C2C-9664-6B5BBD5E36CB"
 bpmnElement="_D77BDF48-2A9F-4032-9BE5-AC111F59EE88">
+        <di:waypoint x="377" y="289"/>
+        <di:waypoint x="534" y="289"/>
+      </bpmndi:BPMNEdge>
+      <bpmndi:BPMNEdge 
id="edge_shape__8430CA7E-8CC6-4C2C-9664-6B5BBD5E36CB_to_shape__10B17284-9CB6-4B80-9BE0-EE862F9E7178"
 bpmnElement="_C9EA1F49-3940-4EBF-9493-7D36839FCD16">
+        <di:waypoint x="562" y="289"/>
+        <di:waypoint x="747" y="289"/>
+      </bpmndi:BPMNEdge>
+      <bpmndi:BPMNEdge 
id="edge_shape__10B17284-9CB6-4B80-9BE0-EE862F9E7178_to_shape__7C0F340A-57A6-40ED-A802-4C8A5B61B8E4"
 bpmnElement="_B7675247-EA61-4BFC-9103-1AFF3E8E25ED">
+        <di:waypoint x="747" y="289"/>
+        <di:waypoint x="904" y="289"/>
+      </bpmndi:BPMNEdge>
+      <bpmndi:BPMNEdge 
id="edge_shape__7C0F340A-57A6-40ED-A802-4C8A5B61B8E4_to_shape__8F029B9C-9B3C-4907-8C68-69B30FD85A88"
 bpmnElement="_FA3E1FF8-4894-47DA-90EB-DAB27BD7E925">
+        <di:waypoint x="981" y="289"/>
+        <di:waypoint x="1193" y="261"/>
+      </bpmndi:BPMNEdge>
+    </bpmndi:BPMNPlane>
+  </bpmndi:BPMNDiagram>
+  <bpmn2:relationship type="BPSimData">
+    <bpmn2:extensionElements>
+      <bpsim:BPSimData>
+        <bpsim:Scenario id="default" name="Simulationscenario">
+          <bpsim:ScenarioParameters/>
+          <bpsim:ElementParameters 
elementRef="_D7D85E86-FA30-43CB-9DB6-A3FC067049C1">
+            <bpsim:TimeParameters>
+              <bpsim:ProcessingTime>
+                <bpsim:NormalDistribution mean="0" standardDeviation="0"/>
+              </bpsim:ProcessingTime>
+            </bpsim:TimeParameters>
+          </bpsim:ElementParameters>
+          <bpsim:ElementParameters 
elementRef="_9660EA72-BFEC-4FAE-B5C3-48513A420288">
+            <bpsim:TimeParameters>
+              <bpsim:ProcessingTime>
+                <bpsim:NormalDistribution mean="0" standardDeviation="0"/>
+              </bpsim:ProcessingTime>
+            </bpsim:TimeParameters>
+            <bpsim:ResourceParameters>
+              <bpsim:Availability>
+                <bpsim:FloatingParameter value="0"/>
+              </bpsim:Availability>
+              <bpsim:Quantity>
+                <bpsim:FloatingParameter value="0"/>
+              </bpsim:Quantity>
+            </bpsim:ResourceParameters>
+            <bpsim:CostParameters>
+              <bpsim:UnitCost>
+                <bpsim:FloatingParameter value="0"/>
+              </bpsim:UnitCost>
+            </bpsim:CostParameters>
+          </bpsim:ElementParameters>
+          <bpsim:ElementParameters 
elementRef="_7C0F340A-57A6-40ED-A802-4C8A5B61B8E4">
+            <bpsim:TimeParameters>
+              <bpsim:ProcessingTime>
+                <bpsim:NormalDistribution mean="0" standardDeviation="0"/>
+              </bpsim:ProcessingTime>
+            </bpsim:TimeParameters>
+            <bpsim:ResourceParameters>
+              <bpsim:Availability>
+                <bpsim:FloatingParameter value="0"/>
+              </bpsim:Availability>
+              <bpsim:Quantity>
+                <bpsim:FloatingParameter value="0"/>
+              </bpsim:Quantity>
+            </bpsim:ResourceParameters>
+            <bpsim:CostParameters>
+              <bpsim:UnitCost>
+                <bpsim:FloatingParameter value="0"/>
+              </bpsim:UnitCost>
+            </bpsim:CostParameters>
+          </bpsim:ElementParameters>
+          <bpsim:ElementParameters 
elementRef="_10B17284-9CB6-4B80-9BE0-EE862F9E7178">
+            <bpsim:TimeParameters>
+              <bpsim:ProcessingTime>
+                <bpsim:NormalDistribution mean="0" standardDeviation="0"/>
+              </bpsim:ProcessingTime>
+            </bpsim:TimeParameters>
+            <bpsim:ResourceParameters>
+              <bpsim:Availability>
+                <bpsim:FloatingParameter value="0"/>
+              </bpsim:Availability>
+              <bpsim:Quantity>
+                <bpsim:FloatingParameter value="0"/>
+              </bpsim:Quantity>
+            </bpsim:ResourceParameters>
+            <bpsim:CostParameters>
+              <bpsim:UnitCost>
+                <bpsim:FloatingParameter value="0"/>
+              </bpsim:UnitCost>
+            </bpsim:CostParameters>
+          </bpsim:ElementParameters>
+        </bpsim:Scenario>
+      </bpsim:BPSimData>
+    </bpmn2:extensionElements>
+    <bpmn2:source>_hNupoNpwEDyMua5P8aJUyQ</bpmn2:source>
+    <bpmn2:target>_hNupoNpwEDyMua5P8aJUyQ</bpmn2:target>
+  </bpmn2:relationship>
+</bpmn2:definitions>
\ No newline at end of file
diff --git 
a/kogito-quarkus-examples/process-instance-migration-quarkus/src/main/resources/simple.bpmn
 
b/kogito-quarkus-examples/process-instance-migration-quarkus/src/main/resources/simple.bpmn
new file mode 100644
index 000000000..685f2afb7
--- /dev/null
+++ 
b/kogito-quarkus-examples/process-instance-migration-quarkus/src/main/resources/simple.bpmn
@@ -0,0 +1,155 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<bpmn2:definitions xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL"; 
xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI"; 
xmlns:bpsim="http://www.bpsim.org/schemas/1.0"; 
xmlns:dc="http://www.omg.org/spec/DD/20100524/DC"; 
xmlns:di="http://www.omg.org/spec/DD/20100524/DI"; 
xmlns:drools="http://www.jboss.org/drools"; xmlns:xsi="xsi" 
id="_hNcVwNpwEDykP42egfgpsw" 
xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd 
http://www.jboss.org/drools drools.xsd http://www [...]
+  <bpmn2:signal id="_-567202649" name="continue"/>
+  <bpmn2:collaboration id="_B74C94C3-37FB-4F18-B715-5A7F84AF4F37" 
name="Default Collaboration">
+    <bpmn2:participant id="_4F3DC3DF-6D6C-42C1-A0C2-1EAA494C9C88" name="Pool 
Participant" processRef="simple"/>
+  </bpmn2:collaboration>
+  <bpmn2:process id="simple" drools:packageName="com.example" 
drools:version="1.0" drools:adHoc="false" name="simple" isExecutable="true" 
processType="Public">
+    <bpmn2:sequenceFlow id="_FA3E1FF8-4894-47DA-90EB-DAB27BD7E925" 
sourceRef="_7C0F340A-57A6-40ED-A802-4C8A5B61B8E4" 
targetRef="_8F029B9C-9B3C-4907-8C68-69B30FD85A88">
+      <bpmn2:extensionElements>
+        <drools:metaData name="isAutoConnection.target">
+          <drools:metaValue><![CDATA[true]]></drools:metaValue>
+        </drools:metaData>
+      </bpmn2:extensionElements>
+    </bpmn2:sequenceFlow>
+    <bpmn2:sequenceFlow id="_7B3EEFD3-98FD-4AF7-9038-E66015F565B9" 
sourceRef="_8430CA7E-8CC6-4C2C-9664-6B5BBD5E36CB" 
targetRef="_7C0F340A-57A6-40ED-A802-4C8A5B61B8E4">
+      <bpmn2:extensionElements>
+        <drools:metaData name="isAutoConnection.target">
+          <drools:metaValue><![CDATA[true]]></drools:metaValue>
+        </drools:metaData>
+      </bpmn2:extensionElements>
+    </bpmn2:sequenceFlow>
+    <bpmn2:sequenceFlow id="_D77BDF48-2A9F-4032-9BE5-AC111F59EE88" 
sourceRef="_9660EA72-BFEC-4FAE-B5C3-48513A420288" 
targetRef="_8430CA7E-8CC6-4C2C-9664-6B5BBD5E36CB">
+      <bpmn2:extensionElements>
+        <drools:metaData name="isAutoConnection.target">
+          <drools:metaValue><![CDATA[true]]></drools:metaValue>
+        </drools:metaData>
+      </bpmn2:extensionElements>
+    </bpmn2:sequenceFlow>
+    <bpmn2:sequenceFlow id="_C7A1A566-057F-4A80-B654-61270F82F365" 
sourceRef="_D7D85E86-FA30-43CB-9DB6-A3FC067049C1" 
targetRef="_9660EA72-BFEC-4FAE-B5C3-48513A420288"/>
+    <bpmn2:endEvent id="_8F029B9C-9B3C-4907-8C68-69B30FD85A88">
+      <bpmn2:incoming>_FA3E1FF8-4894-47DA-90EB-DAB27BD7E925</bpmn2:incoming>
+    </bpmn2:endEvent>
+    <bpmn2:scriptTask id="_7C0F340A-57A6-40ED-A802-4C8A5B61B8E4" name="log 
process continuation" scriptFormat="http://www.java.com/java";>
+      <bpmn2:extensionElements>
+        <drools:metaData name="elementname">
+          <drools:metaValue><![CDATA[log process 
continuation]]></drools:metaValue>
+        </drools:metaData>
+      </bpmn2:extensionElements>
+      <bpmn2:incoming>_7B3EEFD3-98FD-4AF7-9038-E66015F565B9</bpmn2:incoming>
+      <bpmn2:outgoing>_FA3E1FF8-4894-47DA-90EB-DAB27BD7E925</bpmn2:outgoing>
+      <bpmn2:script>System.out.println("Ending process " + 
kcontext.getProcessInstance().getId() + " [" + 
kcontext.getProcessInstance().getProcessName() + ", v" + 
kcontext.getProcessInstance().getProcessVersion() + "]");</bpmn2:script>
+    </bpmn2:scriptTask>
+    <bpmn2:intermediateCatchEvent id="_8430CA7E-8CC6-4C2C-9664-6B5BBD5E36CB">
+      <bpmn2:incoming>_D77BDF48-2A9F-4032-9BE5-AC111F59EE88</bpmn2:incoming>
+      <bpmn2:outgoing>_7B3EEFD3-98FD-4AF7-9038-E66015F565B9</bpmn2:outgoing>
+      <bpmn2:signalEventDefinition signalRef="_-567202649"/>
+    </bpmn2:intermediateCatchEvent>
+    <bpmn2:scriptTask id="_9660EA72-BFEC-4FAE-B5C3-48513A420288" name="log 
process creation" scriptFormat="http://www.java.com/java";>
+      <bpmn2:extensionElements>
+        <drools:metaData name="elementname">
+          <drools:metaValue><![CDATA[log process creation]]></drools:metaValue>
+        </drools:metaData>
+      </bpmn2:extensionElements>
+      <bpmn2:incoming>_C7A1A566-057F-4A80-B654-61270F82F365</bpmn2:incoming>
+      <bpmn2:outgoing>_D77BDF48-2A9F-4032-9BE5-AC111F59EE88</bpmn2:outgoing>
+      <bpmn2:script>System.out.println("Started process " + 
kcontext.getProcessInstance().getId() + " [" + 
kcontext.getProcessInstance().getProcessName() + ", v" + 
kcontext.getProcessInstance().getProcessVersion() + "]");</bpmn2:script>
+    </bpmn2:scriptTask>
+    <bpmn2:startEvent id="_D7D85E86-FA30-43CB-9DB6-A3FC067049C1">
+      <bpmn2:outgoing>_C7A1A566-057F-4A80-B654-61270F82F365</bpmn2:outgoing>
+    </bpmn2:startEvent>
+  </bpmn2:process>
+  <bpmndi:BPMNDiagram>
+    <bpmndi:BPMNPlane bpmnElement="simple">
+      <bpmndi:BPMNShape id="shape__D7D85E86-FA30-43CB-9DB6-A3FC067049C1" 
bpmnElement="_D7D85E86-FA30-43CB-9DB6-A3FC067049C1">
+        <dc:Bounds height="56" width="56" x="164" y="261"/>
+      </bpmndi:BPMNShape>
+      <bpmndi:BPMNShape id="shape__9660EA72-BFEC-4FAE-B5C3-48513A420288" 
bpmnElement="_9660EA72-BFEC-4FAE-B5C3-48513A420288">
+        <dc:Bounds height="102" width="154" x="300" y="238"/>
+      </bpmndi:BPMNShape>
+      <bpmndi:BPMNShape id="shape__8430CA7E-8CC6-4C2C-9664-6B5BBD5E36CB" 
bpmnElement="_8430CA7E-8CC6-4C2C-9664-6B5BBD5E36CB">
+        <dc:Bounds height="56" width="56" x="534" y="261"/>
+      </bpmndi:BPMNShape>
+      <bpmndi:BPMNShape id="shape__7C0F340A-57A6-40ED-A802-4C8A5B61B8E4" 
bpmnElement="_7C0F340A-57A6-40ED-A802-4C8A5B61B8E4">
+        <dc:Bounds height="102" width="154" x="670" y="238"/>
+      </bpmndi:BPMNShape>
+      <bpmndi:BPMNShape id="shape__8F029B9C-9B3C-4907-8C68-69B30FD85A88" 
bpmnElement="_8F029B9C-9B3C-4907-8C68-69B30FD85A88">
+        <dc:Bounds height="56" width="56" x="882" y="261"/>
+      </bpmndi:BPMNShape>
+      <bpmndi:BPMNEdge 
id="edge_shape__D7D85E86-FA30-43CB-9DB6-A3FC067049C1_to_shape__9660EA72-BFEC-4FAE-B5C3-48513A420288"
 bpmnElement="_C7A1A566-057F-4A80-B654-61270F82F365">
+        <di:waypoint x="192" y="289"/>
+        <di:waypoint x="377" y="289"/>
+      </bpmndi:BPMNEdge>
+      <bpmndi:BPMNEdge 
id="edge_shape__9660EA72-BFEC-4FAE-B5C3-48513A420288_to_shape__8430CA7E-8CC6-4C2C-9664-6B5BBD5E36CB"
 bpmnElement="_D77BDF48-2A9F-4032-9BE5-AC111F59EE88">
+        <di:waypoint x="377" y="289"/>
+        <di:waypoint x="534" y="289"/>
+      </bpmndi:BPMNEdge>
+      <bpmndi:BPMNEdge 
id="edge_shape__8430CA7E-8CC6-4C2C-9664-6B5BBD5E36CB_to_shape__7C0F340A-57A6-40ED-A802-4C8A5B61B8E4"
 bpmnElement="_7B3EEFD3-98FD-4AF7-9038-E66015F565B9">
+        <di:waypoint x="562" y="289"/>
+        <di:waypoint x="698" y="238"/>
+      </bpmndi:BPMNEdge>
+      <bpmndi:BPMNEdge 
id="edge_shape__7C0F340A-57A6-40ED-A802-4C8A5B61B8E4_to_shape__8F029B9C-9B3C-4907-8C68-69B30FD85A88"
 bpmnElement="_FA3E1FF8-4894-47DA-90EB-DAB27BD7E925">
+        <di:waypoint x="747" y="289"/>
+        <di:waypoint x="959" y="261"/>
+      </bpmndi:BPMNEdge>
+    </bpmndi:BPMNPlane>
+  </bpmndi:BPMNDiagram>
+  <bpmn2:relationship type="BPSimData">
+    <bpmn2:extensionElements>
+      <bpsim:BPSimData>
+        <bpsim:Scenario id="default" name="Simulationscenario">
+          <bpsim:ScenarioParameters/>
+          <bpsim:ElementParameters 
elementRef="_D7D85E86-FA30-43CB-9DB6-A3FC067049C1">
+            <bpsim:TimeParameters>
+              <bpsim:ProcessingTime>
+                <bpsim:NormalDistribution mean="0" standardDeviation="0"/>
+              </bpsim:ProcessingTime>
+            </bpsim:TimeParameters>
+          </bpsim:ElementParameters>
+          <bpsim:ElementParameters 
elementRef="_9660EA72-BFEC-4FAE-B5C3-48513A420288">
+            <bpsim:TimeParameters>
+              <bpsim:ProcessingTime>
+                <bpsim:NormalDistribution mean="0" standardDeviation="0"/>
+              </bpsim:ProcessingTime>
+            </bpsim:TimeParameters>
+            <bpsim:ResourceParameters>
+              <bpsim:Availability>
+                <bpsim:FloatingParameter value="0"/>
+              </bpsim:Availability>
+              <bpsim:Quantity>
+                <bpsim:FloatingParameter value="0"/>
+              </bpsim:Quantity>
+            </bpsim:ResourceParameters>
+            <bpsim:CostParameters>
+              <bpsim:UnitCost>
+                <bpsim:FloatingParameter value="0"/>
+              </bpsim:UnitCost>
+            </bpsim:CostParameters>
+          </bpsim:ElementParameters>
+          <bpsim:ElementParameters 
elementRef="_7C0F340A-57A6-40ED-A802-4C8A5B61B8E4">
+            <bpsim:TimeParameters>
+              <bpsim:ProcessingTime>
+                <bpsim:NormalDistribution mean="0" standardDeviation="0"/>
+              </bpsim:ProcessingTime>
+            </bpsim:TimeParameters>
+            <bpsim:ResourceParameters>
+              <bpsim:Availability>
+                <bpsim:FloatingParameter value="0"/>
+              </bpsim:Availability>
+              <bpsim:Quantity>
+                <bpsim:FloatingParameter value="0"/>
+              </bpsim:Quantity>
+            </bpsim:ResourceParameters>
+            <bpsim:CostParameters>
+              <bpsim:UnitCost>
+                <bpsim:FloatingParameter value="0"/>
+              </bpsim:UnitCost>
+            </bpsim:CostParameters>
+          </bpsim:ElementParameters>
+        </bpsim:Scenario>
+      </bpsim:BPSimData>
+    </bpmn2:extensionElements>
+    <bpmn2:source>_hNcVwNpwEDykP42egfgpsw</bpmn2:source>
+    <bpmn2:target>_hNcVwNpwEDykP42egfgpsw</bpmn2:target>
+  </bpmn2:relationship>
+</bpmn2:definitions>
\ No newline at end of file


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to