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

pefernan 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 ec8a56eb7 [Incubator-kie-issues-1849] Updated Readme files to use new 
generic usertasks api (#2079)
ec8a56eb7 is described below

commit ec8a56eb76d5dd1bc02f60bbe0d6f07e06cacae3
Author: Deepak Joseph <[email protected]>
AuthorDate: Fri Feb 28 21:43:22 2025 +0530

    [Incubator-kie-issues-1849] Updated Readme files to use new generic 
usertasks api (#2079)
    
    * Updated Readme files to use new generic usertasks api
    
    * Fixes
---
 .../process-business-rules-quarkus/README.md       |  52 ++----
 .../main/resources/org/acme/travels/persons.bpmn   |  81 +++++-----
 .../process-error-handling/README.md               |  44 +-----
 .../main/resources/org/acme/error-handling.bpmn    |  15 +-
 .../process-monitoring-quarkus/README.md           |  79 +++++-----
 .../README.md                                      |  35 ++---
 .../process-business-rules-springboot/README.md    |  52 ++----
 .../main/resources/org/acme/travels/persons.bpmn   | 175 +++++++++++----------
 .../process-monitoring-springboot/README.md        |  80 +++++-----
 .../README.md                                      |  31 +---
 10 files changed, 291 insertions(+), 353 deletions(-)

diff --git a/kogito-quarkus-examples/process-business-rules-quarkus/README.md 
b/kogito-quarkus-examples/process-business-rules-quarkus/README.md
index 5b3d8e282..b71fe3b30 100644
--- a/kogito-quarkus-examples/process-business-rules-quarkus/README.md
+++ b/kogito-quarkus-examples/process-business-rules-quarkus/README.md
@@ -159,7 +159,7 @@ Because the person is evaluated as an adult, no outstanding 
tasks should be here
 We can verify there is no task running for Children Handling using following 
command:
 
 ```sh
-curl http://localhost:8080/persons/{uuid}/tasks
+curl http://localhost:8080/usertasks/instance?user=jdoe
 ```
 where uuid is the id returned in the previous step.
 
@@ -197,60 +197,38 @@ After the Curl command you should see a similar console 
log
 
 Because the person is not evaluated as an adult, there should be outstanding 
tasks for given person.
 
-To verify there is a running task for Children
+To verify there is a running user task for Children
 
 ```sh
-curl http://localhost:8080/persons/{uuid}/tasks
+curl http://localhost:8080/usertasks/instance?user=jdoe 
 ```
-where uuid is the id returned from the preivous step.
 
 Should return something like
 
 ```json
-[{"id":"c59054b9-aa1d-4771-bc5e-40f8b32d3ff5","name":"ChildrenHandling".....}]
+[{"id":"1676f775-0759-4579-9676-f5c433689c2a","userTaskId":"_D9CFCEE9-BCDF-48D0-8CB4-A55584DF0D9D",...}]
 ```
 
-
-Then to see the Task created perform the following command
-
-```
-curl http://localhost:8080/persons/{uuid}/ChildrenHandling/{tuuid}
-```
-
-where uuid is persons id and tuuid is task id.
-
-It should return something similar to
-
-```json
-{
-    "person":{
-        "name":"john",
-        "age":5,
-        "adult":false
-    },
-    "id":"c59054b9-aa1d-4771-bc5e-40f8b32d3ff5",
-    "name":"ChildrenHandling"
-}
-```
-
-Then we can complete the task and validate child with
+Then we can complete the user task and validate child with
 
 ```sh
-curl -X POST -H 'Content-Type:application/json' -H 'Accept:application/json' 
-d '{}' http://localhost:8080/persons/{uuid}/ChildrenHandling/{tuuid}
+curl -X POST 
"http://localhost:8080/usertasks/instance/{userTaskId}/transition?user=jdoe"; -H 
"content-type: application/json" -d '{"transitionId": "complete","data": 
{"approve": true}}'
 ```
 
-Where uuid is persons id and tuuid is task id
+Where userTaskId is id returned from the previous query
 
 Should return something similar to
 
 ```json
 {
-    "id":"09f98756-b273-4ceb-9308-fae7cc423904",
-    "person":{
-        "name":"john",
-        "age":5,
-        "adult":false
-    }
+  "id": "1676f775-0759-4579-9676-f5c433689c2a",
+  "userTaskId": "_D9CFCEE9-BCDF-48D0-8CB4-A55584DF0D9D",
+  "status": {
+    "terminate": "COMPLETED",
+    "name": "Completed"
+  },
+  "taskName": "ChildrenHandling",
+  ...
 }
 ```
 and there should be no outstanding task for the person anymore.
diff --git 
a/kogito-quarkus-examples/process-business-rules-quarkus/src/main/resources/org/acme/travels/persons.bpmn
 
b/kogito-quarkus-examples/process-business-rules-quarkus/src/main/resources/org/acme/travels/persons.bpmn
index ea1eaee70..0263634b3 100644
--- 
a/kogito-quarkus-examples/process-business-rules-quarkus/src/main/resources/org/acme/travels/persons.bpmn
+++ 
b/kogito-quarkus-examples/process-business-rules-quarkus/src/main/resources/org/acme/travels/persons.bpmn
@@ -1,4 +1,5 @@
-<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="_ugUwUE8QEDiTNMCLyjv0ag" 
exporter="jBPM Process Modeler" exporterVersion="2.0" 
targetNamespace="http://www.omg. [...]
+<?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="_IppPkNaGED23pdY9m9EzMw" 
xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd 
http://www. [...]
   <bpmn2:itemDefinition id="_personItem" 
structureRef="org.acme.travels.Person"/>
   <bpmn2:itemDefinition 
id="__D9CFCEE9-BCDF-48D0-8CB4-A55584DF0D9D_SkippableInputXItem" 
structureRef="Object"/>
   <bpmn2:itemDefinition 
id="__D9CFCEE9-BCDF-48D0-8CB4-A55584DF0D9D_PriorityInputXItem" 
structureRef="Object"/>
@@ -13,18 +14,23 @@
   <bpmn2:itemDefinition 
id="__D9CFCEE9-BCDF-48D0-8CB4-A55584DF0D9D_NotStartedNotifyInputXItem" 
structureRef="Object"/>
   <bpmn2:itemDefinition 
id="__D9CFCEE9-BCDF-48D0-8CB4-A55584DF0D9D_NotCompletedNotifyInputXItem" 
structureRef="Object"/>
   <bpmn2:itemDefinition 
id="__D9CFCEE9-BCDF-48D0-8CB4-A55584DF0D9D_personInputXItem" 
structureRef="org.acme.travels.Person"/>
+  <bpmn2:itemDefinition 
id="__7B8CC121-6F99-464A-93F8-9EAC4BE4601A_fileNameInputXItem" 
structureRef="java.lang.String"/>
   <bpmn2:itemDefinition 
id="__7B8CC121-6F99-464A-93F8-9EAC4BE4601A_namespaceInputXItem" 
structureRef="java.lang.String"/>
   <bpmn2:itemDefinition 
id="__7B8CC121-6F99-464A-93F8-9EAC4BE4601A_modelInputXItem" 
structureRef="java.lang.String"/>
+  <bpmn2:itemDefinition 
id="__7B8CC121-6F99-464A-93F8-9EAC4BE4601A_decisionInputXItem" 
structureRef="java.lang.String"/>
   <bpmn2:itemDefinition 
id="__7B8CC121-6F99-464A-93F8-9EAC4BE4601A_personsInputXItem" 
structureRef="org.amce.travels.Person"/>
-  <bpmn2:process id="persons" drools:packageName="org.acme.travels" 
drools:version="1.0" drools:adHoc="false" name="persons" isExecutable="true">
+  <bpmn2:collaboration id="_483C93B5-FF4A-4D4C-BA46-9BFA66A634EC" 
name="Default Collaboration">
+    <bpmn2:participant id="_2B87CE59-811E-4547-B7DE-A12A918C76CA" name="Pool 
Participant" processRef="persons"/>
+  </bpmn2:collaboration>
+  <bpmn2:process id="persons" drools:packageName="org.acme.travels" 
drools:version="1.0" drools:adHoc="false" name="persons" isExecutable="true" 
processType="Public">
     <bpmn2:property id="person" itemSubjectRef="_personItem" name="person"/>
     <bpmn2:sequenceFlow id="_41D07816-A956-491C-9787-5B8C0B8C4F58" 
sourceRef="_F2CC5C1D-5116-4C20-8702-A8357341790F" 
targetRef="_7B8CC121-6F99-464A-93F8-9EAC4BE4601A">
       <bpmn2:extensionElements>
         <drools:metaData name="isAutoConnection.source">
-          <drools:metaValue>true</drools:metaValue>
+          <drools:metaValue><![CDATA[true]]></drools:metaValue>
         </drools:metaData>
         <drools:metaData name="isAutoConnection.target">
-          <drools:metaValue>true</drools:metaValue>
+          <drools:metaValue><![CDATA[true]]></drools:metaValue>
         </drools:metaData>
       </bpmn2:extensionElements>
     </bpmn2:sequenceFlow>
@@ -32,23 +38,23 @@
     <bpmn2:sequenceFlow id="_C93EF8F2-D9C0-45D1-A3D6-C8A376D07806" 
sourceRef="_D9CFCEE9-BCDF-48D0-8CB4-A55584DF0D9D" 
targetRef="_6BDF2751-F544-4AFC-AB47-8C5F52EC97AD">
       <bpmn2:extensionElements>
         <drools:metaData name="isAutoConnection.source">
-          <drools:metaValue>true</drools:metaValue>
+          <drools:metaValue><![CDATA[true]]></drools:metaValue>
         </drools:metaData>
         <drools:metaData name="isAutoConnection.target">
-          <drools:metaValue>true</drools:metaValue>
+          <drools:metaValue><![CDATA[true]]></drools:metaValue>
         </drools:metaData>
       </bpmn2:extensionElements>
     </bpmn2:sequenceFlow>
     <bpmn2:sequenceFlow id="_22717A42-3E59-431B-8AF8-C5061A69B295" 
sourceRef="_CB2B4CEB-E636-4F0C-904B-3468083FF1EF" 
targetRef="_D9CFCEE9-BCDF-48D0-8CB4-A55584DF0D9D">
-      <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression" 
id="_ugcsIE8QEDiTNMCLyjv0ag" language="http://www.java.com/java";>return 
person.isAdult() == false;</bpmn2:conditionExpression>
+      <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression" 
language="http://www.java.com/java";><![CDATA[return person.isAdult() == 
false;]]></bpmn2:conditionExpression>
     </bpmn2:sequenceFlow>
     <bpmn2:sequenceFlow id="_FA444C47-2749-42FF-ACE3-7CF52A2AB11A" 
sourceRef="_CB2B4CEB-E636-4F0C-904B-3468083FF1EF" 
targetRef="_44052DCF-2D80-48EC-9691-556FEDD102FD">
-      <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression" 
id="_ugcsIU8QEDiTNMCLyjv0ag" language="http://www.java.com/java";>return 
person.isAdult() == true;</bpmn2:conditionExpression>
+      <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression" 
language="http://www.java.com/java";><![CDATA[return person.isAdult() == 
true;]]></bpmn2:conditionExpression>
     </bpmn2:sequenceFlow>
     <bpmn2:endEvent id="_6BDF2751-F544-4AFC-AB47-8C5F52EC97AD" name="End Event 
1">
       <bpmn2:extensionElements>
         <drools:metaData name="elementname">
-          <drools:metaValue>End Event 1</drools:metaValue>
+          <drools:metaValue><![CDATA[End Event 1]]></drools:metaValue>
         </drools:metaData>
       </bpmn2:extensionElements>
       <bpmn2:incoming>_C93EF8F2-D9C0-45D1-A3D6-C8A376D07806</bpmn2:incoming>
@@ -56,7 +62,7 @@
     <bpmn2:startEvent id="_F2CC5C1D-5116-4C20-8702-A8357341790F" 
name="StartProcess">
       <bpmn2:extensionElements>
         <drools:metaData name="elementname">
-          <drools:metaValue>StartProcess</drools:metaValue>
+          <drools:metaValue><![CDATA[StartProcess]]></drools:metaValue>
         </drools:metaData>
       </bpmn2:extensionElements>
       <bpmn2:outgoing>_41D07816-A956-491C-9787-5B8C0B8C4F58</bpmn2:outgoing>
@@ -64,18 +70,18 @@
     <bpmn2:businessRuleTask id="_7B8CC121-6F99-464A-93F8-9EAC4BE4601A" 
drools:ruleFlowGroup="unit:org.acme.travels.PersonValidationService" 
name="Evaluate Person" implementation="http://www.jboss.org/drools/rule";>
       <bpmn2:extensionElements>
         <drools:metaData name="elementname">
-          <drools:metaValue>Evaluate Person</drools:metaValue>
+          <drools:metaValue><![CDATA[Evaluate Person]]></drools:metaValue>
         </drools:metaData>
       </bpmn2:extensionElements>
       <bpmn2:incoming>_41D07816-A956-491C-9787-5B8C0B8C4F58</bpmn2:incoming>
       <bpmn2:outgoing>_29B77FA9-3C5F-4EC3-9F37-5D74C182F3C0</bpmn2:outgoing>
-      <bpmn2:ioSpecification id="_ugd6QE8QEDiTNMCLyjv0ag">
+      <bpmn2:ioSpecification>
         <bpmn2:dataInput 
id="_7B8CC121-6F99-464A-93F8-9EAC4BE4601A_personsInputX" 
drools:dtype="org.amce.travels.Person" 
itemSubjectRef="__7B8CC121-6F99-464A-93F8-9EAC4BE4601A_personsInputXItem" 
name="persons"/>
-        <bpmn2:inputSet id="_ugd6QU8QEDiTNMCLyjv0ag">
+        <bpmn2:inputSet>
           
<bpmn2:dataInputRefs>_7B8CC121-6F99-464A-93F8-9EAC4BE4601A_personsInputX</bpmn2:dataInputRefs>
         </bpmn2:inputSet>
       </bpmn2:ioSpecification>
-      <bpmn2:dataInputAssociation id="_ugehUE8QEDiTNMCLyjv0ag">
+      <bpmn2:dataInputAssociation>
         <bpmn2:sourceRef>person</bpmn2:sourceRef>
         
<bpmn2:targetRef>_7B8CC121-6F99-464A-93F8-9EAC4BE4601A_personsInputX</bpmn2:targetRef>
       </bpmn2:dataInputAssociation>
@@ -83,7 +89,7 @@
     <bpmn2:exclusiveGateway id="_CB2B4CEB-E636-4F0C-904B-3468083FF1EF" 
name="Exclusive Gateway 1" gatewayDirection="Diverging">
       <bpmn2:extensionElements>
         <drools:metaData name="elementname">
-          <drools:metaValue>Exclusive Gateway 1</drools:metaValue>
+          <drools:metaValue><![CDATA[Exclusive Gateway 1]]></drools:metaValue>
         </drools:metaData>
       </bpmn2:extensionElements>
       <bpmn2:incoming>_29B77FA9-3C5F-4EC3-9F37-5D74C182F3C0</bpmn2:incoming>
@@ -93,53 +99,58 @@
     <bpmn2:userTask id="_D9CFCEE9-BCDF-48D0-8CB4-A55584DF0D9D" name="Special 
handling for children">
       <bpmn2:extensionElements>
         <drools:metaData name="elementname">
-          <drools:metaValue>Special handling for children</drools:metaValue>
+          <drools:metaValue><![CDATA[Special handling for 
children]]></drools:metaValue>
         </drools:metaData>
       </bpmn2:extensionElements>
       <bpmn2:incoming>_22717A42-3E59-431B-8AF8-C5061A69B295</bpmn2:incoming>
       <bpmn2:outgoing>_C93EF8F2-D9C0-45D1-A3D6-C8A376D07806</bpmn2:outgoing>
-      <bpmn2:ioSpecification id="_ugfIYE8QEDiTNMCLyjv0ag">
+      <bpmn2:ioSpecification>
         <bpmn2:dataInput 
id="_D9CFCEE9-BCDF-48D0-8CB4-A55584DF0D9D_TaskNameInputX" drools:dtype="Object" 
itemSubjectRef="__D9CFCEE9-BCDF-48D0-8CB4-A55584DF0D9D_TaskNameInputXItem" 
name="TaskName"/>
         <bpmn2:dataInput 
id="_D9CFCEE9-BCDF-48D0-8CB4-A55584DF0D9D_personInputX" 
drools:dtype="org.acme.travels.Person" 
itemSubjectRef="__D9CFCEE9-BCDF-48D0-8CB4-A55584DF0D9D_personInputXItem" 
name="person"/>
         <bpmn2:dataInput 
id="_D9CFCEE9-BCDF-48D0-8CB4-A55584DF0D9D_SkippableInputX" 
drools:dtype="Object" 
itemSubjectRef="__D9CFCEE9-BCDF-48D0-8CB4-A55584DF0D9D_SkippableInputXItem" 
name="Skippable"/>
         <bpmn2:dataInput 
id="_D9CFCEE9-BCDF-48D0-8CB4-A55584DF0D9D_PriorityInputX" drools:dtype="Object" 
itemSubjectRef="__D9CFCEE9-BCDF-48D0-8CB4-A55584DF0D9D_PriorityInputXItem" 
name="Priority"/>
-        <bpmn2:inputSet id="_ugfvcE8QEDiTNMCLyjv0ag">
+        <bpmn2:inputSet>
           
<bpmn2:dataInputRefs>_D9CFCEE9-BCDF-48D0-8CB4-A55584DF0D9D_TaskNameInputX</bpmn2:dataInputRefs>
           
<bpmn2:dataInputRefs>_D9CFCEE9-BCDF-48D0-8CB4-A55584DF0D9D_personInputX</bpmn2:dataInputRefs>
           
<bpmn2:dataInputRefs>_D9CFCEE9-BCDF-48D0-8CB4-A55584DF0D9D_SkippableInputX</bpmn2:dataInputRefs>
           
<bpmn2:dataInputRefs>_D9CFCEE9-BCDF-48D0-8CB4-A55584DF0D9D_PriorityInputX</bpmn2:dataInputRefs>
         </bpmn2:inputSet>
       </bpmn2:ioSpecification>
-      <bpmn2:dataInputAssociation id="_ugfvcU8QEDiTNMCLyjv0ag">
+      <bpmn2:dataInputAssociation>
         
<bpmn2:targetRef>_D9CFCEE9-BCDF-48D0-8CB4-A55584DF0D9D_TaskNameInputX</bpmn2:targetRef>
-        <bpmn2:assignment id="_ugfvck8QEDiTNMCLyjv0ag">
-          <bpmn2:from xsi:type="bpmn2:tFormalExpression" 
id="_uggWgE8QEDiTNMCLyjv0ag">ChildrenHandling</bpmn2:from>
-          <bpmn2:to xsi:type="bpmn2:tFormalExpression" 
id="_ugg9kE8QEDiTNMCLyjv0ag">_D9CFCEE9-BCDF-48D0-8CB4-A55584DF0D9D_TaskNameInputX</bpmn2:to>
+        <bpmn2:assignment>
+          <bpmn2:from 
xsi:type="bpmn2:tFormalExpression"><![CDATA[ChildrenHandling]]></bpmn2:from>
+          <bpmn2:to 
xsi:type="bpmn2:tFormalExpression"><![CDATA[_D9CFCEE9-BCDF-48D0-8CB4-A55584DF0D9D_TaskNameInputX]]></bpmn2:to>
         </bpmn2:assignment>
       </bpmn2:dataInputAssociation>
-      <bpmn2:dataInputAssociation id="_ugg9kU8QEDiTNMCLyjv0ag">
+      <bpmn2:dataInputAssociation>
         <bpmn2:sourceRef>person</bpmn2:sourceRef>
         
<bpmn2:targetRef>_D9CFCEE9-BCDF-48D0-8CB4-A55584DF0D9D_personInputX</bpmn2:targetRef>
       </bpmn2:dataInputAssociation>
-      <bpmn2:dataInputAssociation id="_ugg9kk8QEDiTNMCLyjv0ag">
+      <bpmn2:dataInputAssociation>
         
<bpmn2:targetRef>_D9CFCEE9-BCDF-48D0-8CB4-A55584DF0D9D_SkippableInputX</bpmn2:targetRef>
-        <bpmn2:assignment id="_ugg9k08QEDiTNMCLyjv0ag">
-          <bpmn2:from xsi:type="bpmn2:tFormalExpression" 
id="_ugg9lE8QEDiTNMCLyjv0ag">true</bpmn2:from>
-          <bpmn2:to xsi:type="bpmn2:tFormalExpression" 
id="_ugg9lU8QEDiTNMCLyjv0ag">_D9CFCEE9-BCDF-48D0-8CB4-A55584DF0D9D_SkippableInputX</bpmn2:to>
+        <bpmn2:assignment>
+          <bpmn2:from 
xsi:type="bpmn2:tFormalExpression"><![CDATA[true]]></bpmn2:from>
+          <bpmn2:to 
xsi:type="bpmn2:tFormalExpression"><![CDATA[_D9CFCEE9-BCDF-48D0-8CB4-A55584DF0D9D_SkippableInputX]]></bpmn2:to>
         </bpmn2:assignment>
       </bpmn2:dataInputAssociation>
-      <bpmn2:dataInputAssociation id="_ugg9lk8QEDiTNMCLyjv0ag">
+      <bpmn2:dataInputAssociation>
         
<bpmn2:targetRef>_D9CFCEE9-BCDF-48D0-8CB4-A55584DF0D9D_PriorityInputX</bpmn2:targetRef>
-        <bpmn2:assignment id="_ugg9l08QEDiTNMCLyjv0ag">
-          <bpmn2:from xsi:type="bpmn2:tFormalExpression" 
id="_ugg9mE8QEDiTNMCLyjv0ag">1</bpmn2:from>
-          <bpmn2:to xsi:type="bpmn2:tFormalExpression" 
id="_ughkoE8QEDiTNMCLyjv0ag">_D9CFCEE9-BCDF-48D0-8CB4-A55584DF0D9D_PriorityInputX</bpmn2:to>
+        <bpmn2:assignment>
+          <bpmn2:from 
xsi:type="bpmn2:tFormalExpression"><![CDATA[1]]></bpmn2:from>
+          <bpmn2:to 
xsi:type="bpmn2:tFormalExpression"><![CDATA[_D9CFCEE9-BCDF-48D0-8CB4-A55584DF0D9D_PriorityInputX]]></bpmn2:to>
         </bpmn2:assignment>
       </bpmn2:dataInputAssociation>
+      <bpmn2:potentialOwner id="_IpsS4NaGED23pdY9m9EzMw">
+        <bpmn2:resourceAssignmentExpression id="_Ips58NaGED23pdY9m9EzMw">
+          <bpmn2:formalExpression>jdoe</bpmn2:formalExpression>
+        </bpmn2:resourceAssignmentExpression>
+      </bpmn2:potentialOwner>
     </bpmn2:userTask>
     <bpmn2:endEvent id="_44052DCF-2D80-48EC-9691-556FEDD102FD" name="End Event 
2">
       <bpmn2:extensionElements>
         <drools:metaData name="elementname">
-          <drools:metaValue>End Event 2</drools:metaValue>
+          <drools:metaValue><![CDATA[End Event 2]]></drools:metaValue>
         </drools:metaData>
       </bpmn2:extensionElements>
       <bpmn2:incoming>_FA444C47-2749-42FF-ACE3-7CF52A2AB11A</bpmn2:incoming>
@@ -188,7 +199,7 @@
       </bpmndi:BPMNEdge>
     </bpmndi:BPMNPlane>
   </bpmndi:BPMNDiagram>
-  <bpmn2:relationship id="_ugjZ0E8QEDiTNMCLyjv0ag" type="BPSimData">
+  <bpmn2:relationship type="BPSimData">
     <bpmn2:extensionElements>
       <bpsim:BPSimData>
         <bpsim:Scenario id="default" name="Simulationscenario">
@@ -243,7 +254,7 @@
         </bpsim:Scenario>
       </bpsim:BPSimData>
     </bpmn2:extensionElements>
-    <bpmn2:source>_ugUwUE8QEDiTNMCLyjv0ag</bpmn2:source>
-    <bpmn2:target>_ugUwUE8QEDiTNMCLyjv0ag</bpmn2:target>
+    <bpmn2:source>_IppPkNaGED23pdY9m9EzMw</bpmn2:source>
+    <bpmn2:target>_IppPkNaGED23pdY9m9EzMw</bpmn2:target>
   </bpmn2:relationship>
 </bpmn2:definitions>
\ No newline at end of file
diff --git a/kogito-quarkus-examples/process-error-handling/README.md 
b/kogito-quarkus-examples/process-error-handling/README.md
index 14973444a..4dda9ffba 100644
--- a/kogito-quarkus-examples/process-error-handling/README.md
+++ b/kogito-quarkus-examples/process-error-handling/README.md
@@ -159,36 +159,18 @@ curl --request POST \
   --data '{"name" : "RETRY"}'
 ```
 
-An `error-handling` process instance is created, issue the following command 
to retrieve the process instance id:
+An `error-handling` process instance is created.
 
-```sh
-curl --request GET \
-  --url http://localhost:8080/error_handling \
-  --header 'accept: application/json' \
-  --header 'content-type: application/json'
-```
-
-Get the tasks from the process instance you got.
-
-**Make sure** to replace the _process instance id_:
+Get the user tasks
 
 ```sh
-curl --request GET \
-  --url 
http://localhost:8080/error_handling/11b37d40-3c01-4384-92cc-044ac8939dcc/tasks 
\
-  --header 'accept: application/json' \
-  --header 'content-type: application/json'
+curl http://localhost:8080/usertasks/instance?user=jdoe
 ```
 
 Complete the `Repair` task.
 
-**Make sure** to replace the _process instance id_ and _task instance id_:
-
 ```sh
-curl --request POST \
-  --url 
'http://localhost:8080/error_handling/11b37d40-3c01-4384-92cc-044ac8939dcc/Repair/5b947a11-67f3-4b77-b0d3-1fd422e6600d?phase=complete'
 \
-  --header 'accept: application/json' \
-  --header 'content-type: application/json' \
-  --data '{"input" : "Jimmy", "strategy" : "RETRY"}'
+curl -X POST 
"http://localhost:8080/usertasks/instance/{userTaskId}/transition?user=jdoe"; -H 
"content-type: application/json" -d '{"transitionId": "complete","data": 
{"input" : "Jimmy", "strategy" : "RETRY", "approve": true}}'
 ```
 
 The WIH logic is executed again using the new input parameter provided by the 
`error-handling` process.
@@ -208,11 +190,7 @@ Follow all the step in the previous paragraph, but 
complete the `Repair` task pr
 - **Complete strategy** The WIH logic is skipped but the task is marked 
completed, the main process proceeds picking the result provided by the 
`error-handling` process
 
   ```sh
-  curl --request POST \
-    --url 
'http://localhost:8080/error_handling/11b37d40-3c01-4384-92cc-044ac8939dcc/Repair/5b947a11-67f3-4b77-b0d3-1fd422e6600d?phase=complete'
 \
-    --header 'accept: application/json' \
-    --header 'content-type: application/json' \
-    --data '{"result" : "Hello Jimmy","strategy" : "COMPLETE"}'
+  curl -X POST 
"http://localhost:8080/usertasks/instance/{userTaskId}/transition?user=jdoe"; -H 
"content-type: application/json" -d '{"transitionId": "complete","data": 
{"result" : "Hello Jimmy", "strategy" : "COMPLETE", "approve": true}}'
   ```
 
   From the console output you should spot this line:
@@ -223,11 +201,7 @@ Follow all the step in the previous paragraph, but 
complete the `Repair` task pr
 - **Abort strategy** The WIH logic is skipped and the task is marked aborted, 
the main process proceeds but the `Custom Task` result is **null**. 
 
   ```sh
