Skip to content

Commit

Permalink
Merge pull request #4 from tazsol/main
Browse files Browse the repository at this point in the history
embedded subprocess story
  • Loading branch information
till-stadtler authored May 16, 2024
2 parents 1bad62f + ea4131b commit 20ce34a
Show file tree
Hide file tree
Showing 4 changed files with 602 additions and 50 deletions.
134 changes: 134 additions & 0 deletions public/bpmn-stories/group4/subprocess_1.bpmn
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
<?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:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:modeler="http://camunda.org/schema/modeler/1.0" id="Definitions_1h5g7sh" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="5.19.0" modeler:executionPlatform="Camunda Cloud" modeler:executionPlatformVersion="8.4.0">
<bpmn:process id="Process_1e6z54c" isExecutable="true">
<bpmn:startEvent id="StartEvent_1" name="start process">
<bpmn:outgoing>Flow_1o3o3fh</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:sequenceFlow id="Flow_1o3o3fh" sourceRef="StartEvent_1" targetRef="Activity_1qxtqgx" />
<bpmn:endEvent id="Event_0n12or4" name="end process">
<bpmn:incoming>Flow_13puuab</bpmn:incoming>
</bpmn:endEvent>
<bpmn:subProcess id="Activity_0d3otcj" name="subprocess">
<bpmn:incoming>Flow_1bjdenm</bpmn:incoming>
<bpmn:outgoing>Flow_1msuqma</bpmn:outgoing>
<bpmn:startEvent id="Event_1jmca1a" name="start subprocess">
<bpmn:outgoing>Flow_0njjg59</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:sequenceFlow id="Flow_0njjg59" sourceRef="Event_1jmca1a" targetRef="Activity_0s00q1s" />
<bpmn:exclusiveGateway id="Gateway_0byba9e" default="Flow_0r0flhv">
<bpmn:incoming>Flow_0dy4t3z</bpmn:incoming>
<bpmn:outgoing>Flow_0r0flhv</bpmn:outgoing>
<bpmn:outgoing>Flow_0r3oqhn</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:sequenceFlow id="Flow_0dy4t3z" sourceRef="Activity_0s00q1s" targetRef="Gateway_0byba9e" />
<bpmn:endEvent id="Event_0f8tbiu" name="end subprocess">
<bpmn:incoming>Flow_0r0flhv</bpmn:incoming>
</bpmn:endEvent>
<bpmn:sequenceFlow id="Flow_0r0flhv" sourceRef="Gateway_0byba9e" targetRef="Event_0f8tbiu" />
<bpmn:endEvent id="Event_0qkhrvj" name="alternative end subprocess">
<bpmn:incoming>Flow_0r3oqhn</bpmn:incoming>
</bpmn:endEvent>
<bpmn:sequenceFlow id="Flow_0r3oqhn" sourceRef="Gateway_0byba9e" targetRef="Event_0qkhrvj">
<bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">=amount &gt; 10</bpmn:conditionExpression>
</bpmn:sequenceFlow>
<bpmn:userTask id="Activity_0s00q1s" name="Do something else">
<bpmn:incoming>Flow_0njjg59</bpmn:incoming>
<bpmn:outgoing>Flow_0dy4t3z</bpmn:outgoing>
</bpmn:userTask>
</bpmn:subProcess>
<bpmn:sequenceFlow id="Flow_1bjdenm" sourceRef="Activity_1qxtqgx" targetRef="Activity_0d3otcj" />
<bpmn:sequenceFlow id="Flow_1msuqma" sourceRef="Activity_0d3otcj" targetRef="Activity_1fbptud" />
<bpmn:sequenceFlow id="Flow_13puuab" sourceRef="Activity_1fbptud" targetRef="Event_0n12or4" />
<bpmn:userTask id="Activity_1qxtqgx" name="Do something">
<bpmn:incoming>Flow_1o3o3fh</bpmn:incoming>
<bpmn:outgoing>Flow_1bjdenm</bpmn:outgoing>
</bpmn:userTask>
<bpmn:userTask id="Activity_1fbptud" name="Do something more">
<bpmn:incoming>Flow_1msuqma</bpmn:incoming>
<bpmn:outgoing>Flow_13puuab</bpmn:outgoing>
</bpmn:userTask>
</bpmn:process>
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_1e6z54c">
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
<dc:Bounds x="172" y="162" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="158" y="205" width="64" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_0n12or4_di" bpmnElement="Event_0n12or4">
<dc:Bounds x="1262" y="182" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="1250" y="225" width="61" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0uwh0op_di" bpmnElement="Activity_1qxtqgx">
<dc:Bounds x="310" y="140" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1me1sj7_di" bpmnElement="Activity_1fbptud">
<dc:Bounds x="1070" y="160" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0d3otcj_di" bpmnElement="Activity_0d3otcj" isExpanded="true">
<dc:Bounds x="520" y="80" width="490" height="290" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_1jmca1a_di" bpmnElement="Event_1jmca1a">
<dc:Bounds x="560" y="162" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="538" y="205" width="81" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_0byba9e_di" bpmnElement="Gateway_0byba9e" isMarkerVisible="true">
<dc:Bounds x="785" y="155" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_0f8tbiu_di" bpmnElement="Event_0f8tbiu">
<dc:Bounds x="872" y="162" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="851" y="205" width="78" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_0qkhrvj_di" bpmnElement="Event_0qkhrvj">
<dc:Bounds x="872" y="272" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="854" y="315" width="73" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0ecuamb_di" bpmnElement="Activity_0s00q1s">
<dc:Bounds x="650" y="140" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_0njjg59_di" bpmnElement="Flow_0njjg59">
<di:waypoint x="596" y="180" />
<di:waypoint x="650" y="180" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0dy4t3z_di" bpmnElement="Flow_0dy4t3z">
<di:waypoint x="750" y="180" />
<di:waypoint x="785" y="180" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0r0flhv_di" bpmnElement="Flow_0r0flhv">
<di:waypoint x="835" y="180" />
<di:waypoint x="872" y="180" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0r3oqhn_di" bpmnElement="Flow_0r3oqhn">
<di:waypoint x="810" y="205" />
<di:waypoint x="810" y="290" />
<di:waypoint x="872" y="290" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1o3o3fh_di" bpmnElement="Flow_1o3o3fh">
<di:waypoint x="208" y="180" />
<di:waypoint x="310" y="180" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1bjdenm_di" bpmnElement="Flow_1bjdenm">
<di:waypoint x="410" y="180" />
<di:waypoint x="520" y="180" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1msuqma_di" bpmnElement="Flow_1msuqma">
<di:waypoint x="1010" y="200" />
<di:waypoint x="1070" y="200" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_13puuab_di" bpmnElement="Flow_13puuab">
<di:waypoint x="1170" y="200" />
<di:waypoint x="1262" y="200" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>
138 changes: 138 additions & 0 deletions public/bpmn-stories/group4/subprocess_2.bpmn
Original file line number Diff line number Diff line change
@@ -0,0 +1,138 @@
<?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:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:modeler="http://camunda.org/schema/modeler/1.0" id="Definitions_1h5g7sh" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="5.19.0" modeler:executionPlatform="Camunda Cloud" modeler:executionPlatformVersion="8.4.0">
<bpmn:process id="Process_1e6z54c" isExecutable="true">
<bpmn:startEvent id="StartEvent_1" name="start process">
<bpmn:outgoing>Flow_1o3o3fh</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:sequenceFlow id="Flow_1o3o3fh" sourceRef="StartEvent_1" targetRef="Activity_1qxtqgx" />
<bpmn:endEvent id="Event_0n12or4" name="end process">
<bpmn:incoming>Flow_13puuab</bpmn:incoming>
</bpmn:endEvent>
<bpmn:subProcess id="Activity_0d3otcj" name="subprocess">
<bpmn:incoming>Flow_1bjdenm</bpmn:incoming>
<bpmn:outgoing>Flow_1msuqma</bpmn:outgoing>
<bpmn:startEvent id="Event_1jmca1a" name="start subprocess">
<bpmn:outgoing>Flow_0njjg59</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:sequenceFlow id="Flow_0njjg59" sourceRef="Event_1jmca1a" targetRef="Activity_0s00q1s" />
<bpmn:exclusiveGateway id="Gateway_0byba9e" default="Flow_0r0flhv">
<bpmn:incoming>Flow_0dy4t3z</bpmn:incoming>
<bpmn:outgoing>Flow_0r0flhv</bpmn:outgoing>
<bpmn:outgoing>Flow_0r3oqhn</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:sequenceFlow id="Flow_0dy4t3z" sourceRef="Activity_0s00q1s" targetRef="Gateway_0byba9e" />
<bpmn:endEvent id="Event_0f8tbiu" name="end subprocess">
<bpmn:incoming>Flow_0r0flhv</bpmn:incoming>
</bpmn:endEvent>
<bpmn:sequenceFlow id="Flow_0r0flhv" sourceRef="Gateway_0byba9e" targetRef="Event_0f8tbiu" />
<bpmn:endEvent id="Event_0qkhrvj" name="alternative end subprocess">
<bpmn:incoming>Flow_0r3oqhn</bpmn:incoming>
</bpmn:endEvent>
<bpmn:sequenceFlow id="Flow_0r3oqhn" sourceRef="Gateway_0byba9e" targetRef="Event_0qkhrvj">
<bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">=amount &gt; 10</bpmn:conditionExpression>
</bpmn:sequenceFlow>
<bpmn:userTask id="Activity_0s00q1s" name="Do something else">
<bpmn:incoming>Flow_0njjg59</bpmn:incoming>
<bpmn:outgoing>Flow_0dy4t3z</bpmn:outgoing>
</bpmn:userTask>
</bpmn:subProcess>
<bpmn:sequenceFlow id="Flow_1bjdenm" sourceRef="Activity_1qxtqgx" targetRef="Activity_0d3otcj" />
<bpmn:sequenceFlow id="Flow_1msuqma" sourceRef="Activity_0d3otcj" targetRef="Activity_1fbptud" />
<bpmn:sequenceFlow id="Flow_13puuab" sourceRef="Activity_1fbptud" targetRef="Event_0n12or4" />
<bpmn:userTask id="Activity_1qxtqgx" name="Do something">
<bpmn:incoming>Flow_1o3o3fh</bpmn:incoming>
<bpmn:outgoing>Flow_1bjdenm</bpmn:outgoing>
</bpmn:userTask>
<bpmn:userTask id="Activity_1fbptud" name="Do something more">
<bpmn:incoming>Flow_1msuqma</bpmn:incoming>
<bpmn:outgoing>Flow_13puuab</bpmn:outgoing>
</bpmn:userTask>
</bpmn:process>
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_1e6z54c">
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
<dc:Bounds x="172" y="102" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="158" y="145" width="64" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0uwh0op_di" bpmnElement="Activity_1qxtqgx">
<dc:Bounds x="310" y="80" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1me1sj7_di" bpmnElement="Activity_1fbptud">
<dc:Bounds x="670" y="80" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_0n12or4_di" bpmnElement="Event_0n12or4">
<dc:Bounds x="872" y="102" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="860" y="145" width="61" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0d3otcj_di" bpmnElement="Activity_0d3otcj" isExpanded="false">
<dc:Bounds x="490" y="80" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_1o3o3fh_di" bpmnElement="Flow_1o3o3fh">
<di:waypoint x="208" y="120" />
<di:waypoint x="310" y="120" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_13puuab_di" bpmnElement="Flow_13puuab">
<di:waypoint x="770" y="120" />
<di:waypoint x="872" y="120" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1bjdenm_di" bpmnElement="Flow_1bjdenm">
<di:waypoint x="410" y="120" />
<di:waypoint x="490" y="120" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1msuqma_di" bpmnElement="Flow_1msuqma">
<di:waypoint x="590" y="120" />
<di:waypoint x="670" y="120" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
<bpmndi:BPMNDiagram id="BPMNDiagram_0pbtmso">
<bpmndi:BPMNPlane id="BPMNPlane_1eu68kj" bpmnElement="Activity_0d3otcj">
<bpmndi:BPMNShape id="Event_1jmca1a_di" bpmnElement="Event_1jmca1a">
<dc:Bounds x="202" y="182" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="180" y="225" width="81" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_0byba9e_di" bpmnElement="Gateway_0byba9e" isMarkerVisible="true">
<dc:Bounds x="427" y="175" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_0f8tbiu_di" bpmnElement="Event_0f8tbiu">
<dc:Bounds x="514" y="182" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="493" y="225" width="78" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_0qkhrvj_di" bpmnElement="Event_0qkhrvj">
<dc:Bounds x="514" y="292" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="496" y="335" width="73" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0ecuamb_di" bpmnElement="Activity_0s00q1s">
<dc:Bounds x="292" y="160" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_0njjg59_di" bpmnElement="Flow_0njjg59">
<di:waypoint x="238" y="200" />
<di:waypoint x="292" y="200" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0dy4t3z_di" bpmnElement="Flow_0dy4t3z">
<di:waypoint x="392" y="200" />
<di:waypoint x="427" y="200" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0r0flhv_di" bpmnElement="Flow_0r0flhv">
<di:waypoint x="477" y="200" />
<di:waypoint x="514" y="200" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0r3oqhn_di" bpmnElement="Flow_0r3oqhn">
<di:waypoint x="452" y="225" />
<di:waypoint x="452" y="310" />
<di:waypoint x="514" y="310" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>
Loading

0 comments on commit 20ce34a

Please sign in to comment.