-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve support for MI handling for process migration
- Loading branch information
1 parent
1c9d49c
commit da68fa1
Showing
12 changed files
with
1,069 additions
and
36 deletions.
There are no files selected for viewing
152 changes: 126 additions & 26 deletions
152
...le-engine/src/main/java/org/flowable/engine/impl/dynamic/AbstractDynamicStateManager.java
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
756 changes: 749 additions & 7 deletions
756
...flowable/engine/test/api/runtime/migration/ProcessInstanceMigrationMultiInstanceTest.java
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
...test/api/runtime/migration/parallel-multi-instance-callactivity-local-variable.bpmn20.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<definitions id="definition" | ||
xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" | ||
xmlns:flowable="http://flowable.org/bpmn" | ||
targetNamespace="Examples"> | ||
|
||
<process id="parallelMultiInstanceSubProcess"> | ||
|
||
<startEvent id="theStart"/> | ||
<sequenceFlow id="flow1" sourceRef="theStart" targetRef="beforeMultiInstance"/> | ||
<userTask id="beforeMultiInstance"/> | ||
<sequenceFlow sourceRef="beforeMultiInstance" targetRef="callActivity"/> | ||
|
||
<callActivity id="callActivity" calledElement="oneTaskProcess"> | ||
<multiInstanceLoopCharacteristics isSequential="false" flowable:collection="myCollection" flowable:elementVariable="myElement" /> | ||
</callActivity> | ||
|
||
<sequenceFlow id="flow2" sourceRef="callActivity" targetRef="afterMultiInstance"/> | ||
<userTask id="afterMultiInstance"/> | ||
<sequenceFlow id="flow3" sourceRef="afterMultiInstance" targetRef="theEnd"/> | ||
<endEvent id="theEnd"/> | ||
|
||
</process> | ||
|
||
</definitions> |
25 changes: 25 additions & 0 deletions
25
...flowable/engine/test/api/runtime/migration/parallel-multi-instance-servicetask.bpmn20.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<definitions id="definition" | ||
xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" | ||
xmlns:flowable="http://flowable.org/bpmn" | ||
targetNamespace="Examples"> | ||
|
||
<process id="parallelMultiInstanceSubProcess"> | ||
|
||
<startEvent id="theStart"/> | ||
<sequenceFlow id="flow1" sourceRef="theStart" targetRef="beforeMultiInstance"/> | ||
<userTask id="beforeMultiInstance"/> | ||
<sequenceFlow sourceRef="beforeMultiInstance" targetRef="task"/> | ||
|
||
<serviceTask id="task" flowable:expression="${'test'}" flowable:async="true"> | ||
<multiInstanceLoopCharacteristics isSequential="false" flowable:collection="myCollection" flowable:elementVariable="myElement" /> | ||
</serviceTask> | ||
|
||
<sequenceFlow id="flow2" sourceRef="task" targetRef="afterMultiInstance"/> | ||
<userTask id="afterMultiInstance"/> | ||
<sequenceFlow id="flow3" sourceRef="afterMultiInstance" targetRef="theEnd"/> | ||
<endEvent id="theEnd"/> | ||
|
||
</process> | ||
|
||
</definitions> |
30 changes: 30 additions & 0 deletions
30
...ine/test/api/runtime/migration/parallel-multi-instance-subprocess-callactivity.bpmn20.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<definitions id="definition" | ||
xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" | ||
xmlns:flowable="http://flowable.org/bpmn" | ||
targetNamespace="Examples"> | ||
|
||
<process id="parallelMultiInstanceSubProcess"> | ||
|
||
<startEvent id="theStart"/> | ||
<sequenceFlow id="flow1" sourceRef="theStart" targetRef="beforeMultiInstance"/> | ||
<userTask id="beforeMultiInstance"/> | ||
<sequenceFlow sourceRef="beforeMultiInstance" targetRef="parallelMISubProcess"/> | ||
|
||
<subProcess id="parallelMISubProcess" name="Multi Instance Sequential SubProcess"> | ||
<multiInstanceLoopCharacteristics isSequential="false" flowable:collection="myCollection" flowable:elementVariable="myElement" /> | ||
<startEvent id="parallelSubProcStart"/> | ||
<sequenceFlow id="subFlow1" sourceRef="parallelSubProcStart" targetRef="subtask"/> | ||
<callActivity id="subtask" calledElement="oneTaskProcess" /> | ||
<sequenceFlow id="subFlow2" sourceRef="subtask" targetRef="parallelSubProcEnd"/> | ||
<endEvent id="parallelSubProcEnd"/> | ||
</subProcess> | ||
|
||
<sequenceFlow id="flow2" sourceRef="parallelMISubProcess" targetRef="afterMultiInstance"/> | ||
<userTask id="afterMultiInstance"/> | ||
<sequenceFlow id="flow3" sourceRef="afterMultiInstance" targetRef="theEnd"/> | ||
<endEvent id="theEnd"/> | ||
|
||
</process> | ||
|
||
</definitions> |
30 changes: 30 additions & 0 deletions
30
...e/test/api/runtime/migration/parallel-multi-instance-subprocess-local-variable.bpmn20.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<definitions id="definition" | ||
xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" | ||
xmlns:flowable="http://flowable.org/bpmn" | ||
targetNamespace="Examples"> | ||
|
||
<process id="parallelMultiInstanceSubProcess"> | ||
|
||
<startEvent id="theStart"/> | ||
<sequenceFlow id="flow1" sourceRef="theStart" targetRef="beforeMultiInstance"/> | ||
<userTask id="beforeMultiInstance"/> | ||
<sequenceFlow sourceRef="beforeMultiInstance" targetRef="parallelMISubProcess"/> | ||
|
||
<subProcess id="parallelMISubProcess" name="Multi Instance Sequential SubProcess"> | ||
<multiInstanceLoopCharacteristics isSequential="false" flowable:collection="myCollection" flowable:elementVariable="myElement" /> | ||
<startEvent id="parallelSubProcStart"/> | ||
<sequenceFlow id="subFlow1" sourceRef="parallelSubProcStart" targetRef="subTask1"/> | ||
<userTask id="subTask1"/> | ||
<sequenceFlow id="subFlow2" sourceRef="subTask1" targetRef="parallelSubProcEnd"/> | ||
<endEvent id="parallelSubProcEnd"/> | ||
</subProcess> | ||
|
||
<sequenceFlow id="flow2" sourceRef="parallelMISubProcess" targetRef="afterMultiInstance"/> | ||
<userTask id="afterMultiInstance"/> | ||
<sequenceFlow id="flow3" sourceRef="afterMultiInstance" targetRef="theEnd"/> | ||
<endEvent id="theEnd"/> | ||
|
||
</process> | ||
|
||
</definitions> |
30 changes: 30 additions & 0 deletions
30
...gine/test/api/runtime/migration/parallel-multi-instance-subprocess-servicetask.bpmn20.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<definitions id="definition" | ||
xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" | ||
xmlns:flowable="http://flowable.org/bpmn" | ||
targetNamespace="Examples"> | ||
|
||
<process id="parallelMultiInstanceSubProcess"> | ||
|
||
<startEvent id="theStart"/> | ||
<sequenceFlow id="flow1" sourceRef="theStart" targetRef="beforeMultiInstance"/> | ||
<userTask id="beforeMultiInstance"/> | ||
<sequenceFlow sourceRef="beforeMultiInstance" targetRef="parallelMISubProcess"/> | ||
|
||
<subProcess id="parallelMISubProcess" name="Multi Instance Sequential SubProcess"> | ||
<multiInstanceLoopCharacteristics isSequential="false" flowable:collection="myCollection" flowable:elementVariable="myElement" /> | ||
<startEvent id="parallelSubProcStart"/> | ||
<sequenceFlow id="subFlow1" sourceRef="parallelSubProcStart" targetRef="subtask"/> | ||
<serviceTask id="subtask" flowable:expression="${'test'}" flowable:async="true" /> | ||
<sequenceFlow id="subFlow2" sourceRef="subtask" targetRef="parallelSubProcEnd"/> | ||
<endEvent id="parallelSubProcEnd"/> | ||
</subProcess> | ||
|
||
<sequenceFlow id="flow2" sourceRef="parallelMISubProcess" targetRef="afterMultiInstance"/> | ||
<userTask id="afterMultiInstance"/> | ||
<sequenceFlow id="flow3" sourceRef="afterMultiInstance" targetRef="theEnd"/> | ||
<endEvent id="theEnd"/> | ||
|
||
</process> | ||
|
||
</definitions> |
25 changes: 25 additions & 0 deletions
25
.../engine/test/api/runtime/migration/parallel-multi-instance-task-local-variable.bpmn20.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<definitions id="definition" | ||
xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" | ||
xmlns:flowable="http://flowable.org/bpmn" | ||
targetNamespace="Examples"> | ||
|
||
<process id="parallelMultiInstanceSubProcess"> | ||
|
||
<startEvent id="theStart"/> | ||
<sequenceFlow id="flow1" sourceRef="theStart" targetRef="beforeMultiInstance"/> | ||
<userTask id="beforeMultiInstance"/> | ||
<sequenceFlow sourceRef="beforeMultiInstance" targetRef="task"/> | ||
|
||
<userTask id="task" flowable:assignee="kermit"> | ||
<multiInstanceLoopCharacteristics isSequential="false" flowable:collection="myCollection" flowable:elementVariable="myElement" /> | ||
</userTask> | ||
|
||
<sequenceFlow id="flow2" sourceRef="task" targetRef="afterMultiInstance"/> | ||
<userTask id="afterMultiInstance"/> | ||
<sequenceFlow id="flow3" sourceRef="afterMultiInstance" targetRef="theEnd"/> | ||
<endEvent id="theEnd"/> | ||
|
||
</process> | ||
|
||
</definitions> |