-  curl --request POST \
-    --url 
'http://localhost:8080/error_handling/11b37d40-3c01-4384-92cc-044ac8939dcc/Repair/5b947a11-67f3-4b77-b0d3-1fd422e6600d?phase=complete'
 \
-    --header 'accept: application/json' \
-    --header 'content-type: application/json' \
-    --data '{"strategy" : "ABORT"}'
+  curl -X POST 
"http://localhost:8080/usertasks/instance/{userTaskId}/transition?user=jdoe"; -H 
"content-type: application/json" -d '{"transitionId": "complete","data": 
{"strategy" : "ABORT", "approve": true}}'
   ```
 
   From the console output you should spot this line:
@@ -239,11 +213,7 @@ Follow all the step in the previous paragraph, but 
complete the `Repair` task pr
 - **Rethrow strategy** The WIH logic is skipped and the main process get an 
exception 
 
   ```sh
-  curl --request POST \
-    --url 
'http://localhost:8080/error_handling/11b37d40-3c01-4384-92cc-044ac8939dcc/Repair/5b947a11-67f3-4b77-b0d3-1fd422e6600d?phase=complete'
 \
-    --header 'accept: application/json' \
-    --header 'content-type: application/json' \
-    --data '{"strategy" : "RETHROW"}'
+  curl -X POST 
"http://localhost:8080/usertasks/instance/{userTaskId}/transition?user=jdoe"; -H 
"content-type: application/json" -d '{"transitionId": "complete","data": 
{"strategy" : "RETHROW", "approve": true}}'
   ```
 
   From the console output you should spot this line:
diff --git 
a/kogito-quarkus-examples/process-error-handling/src/main/resources/org/acme/error-handling.bpmn
 
b/kogito-quarkus-examples/process-error-handling/src/main/resources/org/acme/error-handling.bpmn
index fefe136f2..1f10aa00c 100644
--- 
a/kogito-quarkus-examples/process-error-handling/src/main/resources/org/acme/error-handling.bpmn
+++ 
b/kogito-quarkus-examples/process-error-handling/src/main/resources/org/acme/error-handling.bpmn
@@ -1,4 +1,5 @@
-<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="_o8I-QP3tEDm4ydqPmxbjQw" 
xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd 
http://www. [...]
+<?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="__Gc5MNfRED2i6Mg772tR6g" 
xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd 
http://www. [...]
   <bpmn2:itemDefinition id="_InputItem" structureRef="String"/>
   <bpmn2:itemDefinition id="_strategyItem" structureRef="String"/>
   <bpmn2:itemDefinition id="_ResultItem" structureRef="String"/>
@@ -21,6 +22,9 @@
   <bpmn2:itemDefinition 
id="__B0779086-B875-4664-B68D-1DCEE4D235C3_inputOutputXItem" 
structureRef="String"/>
   <bpmn2:itemDefinition 
id="__B0779086-B875-4664-B68D-1DCEE4D235C3_strategyOutputXItem" 
structureRef="Object"/>
   <bpmn2:itemDefinition 
id="__B0779086-B875-4664-B68D-1DCEE4D235C3_resultOutputXItem" 
structureRef="String"/>
+  <bpmn2:collaboration id="_19AAAF32-F27F-4825-B17B-0E1EB8F30840" 
name="Default Collaboration">
+    <bpmn2:participant id="_5A6DA944-F8CE-470C-82E7-8F22700C7B65" name="Pool 
Participant" processRef="error_handling"/>
+  </bpmn2:collaboration>
   <bpmn2:process id="error_handling" drools:packageName="org.acme" 
drools:version="1.0" drools:adHoc="false" name="error-handling" 
isExecutable="true" processType="Public">
     <bpmn2:property id="Input" itemSubjectRef="_InputItem" name="Input">
       <bpmn2:extensionElements>
@@ -132,6 +136,11 @@
         
<bpmn2:sourceRef>_B0779086-B875-4664-B68D-1DCEE4D235C3_resultOutputX</bpmn2:sourceRef>
         <bpmn2:targetRef>Result</bpmn2:targetRef>
       </bpmn2:dataOutputAssociation>
+      <bpmn2:potentialOwner id="__GeuYNfRED2i6Mg772tR6g">
+        <bpmn2:resourceAssignmentExpression id="__GeuYdfRED2i6Mg772tR6g">
+          <bpmn2:formalExpression>jdoe</bpmn2:formalExpression>
+        </bpmn2:resourceAssignmentExpression>
+      </bpmn2:potentialOwner>
     </bpmn2:userTask>
     <bpmn2:scriptTask id="_53FDCDF2-664B-4B1D-B971-3F8975D9F56D" name="Init" 
scriptFormat="http://www.java.com/java";>
       <bpmn2:extensionElements>
@@ -257,7 +266,7 @@
         </bpsim:Scenario>
       </bpsim:BPSimData>
     </bpmn2:extensionElements>
-    <bpmn2:source>_o8I-QP3tEDm4ydqPmxbjQw</bpmn2:source>
-    <bpmn2:target>_o8I-QP3tEDm4ydqPmxbjQw</bpmn2:target>
+    <bpmn2:source>__Gc5MNfRED2i6Mg772tR6g</bpmn2:source>
+    <bpmn2:target>__Gc5MNfRED2i6Mg772tR6g</bpmn2:target>
   </bpmn2:relationship>
 </bpmn2:definitions>
\ No newline at end of file
diff --git a/kogito-quarkus-examples/process-monitoring-quarkus/README.md 
b/kogito-quarkus-examples/process-monitoring-quarkus/README.md
index 168989e9a..fe99962ad 100644
--- a/kogito-quarkus-examples/process-monitoring-quarkus/README.md
+++ b/kogito-quarkus-examples/process-monitoring-quarkus/README.md
@@ -203,64 +203,71 @@ Example response:
 ]
 ```
 
