Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test diagrame first scope #228

Merged
merged 37 commits into from
Mar 17, 2023
Merged
Show file tree
Hide file tree
Changes from 36 commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
d3596fc
Simple user task
pierre-yves-monnet Feb 22, 2023
8c0c0cc
Timer event test
pierre-yves-monnet Feb 22, 2023
5326852
Remove timer boundary event
pierre-yves-monnet Feb 22, 2023
c539d30
Simple Service Task
pierre-yves-monnet Feb 22, 2023
e121819
Review process
pierre-yves-monnet Feb 22, 2023
210cb78
First release
pierre-yves-monnet Feb 22, 2023
27dda49
First release Receive task
pierre-yves-monnet Feb 22, 2023
63ac5b2
Rename
pierre-yves-monnet Feb 22, 2023
dc80df7
First relase Receive Event
pierre-yves-monnet Feb 22, 2023
934e5dd
First relase Call Activity
pierre-yves-monnet Feb 23, 2023
4845d0e
First relase Call Activity 2
pierre-yves-monnet Feb 23, 2023
635c64e
First relase Call Activity - simplify the scenario
pierre-yves-monnet Feb 23, 2023
90bbcbf
First relase Conditional event
pierre-yves-monnet Feb 23, 2023
ab04a41
reformat
pierre-yves-monnet Feb 23, 2023
499826f
First release multi instances call activity
pierre-yves-monnet Feb 23, 2023
8f84d67
Change input mapping to a "real" expression
ingorichtsmeier Feb 23, 2023
c7b5c8f
Debugging timer scenario
pierre-yves-monnet Feb 24, 2023
49b3744
Multi instance call activity
pierre-yves-monnet Feb 24, 2023
b07effa
Complex Call Activity
pierre-yves-monnet Feb 25, 2023
9f4d8a0
Merging inclusive Activity
pierre-yves-monnet Feb 28, 2023
706166a
Merging Parallel Activity
pierre-yves-monnet Feb 28, 2023
a26b145
Move timer to 1 D
pierre-yves-monnet Feb 28, 2023
6d1b125
Variables test case
pierre-yves-monnet Mar 2, 2023
5e66511
Multin instance user task
pierre-yves-monnet Mar 2, 2023
4768711
Multin instance service task
pierre-yves-monnet Mar 4, 2023
34dd2fe
Multi instance service task
pierre-yves-monnet Mar 6, 2023
a26b87a
Split multinstance service task in 2
pierre-yves-monnet Mar 10, 2023
1c0835a
Split multinstance use task in 2
pierre-yves-monnet Mar 10, 2023
6601f36
Rename
pierre-yves-monnet Mar 10, 2023
0f876ac
Rename the header
pierre-yves-monnet Mar 10, 2023
f78589a
Rename the header
pierre-yves-monnet Mar 10, 2023
139ed89
Add variable-files
pierre-yves-monnet Mar 10, 2023
233fe72
Split variables in multiple test
pierre-yves-monnet Mar 10, 2023
e436478
Split test in two
pierre-yves-monnet Mar 10, 2023
9adeb9a
Rename
pierre-yves-monnet Mar 10, 2023
4a3a239
Add synthesis
pierre-yves-monnet Mar 10, 2023
f396816
Update graph
pierre-yves-monnet Mar 10, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions test-example-diagrams/src/main/resources/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Test migration

Different Camunda 7 use case are describe in this folder.
Status for the migration given and explained

| Test | Status | Comment |
|----------------------------------------|--------|---------------------|
| simple-service-task | | |
| simple-user-task | | |
| complex-user-task | | |
| merging-inclusive | | |
| merging-parallel | | |
| conditional-event | | |
| timer-event | | |
| conditional-event | | |
| timer-event | | |
| callactivity-complex | | |
| callactivity-task | | |
| multiinstances-callactivity | | |
| multiinstances-service-task-loopcard | No | Not available in C8 |
| multiinstances-service-task-collection | | |
| multinstances-usertask -loopcard | No | Not available in C8 |
| multinstances-usertask-collection | | |
| parallel-user-task | | |
| receive-event | | |
| receive-task | | |
| variables-simpletypes | | |
| variables-Json | | |
| variables-files | No | Not available in C8 |
| history-boundary-event | | |
| history-service-task | | |
| history-timer-boundaryevent | | |
| history-user-task | | |

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Call Activity Complex