-### GET /orderItems/{id}/tasks
+### GET /usertasks/instance
 
-Getting user tasks awaiting user action
+Getting user tasks details awaiting user action
 
 ```sh
-curl -X GET 
http://localhost:8080/orderItems/66c11e3e-c211-4cee-9a07-848b5e861bc5/tasks?user=john
+curl -X GET http://localhost:8080/usertasks/instance?user=john
 ```
 Example response:
 
 ```json
 [
-  {"id":"62f1c985-d31c-4ead-9906-2fe8d05937f0","name":"Verify order"}
-]
-```
-
-### GET /orderItems/{id}/Verify_order/{tid}
-
-Getting user task details
-
-```sh
-curl -X GET 
http://localhost:8080/orderItems/66c11e3e-c211-4cee-9a07-848b5e861bc5/Verify_order/62f1c985-d31c-4ead-9906-2fe8d05937f0?user=john
-```
-Example response:
-
-```json
-{
-  "id":"62f1c985-d31c-4ead-9906-2fe8d05937f0",
-  "input1":
   {
-    "orderNumber":"12345",
-    "shipped":false,
-    "total":0.537941914075738
-  },
-  "name":"Verify order"
-}
+    "id": "bcbe9d60-4847-45f0-8069-e983f3f055e6",
+    "userTaskId": "UserTask_1",
+    "status": {
+      "terminate": null,
+      "name": "Reserved"
+    },
+    "taskName": "Verify order",
+    ...
+]
 ```
 
-### POST /orderItems/{id}/Verify_order/{tid}
+### POST /usertasks/instance/{taskId}/transition
 
 Complete user task
 
 ```sh
-curl -d '{}' -H "Content-Type: application/json" -X POST 
http://localhost:8080/orderItems/66c11e3e-c211-4cee-9a07-848b5e861bc5/Verify_order/62f1c985-d31c-4ead-9906-2fe8d05937f0?user=john
+curl -X POST 
"http://localhost:8080/usertasks/instance/{taskId}/transition?user=john"; -H 
"content-type: application/json" -d '{"transitionId": "complete","data": 
{"approve": true}}'
 ```
 
-
 As response the updated order is returned.
 
 Example response:
 
 ```json
 {
-  "id":"66c11e3e-c211-4cee-9a07-848b5e861bc5",
-  "order":
-  {
-    "orderNumber":"12345",
-    "shipped":false,
-    "total":0.537941914075738
-  }
+  "id": "bcbe9d60-4847-45f0-8069-e983f3f055e6",
+  "userTaskId": "UserTask_1",
+  "status": {
+    "terminate": "COMPLETED",
+    "name": "Completed"
+  },
+  "taskName": "Verify order",
+  "taskDescription": null,
+  "taskPriority": "1",
+  "potentialUsers": [
+    "john"
+  ],
+  "potentialGroups": [],
+  "adminUsers": [],
+  "adminGroups": [],
+  "excludedUsers": [],
+  "externalReferenceId": "eeae84c0-234d-472f-9fa0-004a2cf34cdc",
+  "actualOwner": "john",
+  "inputs": {
+    "input1": {
+      "orderNumber": "12345",
+      "shipped": false,
+      "total": 0.8903945184162633
+    }
+  },
+  "outputs": {
+    "approve": true
+  },
+  ...
 }
 ```
diff --git 
a/kogito-quarkus-examples/process-postgresql-persistence-quarkus/README.md 
b/kogito-quarkus-examples/process-postgresql-persistence-quarkus/README.md
index c6d3111ba..5fee2fa88 100644
--- a/kogito-quarkus-examples/process-postgresql-persistence-quarkus/README.md
+++ b/kogito-quarkus-examples/process-postgresql-persistence-quarkus/README.md
@@ -109,12 +109,12 @@ kogito.persistence.optimistic.lock=true
 ```
 Additionally, you can use below commands to set this property at runtime and 
build and run the application 
 
-```
+```sh
 mvn clean compile quarkus:dev -Dkogito.persistence.optimistic.lock=true
 ```
 or 
 
-```
+```sh
 mvn clean package
 java -Dkogito.persistence.optimistic.lock=true -jar 
target/quarkus-app/quarkus-run.jar
 ```
@@ -184,7 +184,7 @@ To make use of this application it is as simple as putting 
a sending request to
 
 Complete curl command can be found below:
 
-```
+```sh
 curl -X POST -H 'Content-Type:application/json' -H 'Accept:application/json' 
-d '{"name" : "my fancy deal", "traveller" : { "firstName" : "John", "lastName" 
: "Doe", "email" : "[email protected]", "nationality" : "American","address" 
: { "street" : "main street", "city" : "Boston", "zipCode" : "10005", "country" 
: "US" }}}' http://localhost:8080/deals
 ```
 
@@ -192,38 +192,21 @@ this will then trigger the review user task that you can 
work with.
 
 ### Get review task for given deal
 
-First you can display all active reviews of deals
+You can display all active reviews of deals by:
 
+```sh
+curl http://localhost:8080/usertasks/instance?user=john
 ```
-curl -H 'Content-Type:application/json' -H 'Accept:application/json' 
http://localhost:8080/dealreviews
-```
-
-based on the response you can select one of the reviews to see more details
-
-```
-curl -H 'Content-Type:application/json' -H 'Accept:application/json' 
http://localhost:8080/dealreviews/{uuid}/tasks?user=john
-```
-
-where uuid is the id of the deal review you want to work with.
-
-Next you can get the details assigned to review user task by
-
-```
-curl -H 'Content-Type:application/json' -H 'Accept:application/json' 
http://localhost:8080/dealreviews/{uuid}/review/{tuuid}?user=john
-```
-
-where uuid is the id of the deal review and tuuid is the id of the user task 
you want to get
-
 
 ### Complete review task for given deal
 
 Last but not least, you can complete the review user task by:
 
-```
-curl -X POST -H 'Content-Type:application/json' -H 'Accept:application/json' 
-d '{"review" : "very good work"}' 
http://localhost:8080/dealreviews/{uuid}/review/{tuuid}?user=john
+```sh
+curl -X POST 
"http://localhost:8080/usertasks/instance/{taskId}/transition?user=john"; -H 
"content-type: application/json" -d '{"transitionId": "complete","data": 
{"review" : "very good work", "approve": true}}'
 ```
 
-Where `{uuid}` is the id of the deal review and `{tuuid}` is the id of the 
user task you want to get.
+Where `{taskId}` is the id of the user task you want to complete.
 
 The review Log should look similar to:
 
diff --git 
a/kogito-springboot-examples/process-business-rules-springboot/README.md 
b/kogito-springboot-examples/process-business-rules-springboot/README.md
index a4caef0ff..5311a8526 100644
--- a/kogito-springboot-examples/process-business-rules-springboot/README.md
+++ b/kogito-springboot-examples/process-business-rules-springboot/README.md
@@ -131,7 +131,7 @@ Because the person is evaluated as an adult, no outstanding 
tasks should be here
 We can verify there is no task running for Children Handling using following 