## Definition

This process creates multiple task in a sub-sub-process, comming from different way. The migration should recreate all tasks with the correct parent

automaticAcceptEurope=false
listOfAccounts=["blue"]

| Type | path |
|----------------------|-------------------------------------------------------------------|
| strait | Global Europe > Transfer World > Review |
| via a different path | Global USA > Transfer USA > Review |
| via a recursive path | Global USA > Global Canada > Transfer World > Review |

3 tasks is waiting.

To go to the instance, and have the previous execution, a second process instance, with
automaticAcceptEurope=true
listAccounts=["blue", "red", "green", "yellow"]
and
| Type | path |
|----------------------|-------------------------------------------------------------------|
| via a loop | path europe - Global Asia (3 instances) > Transfer World > Review |

4 task is waiting for the review from Asia, 2 from USA




## Expectation

Two task in the Child, variables are present at the parent and at the child level

## Diagram
![alt text](CallActivityComplex.png "Call Activity Complex")

## Follow up


| Date | Who | Status |
|--------------|-------|--------------|
| Feb 24, 2023 | Pierre-Yves Monnet | Definition |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"name": "Call Activity Complex",
"processId": "CallActivityComplexParent",
"executions": [
{
"name": "basic call",
"steps": [
{
"type": "STARTEVENT",
"activityId": "Start_CallActivityComplex",
"variables": {
"amount": 1000,
"companyAccount": "COMPANY-7HHD44F",
"employeAccount": "EMPLOYEE-88833F",
"employeeName": "Walter",
"automaticAccept": false,
"listAccounts": [
"blue"
]
}
}
]
},
{
"name": "loop call",
"steps": [
{
"type": "STARTEVENT",
"activityId": "Start_CallActivityComplex",
"variables": {
"amount": 1000,
"companyAccount": "COMPANY-7HHD44F",
"employeAccount": "EMPLOYEE-88833F",
"employeeName": "Walter",
"automaticAcceptEurope": true
}
},
{
"type": "USERTASK",
"delay": "PT0.1S",
"waitingTime": "PT20S",
"activityId": "Activity_DecideLevelSecretAndNumber",
"variables": {
"listAccounts": [
"blue",
"red",
"green",
"yellow"
]
}
}
]
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,169 @@
<?xml version="1.0" encoding="UTF-8"?>
<bpmn:definitions xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" xmlns:modeler="http://camunda.org/schema/modeler/1.0" id="Definitions_1c11fw3" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="5.8.0" modeler:executionPlatform="Camunda Platform" modeler:executionPlatformVersion="7.18.0">
<bpmn:collaboration id="parent">
<bpmn:participant id="Participant_0dl2a0j" name="Parent" processRef="CallActvityParent" />
<bpmn:participant id="Participant_1l802dq" name="Child" processRef="CallActvityChild" />
</bpmn:collaboration>
<bpmn:process id="CallActvityParent" name="CallActvityParent" isExecutable="true">
<bpmn:startEvent id="Start_CallActivity" name="Start request">
<bpmn:outgoing>Flow_0clro87</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:sequenceFlow id="Flow_0clro87" sourceRef="Start_CallActivity" targetRef="Activity_0il7un2" />
<bpmn:callActivity id="Activity_0il7un2" name="Review" calledElement="CallActvityChild">
<bpmn:extensionElements>
<camunda:in source="amount" target="amountTransfer" />
<camunda:in source="companyAccount" target="accountFrom" />
<camunda:in source="employeAccount" target="accountTo" />
<camunda:out source="statusTransfer" target="statusTransferExpense" />
</bpmn:extensionElements>
<bpmn:incoming>Flow_0clro87</bpmn:incoming>
<bpmn:outgoing>Flow_0xmjrmo</bpmn:outgoing>
</bpmn:callActivity>
<bpmn:sequenceFlow id="Flow_0xmjrmo" sourceRef="Activity_0il7un2" targetRef="Event_0bpgroy" />
<bpmn:dataObjectReference id="DataObjectReference_0qu0ncw" name="amount" dataObjectRef="DataObject_17vksry" />
<bpmn:dataObject id="DataObject_17vksry" />
<bpmn:dataObjectReference id="DataObjectReference_1sj052z" name="companyAccount" dataObjectRef="DataObject_03luwmf" />
<bpmn:dataObject id="DataObject_03luwmf" />
<bpmn:dataObjectReference id="DataObjectReference_1b7agm1" name="employeAccount" dataObjectRef="DataObject_1qg00dg" />
<bpmn:dataObject id="DataObject_1qg00dg" />
<bpmn:endEvent id="Event_0bpgroy" name="End request">
<bpmn:incoming>Flow_0xmjrmo</bpmn:incoming>
</bpmn:endEvent>
</bpmn:process>
<bpmn:process id="CallActvityChild" name="CallActvityChild" isExecutable="true">
<bpmn:parallelGateway id="Gateway_0728nlh">
<bpmn:incoming>Flow_10s1i0l</bpmn:incoming>
<bpmn:outgoing>Flow_0gbpx5h</bpmn:outgoing>
<bpmn:outgoing>Flow_0571gwx</bpmn:outgoing>
</bpmn:parallelGateway>
<bpmn:startEvent id="Event_1y4u8md" name="Start child">
<bpmn:outgoing>Flow_10s1i0l</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:parallelGateway id="Gateway_0xd9o82">
<bpmn:incoming>Flow_16ih6xv</bpmn:incoming>
<bpmn:incoming>Flow_0m3sk5g</bpmn:incoming>
<bpmn:outgoing>Flow_043vv98</bpmn:outgoing>
</bpmn:parallelGateway>
<bpmn:userTask id="Activity_child_Review" name="Review">
<bpmn:incoming>Flow_0gbpx5h</bpmn:incoming>
<bpmn:outgoing>Flow_16ih6xv</bpmn:outgoing>
</bpmn:userTask>
<bpmn:userTask id="Activity_child_validate" name="Validate">
<bpmn:incoming>Flow_0571gwx</bpmn:incoming>
<bpmn:outgoing>Flow_0m3sk5g</bpmn:outgoing>
</bpmn:userTask>
<bpmn:endEvent id="Event_0o3oltq" name="End child">
<bpmn:incoming>Flow_043vv98</bpmn:incoming>
</bpmn:endEvent>
<bpmn:sequenceFlow id="Flow_10s1i0l" sourceRef="Event_1y4u8md" targetRef="Gateway_0728nlh" />
<bpmn:sequenceFlow id="Flow_0gbpx5h" sourceRef="Gateway_0728nlh" targetRef="Activity_child_Review" />
<bpmn:sequenceFlow id="Flow_0571gwx" sourceRef="Gateway_0728nlh" targetRef="Activity_child_validate" />
<bpmn:sequenceFlow id="Flow_16ih6xv" sourceRef="Activity_child_Review" targetRef="Gateway_0xd9o82" />
<bpmn:sequenceFlow id="Flow_0m3sk5g" sourceRef="Activity_child_validate" targetRef="Gateway_0xd9o82" />
<bpmn:sequenceFlow id="Flow_043vv98" sourceRef="Gateway_0xd9o82" targetRef="Event_0o3oltq" />
</bpmn:process>
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="parent">
<bpmndi:BPMNShape id="Participant_0dl2a0j_di" bpmnElement="Participant_0dl2a0j" isHorizontal="true">
<dc:Bounds x="129" y="40" width="910" height="338" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="Start_CallActivity">
<dc:Bounds x="179" y="142" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="165" y="185" width="64" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1r726xf_di" bpmnElement="Activity_0il7un2">
<dc:Bounds x="480" y="120" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="DataObjectReference_0qu0ncw_di" bpmnElement="DataObjectReference_0qu0ncw">
<dc:Bounds x="212" y="45" width="36" height="50" />
<bpmndi:BPMNLabel>
<dc:Bounds x="212" y="102" width="38" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="DataObjectReference_1sj052z_di" bpmnElement="DataObjectReference_1sj052z">
<dc:Bounds x="262" y="65" width="36" height="50" />
<bpmndi:BPMNLabel>
<dc:Bounds x="237" y="122" width="86" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="DataObjectReference_1b7agm1_di" bpmnElement="DataObjectReference_1b7agm1">
<dc:Bounds x="332" y="85" width="36" height="50" />
<bpmndi:BPMNLabel>
<dc:Bounds x="309" y="142" width="83" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_0bpgroy_di" bpmnElement="Event_0bpgroy">
<dc:Bounds x="802" y="142" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="790" y="185" width="61" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_0clro87_di" bpmnElement="Flow_0clro87">
<di:waypoint x="215" y="160" />
<di:waypoint x="480" y="160" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0xmjrmo_di" bpmnElement="Flow_0xmjrmo">
<di:waypoint x="580" y="160" />
<di:waypoint x="802" y="160" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="Participant_1l802dq_di" bpmnElement="Participant_1l802dq" isHorizontal="true">
<dc:Bounds x="129" y="410" width="719" height="250" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_192zt6g_di" bpmnElement="Gateway_0728nlh">
<dc:Bounds x="235" y="485" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_1y4u8md_di" bpmnElement="Event_1y4u8md">
<dc:Bounds x="172" y="492" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="166" y="535" width="49" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_0e9z3p3_di" bpmnElement="Gateway_0xd9o82">
<dc:Bounds x="505" y="485" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0of7zcf_di" bpmnElement="Activity_child_Review">
<dc:Bounds x="330" y="470" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_161kx11_di" bpmnElement="Activity_child_validate">
<dc:Bounds x="330" y="570" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_0o3oltq_di" bpmnElement="Event_0o3oltq">
<dc:Bounds x="652" y="492" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="647" y="535" width="46" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_10s1i0l_di" bpmnElement="Flow_10s1i0l">
<di:waypoint x="208" y="510" />
<di:waypoint x="235" y="510" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0gbpx5h_di" bpmnElement="Flow_0gbpx5h">
<di:waypoint x="285" y="510" />
<di:waypoint x="330" y="510" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0571gwx_di" bpmnElement="Flow_0571gwx">
<di:waypoint x="260" y="535" />
<di:waypoint x="260" y="610" />
<di:waypoint x="330" y="610" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_16ih6xv_di" bpmnElement="Flow_16ih6xv">
<di:waypoint x="430" y="510" />
<di:waypoint x="505" y="510" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0m3sk5g_di" bpmnElement="Flow_0m3sk5g">
<di:waypoint x="430" y="610" />
<di:waypoint x="530" y="610" />
<di:waypoint x="530" y="535" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_043vv98_di" bpmnElement="Flow_043vv98">
<di:waypoint x="555" y="510" />
<di:waypoint x="652" y="510" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Call Activity

## Definition
Two process, a parent and a child. Parent has a call activity, and during the call, different variables are passed.

| Parent variable | Type | Child variable |
|-----------------|----------|-------------------|
| amount | Double | amountTransfer |
| companyAccount | String | accountFrom |
| employeeAccount | String | accountTo |
| employeeName | String | *not transfered* |




## Expectation

Two task in the Child, variables are present at the parent and at the child level

## Diagram
![alt text](CallActivity.png "Call Activity")

## Follow up


| Date | Who | Status |
|--------------|-------|--------------|
| Feb 16, 2023 | Pierre-Yves Monnet | Definition |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "Call Activity",
"processId": "CallActvityParent",
"executions": [
{
"name": "Call Activity",
"steps": [
{
"type": "STARTEVENT",
"activityId": "Start_CallActivity",
"variables": {
"amount": 1000,
"companyAccount": "COMPANY-7HHD44F",
"employeAccount": "EMPLOYEE-88833F",
"employeeName": "Walter"
}
}
]
}
]
}
Loading