command:
 
 ```
-curl http://localhost:8080/persons/{uuid}/tasks
+curl http://localhost:8080/usertasks/instance?user=jdoe
 ```
 where uuid is the id returned in the previous step.
 
@@ -169,60 +169,38 @@ After the Curl command you should see a similar console 
log
 
 Because the person is not evaluated as an adult, there should be outstanding 
tasks for given person.
 
-To verify there is a running task for Children
+To verify there is a running user task for Children
 
 ```sh
-curl http://localhost:8080/persons/{uuid}/tasks
+curl http://localhost:8080/usertasks/instance?user=jdoe 
 ```
-where uuid is the id returned from the preivous step.
 
 Should return something like
 
 ```json
-[{"id":"c59054b9-aa1d-4771-bc5e-40f8b32d3ff5","name":"ChildrenHandling".....}]
+[{"id":"1676f775-0759-4579-9676-f5c433689c2a","userTaskId":"_D9CFCEE9-BCDF-48D0-8CB4-A55584DF0D9D",...}]
 ```
 
-
-Then to see the Task created perform the following command
-
-```sh
-curl http://localhost:8080/persons/{uuid}/ChildrenHandling/{tuuid}
-```
-
-where uuid is persons id and tuuid is task id.
-
-It should return something similar to
-
-```json
-{
-    "person":{
-        "name":"john",
-        "age":5,
-        "adult":false
-    },
-    "id":"c59054b9-aa1d-4771-bc5e-40f8b32d3ff5",
-    "name":"ChildrenHandling"
-}
-```
-
-Then we can complete the task and validate child with
+Then we can complete the user task and validate child with
 
 ```sh
-curl -X POST -H 'Content-Type:application/json' -H 'Accept:application/json' 
-d '{}' http://localhost:8080/persons/{uuid}/ChildrenHandling/{tuuid}
+curl -X POST 
"http://localhost:8080/usertasks/instance/{userTaskId}/transition?user=jdoe"; -H 
"content-type: application/json" -d '{"transitionId": "complete","data": 
{"approve": true}}'
 ```
 
-Where uuid is persons id and tuuid is task id
+Where userTaskId is id returned from the previous query
 
 Should return something similar to
 
 ```json
 {
-    "id":"09f98756-b273-4ceb-9308-fae7cc423904",
-    "person":{
-        "name":"john",
-        "age":5,
-        "adult":false
-    }
+  "id": "1676f775-0759-4579-9676-f5c433689c2a",
+  "userTaskId": "_D9CFCEE9-BCDF-48D0-8CB4-A55584DF0D9D",
+  "status": {
+    "terminate": "COMPLETED",
+    "name": "Completed"
+  },
+  "taskName": "ChildrenHandling",
+  ...
 }
 ```
 and there should be no outstanding task for the person anymore.
diff --git 
a/kogito-springboot-examples/process-business-rules-springboot/src/main/resources/org/acme/travels/persons.bpmn
 
b/kogito-springboot-examples/process-business-rules-springboot/src/main/resources/org/acme/travels/persons.bpmn
index 72117980f..9746851a3 100644
--- 
a/kogito-springboot-examples/process-business-rules-springboot/src/main/resources/org/acme/travels/persons.bpmn
+++ 
b/kogito-springboot-examples/process-business-rules-springboot/src/main/resources/org/acme/travels/persons.bpmn
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<bpmn2:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xmlns="http://www.omg.org/bpmn20"; 
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="_G5ZvIEhiEeqkVIxkVOA-qw" 
xsi:schemaLocation="http://www.omg.org/spec/BPMN/201 [...]
+<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="_4ohXANfSED2VC-4u1Z0wUA" 
xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd 
http://www. [...]
   <bpmn2:itemDefinition id="_personItem" 
structureRef="org.acme.travels.Person"/>
   <bpmn2:itemDefinition 
id="__D9CFCEE9-BCDF-48D0-8CB4-A55584DF0D9D_SkippableInputXItem" 
structureRef="Object"/>
   <bpmn2:itemDefinition 
id="__D9CFCEE9-BCDF-48D0-8CB4-A55584DF0D9D_PriorityInputXItem" 
structureRef="Object"/>
@@ -14,16 +14,21 @@
   <bpmn2:itemDefinition 
id="__D9CFCEE9-BCDF-48D0-8CB4-A55584DF0D9D_NotStartedNotifyInputXItem" 
structureRef="Object"/>
   <bpmn2:itemDefinition 
id="__D9CFCEE9-BCDF-48D0-8CB4-A55584DF0D9D_NotCompletedNotifyInputXItem" 
structureRef="Object"/>
   <bpmn2:itemDefinition 
id="__D9CFCEE9-BCDF-48D0-8CB4-A55584DF0D9D_personInputXItem" 
structureRef="org.acme.travels.Person"/>
+  <bpmn2:itemDefinition 
id="__7B8CC121-6F99-464A-93F8-9EAC4BE4601A_fileNameInputXItem" 
structureRef="java.lang.String"/>
   <bpmn2:itemDefinition 
id="__7B8CC121-6F99-464A-93F8-9EAC4BE4601A_namespaceInputXItem" 
structureRef="java.lang.String"/>
   <bpmn2:itemDefinition 
id="__7B8CC121-6F99-464A-93F8-9EAC4BE4601A_modelInputXItem" 
structureRef="java.lang.String"/>
+  <bpmn2:itemDefinition 
id="__7B8CC121-6F99-464A-93F8-9EAC4BE4601A_decisionInputXItem" 
structureRef="java.lang.String"/>
   <bpmn2:itemDefinition 
id="__7B8CC121-6F99-464A-93F8-9EAC4BE4601A_personInputXItem" 
structureRef="org.acme.travels.Person"/>
   <bpmn2:itemDefinition 
id="__7B8CC121-6F99-464A-93F8-9EAC4BE4601A_personOutputXItem" 
structureRef="org.acme.travels.Person"/>
-  <bpmn2:process id="persons" drools:packageName="org.acme.travels" 
drools:version="1.0" drools:adHoc="false" name="persons" isExecutable="true">
+  <bpmn2:collaboration id="_F5D70D91-D3FE-4661-A28D-A32919192F3D" 
name="Default Collaboration">
+    <bpmn2:participant id="_67D23F51-440E-4614-A0F4-DB363807318D" name="Pool 
Participant" processRef="persons"/>
+  </bpmn2:collaboration>
+  <bpmn2:process id="persons" drools:packageName="org.acme.travels" 
drools:version="1.0" drools:adHoc="false" name="persons" isExecutable="true" 
processType="Public">
     <bpmn2:extensionElements>
       <drools:import name="org.acme.travels.Person"/>
     </bpmn2:extensionElements>
     <bpmn2:property id="person" itemSubjectRef="_personItem" name="person"/>
-    <bpmn2:sequenceFlow id="_41D07816-A956-491C-9787-5B8C0B8C4F58" 
drools:priority="1" sourceRef="_F2CC5C1D-5116-4C20-8702-A8357341790F" 
targetRef="_7B8CC121-6F99-464A-93F8-9EAC4BE4601A">
+    <bpmn2:sequenceFlow id="_41D07816-A956-491C-9787-5B8C0B8C4F58" 
sourceRef="_F2CC5C1D-5116-4C20-8702-A8357341790F" 
targetRef="_7B8CC121-6F99-464A-93F8-9EAC4BE4601A">
       <bpmn2:extensionElements>
         <drools:metaData name="isAutoConnection.source">
           <drools:metaValue><![CDATA[true]]></drools:metaValue>
@@ -33,8 +38,8 @@
         </drools:metaData>
       </bpmn2:extensionElements>
     </bpmn2:sequenceFlow>
-    <bpmn2:sequenceFlow id="_29B77FA9-3C5F-4EC3-9F37-5D74C182F3C0" 
drools:priority="1" sourceRef="_7B8CC121-6F99-464A-93F8-9EAC4BE4601A" 
targetRef="_CB2B4CEB-E636-4F0C-904B-3468083FF1EF"/>
-    <bpmn2:sequenceFlow id="_C93EF8F2-D9C0-45D1-A3D6-C8A376D07806" 
drools:priority="1" sourceRef="_D9CFCEE9-BCDF-48D0-8CB4-A55584DF0D9D" 
targetRef="_6BDF2751-F544-4AFC-AB47-8C5F52EC97AD">
+    <bpmn2:sequenceFlow id="_29B77FA9-3C5F-4EC3-9F37-5D74C182F3C0" 
sourceRef="_7B8CC121-6F99-464A-93F8-9EAC4BE4601A" 
targetRef="_CB2B4CEB-E636-4F0C-904B-3468083FF1EF"/>
+    <bpmn2:sequenceFlow id="_C93EF8F2-D9C0-45D1-A3D6-C8A376D07806" 
sourceRef="_D9CFCEE9-BCDF-48D0-8CB4-A55584DF0D9D" 
targetRef="_6BDF2751-F544-4AFC-AB47-8C5F52EC97AD">
       <bpmn2:extensionElements>
         <drools:metaData name="isAutoConnection.source">
           <drools:metaValue><![CDATA[true]]></drools:metaValue>
@@ -44,11 +49,11 @@
         </drools:metaData>
       </bpmn2:extensionElements>
     </bpmn2:sequenceFlow>
-    <bpmn2:sequenceFlow id="_22717A42-3E59-431B-8AF8-C5061A69B295" 
drools:priority="1" sourceRef="_CB2B4CEB-E636-4F0C-904B-3468083FF1EF" 
targetRef="_D9CFCEE9-BCDF-48D0-8CB4-A55584DF0D9D">
-      <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression" 
id="_G5ZvIUhiEeqkVIxkVOA-qw" 
language="http://www.java.com/java";><![CDATA[return person.isAdult() == 
false;]]></bpmn2:conditionExpression>
+    <bpmn2:sequenceFlow id="_22717A42-3E59-431B-8AF8-C5061A69B295" 
sourceRef="_CB2B4CEB-E636-4F0C-904B-3468083FF1EF" 
targetRef="_D9CFCEE9-BCDF-48D0-8CB4-A55584DF0D9D">
+      <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression" 
language="http://www.java.com/java";><![CDATA[return person.isAdult() == 
false;]]></bpmn2:conditionExpression>
     </bpmn2:sequenceFlow>
-    <bpmn2:sequenceFlow id="_FA444C47-2749-42FF-ACE3-7CF52A2AB11A" 
drools:priority="1" sourceRef="_CB2B4CEB-E636-4F0C-904B-3468083FF1EF" 
targetRef="_44052DCF-2D80-48EC-9691-556FEDD102FD">
-      <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression" 
id="_G5aWMEhiEeqkVIxkVOA-qw" 
language="http://www.java.com/java";><![CDATA[return person.isAdult() == 
true;]]></bpmn2:conditionExpression>
+    <bpmn2:sequenceFlow id="_FA444C47-2749-42FF-ACE3-7CF52A2AB11A" 
sourceRef="_CB2B4CEB-E636-4F0C-904B-3468083FF1EF" 
targetRef="_44052DCF-2D80-48EC-9691-556FEDD102FD">
+      <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression" 
language="http://www.java.com/java";><![CDATA[return person.isAdult() == 
true;]]></bpmn2:conditionExpression>
     </bpmn2:sequenceFlow>
     <bpmn2:endEvent id="_6BDF2751-F544-4AFC-AB47-8C5F52EC97AD" name="End Event 
1">
       <bpmn2:extensionElements>
@@ -74,21 +79,21 @@
       </bpmn2:extensionElements>
       <bpmn2:incoming>_41D07816-A956-491C-9787-5B8C0B8C4F58</bpmn2:incoming>
       <bpmn2:outgoing>_29B77FA9-3C5F-4EC3-9F37-5D74C182F3C0</bpmn2:outgoing>
-      <bpmn2:ioSpecification id="_G5aWMUhiEeqkVIxkVOA-qw">
+      <bpmn2:ioSpecification>
         <bpmn2:dataInput 
id="_7B8CC121-6F99-464A-93F8-9EAC4BE4601A_personInputX" 
drools:dtype="org.acme.travels.Person" 
itemSubjectRef="__7B8CC121-6F99-464A-93F8-9EAC4BE4601A_personInputXItem" 
name="person"/>
         <bpmn2:dataOutput 
id="_7B8CC121-6F99-464A-93F8-9EAC4BE4601A_personOutputX" 
drools:dtype="org.acme.travels.Person" 
itemSubjectRef="__7B8CC121-6F99-464A-93F8-9EAC4BE4601A_personOutputXItem" 
name="person"/>
-        <bpmn2:inputSet id="_G5aWMkhiEeqkVIxkVOA-qw">
+        <bpmn2:inputSet>
           
<bpmn2:dataInputRefs>_7B8CC121-6F99-464A-93F8-9EAC4BE4601A_personInputX</bpmn2:dataInputRefs>
         </bpmn2:inputSet>
-        <bpmn2:outputSet id="_G5aWM0hiEeqkVIxkVOA-qw">
+        <bpmn2:outputSet>
           
<bpmn2:dataOutputRefs>_7B8CC121-6F99-464A-93F8-9EAC4BE4601A_personOutputX</bpmn2:dataOutputRefs>
         </bpmn2:outputSet>
       </bpmn2:ioSpecification>
-      <bpmn2:dataInputAssociation id="_G5aWNEhiEeqkVIxkVOA-qw">
+      <bpmn2:dataInputAssociation>
         <bpmn2:sourceRef>person</bpmn2:sourceRef>
         
<bpmn2:targetRef>_7B8CC121-6F99-464A-93F8-9EAC4BE4601A_personInputX</bpmn2:targetRef>
       </bpmn2:dataInputAssociation>
-      <bpmn2:dataOutputAssociation id="_G5aWNUhiEeqkVIxkVOA-qw">
+      <bpmn2:dataOutputAssociation>
         
<bpmn2:sourceRef>_7B8CC121-6F99-464A-93F8-9EAC4BE4601A_personOutputX</bpmn2:sourceRef>
         <bpmn2:targetRef>person</bpmn2:targetRef>
       </bpmn2:dataOutputAssociation>
@@ -111,44 +116,48 @@
       </bpmn2:extensionElements>
       <bpmn2:incoming>_22717A42-3E59-431B-8AF8-C5061A69B295</bpmn2:incoming>
       <bpmn2:outgoing>_C93EF8F2-D9C0-45D1-A3D6-C8A376D07806</bpmn2:outgoing>
-      <bpmn2:ioSpecification id="_G5aWNkhiEeqkVIxkVOA-qw">
+      <bpmn2:ioSpecification>
         <bpmn2:dataInput 
id="_D9CFCEE9-BCDF-48D0-8CB4-A55584DF0D9D_TaskNameInputX" drools:dtype="Object" 
itemSubjectRef="__D9CFCEE9-BCDF-48D0-8CB4-A55584DF0D9D_TaskNameInputXItem" 
name="TaskName"/>
         <bpmn2:dataInput 
id="_D9CFCEE9-BCDF-48D0-8CB4-A55584DF0D9D_personInputX" 
drools:dtype="org.acme.travels.Person" 
itemSubjectRef="__D9CFCEE9-BCDF-48D0-8CB4-A55584DF0D9D_personInputXItem" 
name="person"/>
         <bpmn2:dataInput 
id="_D9CFCEE9-BCDF-48D0-8CB4-A55584DF0D9D_SkippableInputX" 
drools:dtype="Object" 
itemSubjectRef="__D9CFCEE9-BCDF-48D0-8CB4-A55584DF0D9D_SkippableInputXItem" 
name="Skippable"/>
         <bpmn2:dataInput 
id="_D9CFCEE9-BCDF-48D0-8CB4-A55584DF0D9D_PriorityInputX" drools:dtype="Object" 
itemSubjectRef="__D9CFCEE9-BCDF-48D0-8CB4-A55584DF0D9D_PriorityInputXItem" 
name="Priority"/>
-        <bpmn2:inputSet id="_G5aWN0hiEeqkVIxkVOA-qw">
+        <bpmn2:inputSet>
           
<bpmn2:dataInputRefs>_D9CFCEE9-BCDF-48D0-8CB4-A55584DF0D9D_TaskNameInputX</bpmn2:dataInputRefs>
           
<bpmn2:dataInputRefs>_D9CFCEE9-BCDF-48D0-8CB4-A55584DF0D9D_personInputX</bpmn2:dataInputRefs>
           
<bpmn2:dataInputRefs>_D9CFCEE9-BCDF-48D0-8CB4-A55584DF0D9D_SkippableInputX</bpmn2:dataInputRefs>
           
<bpmn2:dataInputRefs>_D9CFCEE9-BCDF-48D0-8CB4-A55584DF0D9D_PriorityInputX</bpmn2:dataInputRefs>
         </bpmn2:inputSet>
-        <bpmn2:outputSet id="_G5aWOEhiEeqkVIxkVOA-qw"/>
       </bpmn2:ioSpecification>
-      <bpmn2:dataInputAssociation id="_G5aWOUhiEeqkVIxkVOA-qw">
+      <bpmn2:dataInputAssociation>
         
<bpmn2:targetRef>_D9CFCEE9-BCDF-48D0-8CB4-A55584DF0D9D_TaskNameInputX</bpmn2:targetRef>
-        <bpmn2:assignment id="_G5aWOkhiEeqkVIxkVOA-qw">
-          <bpmn2:from xsi:type="bpmn2:tFormalExpression" 
id="_G5aWO0hiEeqkVIxkVOA-qw"><![CDATA[ChildrenHandling]]></bpmn2:from>
-          <bpmn2:to xsi:type="bpmn2:tFormalExpression" 
id="_G5aWPEhiEeqkVIxkVOA-qw">_D9CFCEE9-BCDF-48D0-8CB4-A55584DF0D9D_TaskNameInputX</bpmn2:to>
+        <bpmn2:assignment>
+          <bpmn2:from 
xsi:type="bpmn2:tFormalExpression"><![CDATA[ChildrenHandling]]></bpmn2:from>
+          <bpmn2:to 
xsi:type="bpmn2:tFormalExpression"><![CDATA[_D9CFCEE9-BCDF-48D0-8CB4-A55584DF0D9D_TaskNameInputX]]></bpmn2:to>
         </bpmn2:assignment>
       </bpmn2:dataInputAssociation>
-      <bpmn2:dataInputAssociation id="_G5aWPUhiEeqkVIxkVOA-qw">
+      <bpmn2:dataInputAssociation>
         <bpmn2:sourceRef>person</bpmn2:sourceRef>
         
<bpmn2:targetRef>_D9CFCEE9-BCDF-48D0-8CB4-A55584DF0D9D_personInputX</bpmn2:targetRef>
       </bpmn2:dataInputAssociation>
-      <bpmn2:dataInputAssociation id="_G5aWPkhiEeqkVIxkVOA-qw">
+      <bpmn2:dataInputAssociation>
         
<bpmn2:targetRef>_D9CFCEE9-BCDF-48D0-8CB4-A55584DF0D9D_SkippableInputX</bpmn2:targetRef>
-        <bpmn2:assignment id="_G5aWP0hiEeqkVIxkVOA-qw">
-          <bpmn2:from xsi:type="bpmn2:tFormalExpression" 
id="_G5aWQEhiEeqkVIxkVOA-qw"><![CDATA[true]]></bpmn2:from>
-          <bpmn2:to xsi:type="bpmn2:tFormalExpression" 
id="_G5aWQUhiEeqkVIxkVOA-qw">_D9CFCEE9-BCDF-48D0-8CB4-A55584DF0D9D_SkippableInputX</bpmn2:to>
+        <bpmn2:assignment>
+          <bpmn2:from 
xsi:type="bpmn2:tFormalExpression"><![CDATA[true]]></bpmn2:from>
+          <bpmn2:to 
xsi:type="bpmn2:tFormalExpression"><![CDATA[_D9CFCEE9-BCDF-48D0-8CB4-A55584DF0D9D_SkippableInputX]]></bpmn2:to>
         </bpmn2:assignment>
       </bpmn2:dataInputAssociation>
-      <bpmn2:dataInputAssociation id="_G5aWQkhiEeqkVIxkVOA-qw">
+      <bpmn2:dataInputAssociation>
         
<bpmn2:targetRef>_D9CFCEE9-BCDF-48D0-8CB4-A55584DF0D9D_PriorityInputX</bpmn2:targetRef>
-        <bpmn2:assignment id="_G5aWQ0hiEeqkVIxkVOA-qw">
-          <bpmn2:from xsi:type="bpmn2:tFormalExpression" 
id="_G5aWREhiEeqkVIxkVOA-qw"><![CDATA[1]]></bpmn2:from>
-          <bpmn2:to xsi:type="bpmn2:tFormalExpression" 
id="_G5aWRUhiEeqkVIxkVOA-qw">_D9CFCEE9-BCDF-48D0-8CB4-A55584DF0D9D_PriorityInputX</bpmn2:to>
+        <bpmn2:assignment>
+          <bpmn2:from 
xsi:type="bpmn2:tFormalExpression"><![CDATA[1]]></bpmn2:from>
+          <bpmn2:to 
xsi:type="bpmn2:tFormalExpression"><![CDATA[_D9CFCEE9-BCDF-48D0-8CB4-A55584DF0D9D_PriorityInputX]]></bpmn2:to>
         </bpmn2:assignment>
       </bpmn2:dataInputAssociation>
+      <bpmn2:potentialOwner id="_4ojzQNfSED2VC-4u1Z0wUA">
+        <bpmn2:resourceAssignmentExpression id="_4ojzQdfSED2VC-4u1Z0wUA">
+          <bpmn2:formalExpression>jdoe</bpmn2:formalExpression>
+        </bpmn2:resourceAssignmentExpression>
+      </bpmn2:potentialOwner>
     </bpmn2:userTask>
     <bpmn2:endEvent id="_44052DCF-2D80-48EC-9691-556FEDD102FD" name="End Event 
2">
       <bpmn2:extensionElements>
@@ -159,105 +168,105 @@
       <bpmn2:incoming>_FA444C47-2749-42FF-ACE3-7CF52A2AB11A</bpmn2:incoming>
     </bpmn2:endEvent>
   </bpmn2:process>
-  <bpmndi:BPMNDiagram id="_G5aWRkhiEeqkVIxkVOA-qw">
-    <bpmndi:BPMNPlane id="_G5aWR0hiEeqkVIxkVOA-qw" bpmnElement="persons">
+  <bpmndi:BPMNDiagram>
+    <bpmndi:BPMNPlane bpmnElement="persons">
       <bpmndi:BPMNShape id="shape__44052DCF-2D80-48EC-9691-556FEDD102FD" 
bpmnElement="_44052DCF-2D80-48EC-9691-556FEDD102FD">
-        <dc:Bounds height="56.0" width="56.0" x="1060.0" y="298.0"/>
+        <dc:Bounds height="56" width="56" x="1060" y="298"/>
       </bpmndi:BPMNShape>
       <bpmndi:BPMNShape id="shape__D9CFCEE9-BCDF-48D0-8CB4-A55584DF0D9D" 
bpmnElement="_D9CFCEE9-BCDF-48D0-8CB4-A55584DF0D9D">
-        <dc:Bounds height="102.0" width="154.0" x="826.0" y="112.0"/>
+        <dc:Bounds height="102" width="154" x="826" y="112"/>
       </bpmndi:BPMNShape>
       <bpmndi:BPMNShape id="shape__CB2B4CEB-E636-4F0C-904B-3468083FF1EF" 
bpmnElement="_CB2B4CEB-E636-4F0C-904B-3468083FF1EF">
-        <dc:Bounds height="56.0" width="56.0" x="690.0" y="135.0"/>
+        <dc:Bounds height="56" width="56" x="690" y="135"/>
       </bpmndi:BPMNShape>
       <bpmndi:BPMNShape id="shape__7B8CC121-6F99-464A-93F8-9EAC4BE4601A" 
bpmnElement="_7B8CC121-6F99-464A-93F8-9EAC4BE4601A">
-        <dc:Bounds height="102.0" width="154.0" x="456.0" y="112.0"/>
+        <dc:Bounds height="102" width="154" x="456" y="112"/>
       </bpmndi:BPMNShape>
       <bpmndi:BPMNShape id="shape__F2CC5C1D-5116-4C20-8702-A8357341790F" 
bpmnElement="_F2CC5C1D-5116-4C20-8702-A8357341790F">
-        <dc:Bounds height="56.0" width="56.0" x="320.0" y="135.0"/>
+        <dc:Bounds height="56" width="56" x="320" y="135"/>
       </bpmndi:BPMNShape>
       <bpmndi:BPMNShape id="shape__6BDF2751-F544-4AFC-AB47-8C5F52EC97AD" 
bpmnElement="_6BDF2751-F544-4AFC-AB47-8C5F52EC97AD">
-        <dc:Bounds height="56.0" width="56.0" x="1060.0" y="135.0"/>
+        <dc:Bounds height="56" width="56" x="1060" y="135"/>
       </bpmndi:BPMNShape>
       <bpmndi:BPMNEdge 
id="edge_shape__CB2B4CEB-E636-4F0C-904B-3468083FF1EF_to_shape__44052DCF-2D80-48EC-9691-556FEDD102FD"
 bpmnElement="_FA444C47-2749-42FF-ACE3-7CF52A2AB11A">
-        <di:waypoint xsi:type="dc:Point" x="718.0" y="191.0"/>
-        <di:waypoint xsi:type="dc:Point" x="718.0" y="325.0"/>
-        <di:waypoint xsi:type="dc:Point" x="1060.0" y="326.0"/>
+        <di:waypoint x="718" y="191"/>
+        <di:waypoint x="718" y="325"/>
+        <di:waypoint x="1060" y="326"/>
       </bpmndi:BPMNEdge>
       <bpmndi:BPMNEdge 
id="edge_shape__CB2B4CEB-E636-4F0C-904B-3468083FF1EF_to_shape__D9CFCEE9-BCDF-48D0-8CB4-A55584DF0D9D"
 bpmnElement="_22717A42-3E59-431B-8AF8-C5061A69B295">
-        <di:waypoint xsi:type="dc:Point" x="746.0" y="163.0"/>
-        <di:waypoint xsi:type="dc:Point" x="826.0" y="163.0"/>
+        <di:waypoint x="746" y="163"/>
+        <di:waypoint x="826" y="163"/>
       </bpmndi:BPMNEdge>
       <bpmndi:BPMNEdge 
id="edge_shape__D9CFCEE9-BCDF-48D0-8CB4-A55584DF0D9D_to_shape__6BDF2751-F544-4AFC-AB47-8C5F52EC97AD"
 bpmnElement="_C93EF8F2-D9C0-45D1-A3D6-C8A376D07806">
-        <di:waypoint xsi:type="dc:Point" x="980.0" y="163.0"/>
-        <di:waypoint xsi:type="dc:Point" x="1060.0" y="163.0"/>
+        <di:waypoint x="980" y="163"/>
+        <di:waypoint x="1060" y="163"/>
       </bpmndi:BPMNEdge>
       <bpmndi:BPMNEdge 
id="edge_shape__7B8CC121-6F99-464A-93F8-9EAC4BE4601A_to_shape__CB2B4CEB-E636-4F0C-904B-3468083FF1EF"
 bpmnElement="_29B77FA9-3C5F-4EC3-9F37-5D74C182F3C0">
-        <di:waypoint xsi:type="dc:Point" x="610.0" y="163.0"/>
-        <di:waypoint xsi:type="dc:Point" x="690.0" y="163.0"/>
+        <di:waypoint x="610" y="163"/>
+        <di:waypoint x="690" y="163"/>
       </bpmndi:BPMNEdge>
       <bpmndi:BPMNEdge 
id="edge_shape__F2CC5C1D-5116-4C20-8702-A8357341790F_to_shape__7B8CC121-6F99-464A-93F8-9EAC4BE4601A"
 bpmnElement="_41D07816-A956-491C-9787-5B8C0B8C4F58">
-        <di:waypoint xsi:type="dc:Point" x="376.0" y="163.0"/>
-        <di:waypoint xsi:type="dc:Point" x="456.0" y="163.0"/>
+        <di:waypoint x="376" y="163"/>
+        <di:waypoint x="456" y="163"/>
       </bpmndi:BPMNEdge>
     </bpmndi:BPMNPlane>
   </bpmndi:BPMNDiagram>
-  <bpmn2:relationship id="_G5aWSEhiEeqkVIxkVOA-qw" type="BPSimData">
+  <bpmn2:relationship type="BPSimData">
     <bpmn2:extensionElements>
       <bpsim:BPSimData>
-        <bpsim:Scenario xsi:type="bpsim:Scenario" id="default" 
name="Simulationscenario">
-          <bpsim:ScenarioParameters xsi:type="bpsim:ScenarioParameters"/>
-          <bpsim:ElementParameters xsi:type="bpsim:ElementParameters" 
elementRef="_D9CFCEE9-BCDF-48D0-8CB4-A55584DF0D9D" id="_G5aWSUhiEeqkVIxkVOA-qw">
-            <bpsim:TimeParameters xsi:type="bpsim:TimeParameters">
-              <bpsim:ProcessingTime xsi:type="bpsim:Parameter">
-                <bpsim:NormalDistribution mean="0.0" standardDeviation="0.0"/>
+        <bpsim:Scenario id="default" name="Simulationscenario">
+          <bpsim:ScenarioParameters/>
+          <bpsim:ElementParameters 
elementRef="_D9CFCEE9-BCDF-48D0-8CB4-A55584DF0D9D">
+            <bpsim:TimeParameters>
+              <bpsim:ProcessingTime>
+                <bpsim:NormalDistribution mean="0" standardDeviation="0"/>
               </bpsim:ProcessingTime>
             </bpsim:TimeParameters>
-            <bpsim:ResourceParameters xsi:type="bpsim:ResourceParameters">
-              <bpsim:Availability xsi:type="bpsim:Parameter">
-                <bpsim:FloatingParameter value="0.0"/>
+            <bpsim:ResourceParameters>
+              <bpsim:Availability>
+                <bpsim:FloatingParameter value="0"/>
               </bpsim:Availability>
-              <bpsim:Quantity xsi:type="bpsim:Parameter">
-                <bpsim:FloatingParameter value="0.0"/>
+              <bpsim:Quantity>
+                <bpsim:FloatingParameter value="0"/>
               </bpsim:Quantity>
             </bpsim:ResourceParameters>
-            <bpsim:CostParameters xsi:type="bpsim:CostParameters">
-              <bpsim:UnitCost xsi:type="bpsim:Parameter">
-                <bpsim:FloatingParameter value="0.0"/>
+            <bpsim:CostParameters>
+              <bpsim:UnitCost>
+                <bpsim:FloatingParameter value="0"/>
               </bpsim:UnitCost>
             </bpsim:CostParameters>
           </bpsim:ElementParameters>
-          <bpsim:ElementParameters xsi:type="bpsim:ElementParameters" 
elementRef="_7B8CC121-6F99-464A-93F8-9EAC4BE4601A" id="_G5aWSkhiEeqkVIxkVOA-qw">
-            <bpsim:TimeParameters xsi:type="bpsim:TimeParameters">
-              <bpsim:ProcessingTime xsi:type="bpsim:Parameter">
-                <bpsim:NormalDistribution mean="0.0" standardDeviation="0.0"/>
+          <bpsim:ElementParameters 
elementRef="_7B8CC121-6F99-464A-93F8-9EAC4BE4601A">
+            <bpsim:TimeParameters>
+              <bpsim:ProcessingTime>
+                <bpsim:NormalDistribution mean="0" standardDeviation="0"/>
               </bpsim:ProcessingTime>
             </bpsim:TimeParameters>
-            <bpsim:ResourceParameters xsi:type="bpsim:ResourceParameters">
-              <bpsim:Availability xsi:type="bpsim:Parameter">
-                <bpsim:FloatingParameter value="0.0"/>
+            <bpsim:ResourceParameters>
+              <bpsim:Availability>
+                <bpsim:FloatingParameter value="0"/>
               </bpsim:Availability>
-              <bpsim:Quantity xsi:type="bpsim:Parameter">
-                <bpsim:FloatingParameter value="0.0"/>
+              <bpsim:Quantity>
+                <bpsim:FloatingParameter value="0"/>
               </bpsim:Quantity>
             </bpsim:ResourceParameters>
-            <bpsim:CostParameters xsi:type="bpsim:CostParameters">
-              <bpsim:UnitCost xsi:type="bpsim:Parameter">
-                <bpsim:FloatingParameter value="0.0"/>
+            <bpsim:CostParameters>
+              <bpsim:UnitCost>
+                <bpsim:FloatingParameter value="0"/>
               </bpsim:UnitCost>
             </bpsim:CostParameters>
           </bpsim:ElementParameters>
-          <bpsim:ElementParameters xsi:type="bpsim:ElementParameters" 
elementRef="_F2CC5C1D-5116-4C20-8702-A8357341790F" id="_G5aWS0hiEeqkVIxkVOA-qw">
-            <bpsim:TimeParameters xsi:type="bpsim:TimeParameters">
-              <bpsim:ProcessingTime xsi:type="bpsim:Parameter">
-                <bpsim:NormalDistribution mean="0.0" standardDeviation="0.0"/>
+          <bpsim:ElementParameters 
elementRef="_F2CC5C1D-5116-4C20-8702-A8357341790F">
+            <bpsim:TimeParameters>
+              <bpsim:ProcessingTime>
+                <bpsim:NormalDistribution mean="0" standardDeviation="0"/>
               </bpsim:ProcessingTime>
             </bpsim:TimeParameters>
           </bpsim:ElementParameters>
         </bpsim:Scenario>
       </bpsim:BPSimData>
     </bpmn2:extensionElements>
-    <bpmn2:source>_G5ZvIEhiEeqkVIxkVOA-qw</bpmn2:source>
-    <bpmn2:target>_G5ZvIEhiEeqkVIxkVOA-qw</bpmn2:target>
+    <bpmn2:source>_4ohXANfSED2VC-4u1Z0wUA</bpmn2:source>
+    <bpmn2:target>_4ohXANfSED2VC-4u1Z0wUA</bpmn2:target>
   </bpmn2:relationship>
-</bpmn2:definitions>
+</bpmn2:definitions>
\ No newline at end of file
diff --git a/kogito-springboot-examples/process-monitoring-springboot/README.md 
b/kogito-springboot-examples/process-monitoring-springboot/README.md
index 4ec50b0d1..e27a9cdae 100644
--- a/kogito-springboot-examples/process-monitoring-springboot/README.md
+++ b/kogito-springboot-examples/process-monitoring-springboot/README.md
@@ -134,61 +134,71 @@ Example response:
 ]
 ```
 
-### GET /orderItems/{id}/tasks
+### GET /usertasks/instance
 
-Getting user tasks awaiting user action
+Getting user tasks details awaiting user action
 
 ```sh
-curl -X GET 
http://localhost:8080/orderItems/66c11e3e-c211-4cee-9a07-848b5e861bc5/tasks?user=john
+curl -X GET http://localhost:8080/usertasks/instance?user=john
 ```
 Example response:
-```json
-[
-  {"id":"62f1c985-d31c-4ead-9906-2fe8d05937f0","name":"Verify order"}
-]
-```
-
-### GET /orderItems/{id}/Verify_order/{tid}
-
-Getting user task details
 
-```sh
-curl -X GET 
http://localhost:8080/orderItems/66c11e3e-c211-4cee-9a07-848b5e861bc5/Verify_order/62f1c985-d31c-4ead-9906-2fe8d05937f0?user=john
-```
-Example response:
 ```json
-{
-  "id":"62f1c985-d31c-4ead-9906-2fe8d05937f0",
-  "input1":
+[
   {
-    "orderNumber":"12345",
-    "shipped":false,
-    "total":0.537941914075738
-  },
-  "name":"Verify order"
-}
+    "id": "bcbe9d60-4847-45f0-8069-e983f3f055e6",
+    "userTaskId": "UserTask_1",
+    "status": {
+      "terminate": null,
+      "name": "Reserved"
+    },
+    "taskName": "Verify order",
+    ...
+]
 ```
 
-### POST /orderItems/{id}/Verify_order/{tid}
+### POST /usertasks/instance/{taskId}/transition
 
 Complete user task
 
 ```sh
-curl -d '{}' -H "Content-Type: application/json" -X POST 
http://localhost:8080/orderItems/66c11e3e-c211-4cee-9a07-848b5e861bc5/Verify_order/62f1c985-d31c-4ead-9906-2fe8d05937f0?user=john
+curl -X POST 
"http://localhost:8080/usertasks/instance/{taskId}/transition?user=john"; -H 
"content-type: application/json" -d '{"transitionId": "complete","data": 
{"approve": true}}'
 ```
 
-
 As response the updated order is returned.
 
 Example response:
+
 ```json
 {
-  "id":"66c11e3e-c211-4cee-9a07-848b5e861bc5",
-  "order":
-  {
-    "orderNumber":"12345",
-    "shipped":false,
-    "total":0.537941914075738
-  }
+  "id": "bcbe9d60-4847-45f0-8069-e983f3f055e6",
+  "userTaskId": "UserTask_1",
+  "status": {
+    "terminate": "COMPLETED",
+    "name": "Completed"
+  },
+  "taskName": "Verify order",
+  "taskDescription": null,
+  "taskPriority": "1",
+  "potentialUsers": [
+    "john"
+  ],
+  "potentialGroups": [],
+  "adminUsers": [],
+  "adminGroups": [],
+  "excludedUsers": [],
+  "externalReferenceId": "eeae84c0-234d-472f-9fa0-004a2cf34cdc",
+  "actualOwner": "john",
+  "inputs": {
+    "input1": {
+      "orderNumber": "12345",
+      "shipped": false,
+      "total": 0.8903945184162633
+    }
+  },
+  "outputs": {
+    "approve": true
+  },
+  ...
 }
 ```
diff --git 
a/kogito-springboot-examples/process-postgresql-persistence-springboot/README.md
 
b/kogito-springboot-examples/process-postgresql-persistence-springboot/README.md
index 238fd4c17..af01fad76 100644
--- 
a/kogito-springboot-examples/process-postgresql-persistence-springboot/README.md
+++ 
b/kogito-springboot-examples/process-postgresql-persistence-springboot/README.md
@@ -154,40 +154,23 @@ this will then trigger the review user task that you can 
work with.
 
 ### Get review task for given deal
 
-First you can display all active reviews of deals
+You can display all active reviews of deals by:
 
 ```bash
-curl -H 'Content-Type:application/json' -H 'Accept:application/json' 
http://localhost:8080/dealreviews
+curl http://localhost:8080/usertasks/instance?user=john
 ```
 
-based on the response you can select one of the reviews to see more details
-
-```bash
-curl -H 'Content-Type:application/json' -H 'Accept:application/json' 
http://localhost:8080/dealreviews/{uuid}/tasks?user=john
-```
-
-where uuid is the id of the deal review you want to work with.
-
-Next you can get the details assigned to review user task by
-
-```
-curl -H 'Content-Type:application/json' -H 'Accept:application/json' 
http://localhost:8080/dealreviews/{uuid}/review/{tuuid}?user=john
-```
-
-where uuid is the id of the deal review and tuuid is the id of the user task 
you want to get
-
-
 ### Complete review task for given deal
 
-Last but not least you can complete review user task by
+Last but not least, you can complete the review user task by:
 
-```
-curl -X POST -H 'Content-Type:application/json' -H 'Accept:application/json' 
-d '{"review" : "very good work"}' 
http://localhost:8080/dealreviews/uuid/review/{tuuid}?user=john
+```bash
+curl -X POST 
"http://localhost:8080/usertasks/instance/{taskId}/transition?user=john"; -H 
"content-type: application/json" -d '{"transitionId": "complete","data": 
{"review" : "very good work", "approve": true}}'
 ```
 
-where uuid is the id of the deal review and tuuid is the id of the user task 
you want to get
+Where `{taskId}` is the id of the user task you want to complete.
 
-* Review Log should look similar to    
+The review Log should look similar to:
 
 ```
 Review of the deal very good work for traveller Doe


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

Reply via email to