Skip to content

Commit

Permalink
docs: update ad-hoc examples
Browse files Browse the repository at this point in the history
  • Loading branch information
nikku committed Feb 17, 2025
1 parent 89a8f7a commit bfbe5c5
Show file tree
Hide file tree
Showing 4 changed files with 91 additions and 123 deletions.
110 changes: 53 additions & 57 deletions docs/rules/examples/ad-hoc-sub-process-correct.bpmn
Original file line number Diff line number Diff line change
@@ -1,62 +1,58 @@
<?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" id="Definitions_1ntx4rf" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="5.32.0">
<bpmn:process id="Process_1" isExecutable="true">
<bpmn:adHocSubProcess id="SubProcess_0zz45ap" name="Ad-hoc subprocess">
<bpmn:intermediateCatchEvent id="Event_0fkph5i">
<bpmn:outgoing>Flow_0ki1200</bpmn:outgoing>
<bpmn:linkEventDefinition id="LinkEventDefinition_0o8x64t" name="" />
</bpmn:intermediateCatchEvent>
<bpmn:intermediateThrowEvent id="Event_16c5xe9">
<bpmn:outgoing>Flow_0togudw</bpmn:outgoing>
</bpmn:intermediateThrowEvent>
<bpmn:task id="Activity_0d8s2mi" />
<bpmn:task id="Activity_1dnnvam">
<bpmn:incoming>Flow_0togudw</bpmn:incoming>
</bpmn:task>
<bpmn:task id="Activity_1hpwxh3" />
<bpmn:task id="Activity_0ghtle5" />
<bpmn:task id="Activity_04q1i1s">
<bpmn:incoming>Flow_0ki1200</bpmn:incoming>
</bpmn:task>
<bpmn:sequenceFlow id="Flow_0ki1200" sourceRef="Event_0fkph5i" targetRef="Activity_04q1i1s" />
<bpmn:sequenceFlow id="Flow_0togudw" sourceRef="Event_16c5xe9" targetRef="Activity_1dnnvam" />
</bpmn:adHocSubProcess>
</bpmn:process>
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_1">
<bpmndi:BPMNShape id="Activity_0h7j88j_di" bpmnElement="SubProcess_0zz45ap" isExpanded="true">
<dc:Bounds x="120" y="60" width="410" height="360" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0d8s2mi_di" bpmnElement="Activity_0d8s2mi">
<dc:Bounds x="248" y="110" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_0fkph5i_di" bpmnElement="Event_0fkph5i">
<dc:Bounds x="150" y="232" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1dnnvam_di" bpmnElement="Activity_1dnnvam">
<dc:Bounds x="248" y="310" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0z0sa2f" bpmnElement="Activity_1hpwxh3">
<dc:Bounds x="388" y="210" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1e8yor2" bpmnElement="Activity_0ghtle5">
<dc:Bounds x="388" y="310" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_12ph7yu_di" bpmnElement="Activity_04q1i1s">
<dc:Bounds x="248" y="210" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_16c5xe9_di" bpmnElement="Event_16c5xe9">
<dc:Bounds x="150" y="332" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_0ki1200_di" bpmnElement="Flow_0ki1200">
<di:waypoint x="186" y="250" />
<di:waypoint x="248" y="250" />
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI" xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="sid-38422fae-e03e-43a3-bef4-bd33b32041b2" targetNamespace="http://bpmn.io/bpmn" exporter="Camunda Modeler" exporterVersion="5.32.0-rc.0">
<process id="Process_1" isExecutable="false">
<adHocSubProcess id="Activity_1yjcy2x">
<task id="Activity_0o1bgqx">
<outgoing>Flow_0njsews</outgoing>
</task>
<task id="Activity_142jk6n">
<incoming>Flow_0njsews</incoming>
</task>
<sequenceFlow id="Flow_0njsews" sourceRef="Activity_0o1bgqx" targetRef="Activity_142jk6n" />
<intermediateCatchEvent id="Event_0q40via">
<outgoing>Flow_1ykoger</outgoing>
<conditionalEventDefinition id="ConditionalEventDefinition_0q04q9v">
<condition xsi:type="tFormalExpression" />
</conditionalEventDefinition>
</intermediateCatchEvent>
<task id="Activity_12w8ibt" />
<task id="Activity_1u082wx">
<incoming>Flow_1ykoger</incoming>
</task>
<sequenceFlow id="Flow_1ykoger" sourceRef="Event_0q40via" targetRef="Activity_1u082wx" />
</adHocSubProcess>
</process>
<bpmndi:BPMNDiagram id="BpmnDiagram_1">
<bpmndi:BPMNPlane id="BpmnPlane_1" bpmnElement="Process_1">
<bpmndi:BPMNShape id="Activity_02xy6cc_di" bpmnElement="Activity_1yjcy2x" isExpanded="true">
<omgdc:Bounds x="160" y="80" width="390" height="410" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_12w8ibt_di" bpmnElement="Activity_12w8ibt">
<omgdc:Bounds x="220" y="120" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0o1bgqx_di" bpmnElement="Activity_0o1bgqx">
<omgdc:Bounds x="220" y="240" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1b353o5" bpmnElement="Activity_142jk6n">
<omgdc:Bounds x="380" y="240" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1u082wx_di" bpmnElement="Activity_1u082wx">
<omgdc:Bounds x="380" y="360" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_069bzsw_di" bpmnElement="Event_0q40via">
<omgdc:Bounds x="252" y="382" width="36" height="36" />
<bpmndi:BPMNLabel>
<omgdc:Bounds x="408" y="485" width="84" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_0njsews_di" bpmnElement="Flow_0njsews">
<omgdi:waypoint x="320" y="280" />
<omgdi:waypoint x="380" y="280" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0togudw_di" bpmnElement="Flow_0togudw">
<di:waypoint x="186" y="350" />
<di:waypoint x="248" y="350" />
<bpmndi:BPMNEdge id="Flow_1ykoger_di" bpmnElement="Flow_1ykoger">
<omgdi:waypoint x="288" y="400" />
<omgdi:waypoint x="380" y="400" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>
</definitions>
Binary file modified docs/rules/examples/ad-hoc-sub-process-correct.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
104 changes: 38 additions & 66 deletions docs/rules/examples/ad-hoc-sub-process-incorrect.bpmn
Original file line number Diff line number Diff line change
@@ -1,70 +1,42 @@
<?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" id="Definitions_1ntx4rf" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="5.32.0">
<bpmn:process id="Process_1" isExecutable="true">
<bpmn:adHocSubProcess id="SubProcess_0zz45ap" name="Ad-hoc subprocess">
<bpmn:intermediateCatchEvent id="Event_0fkph5i">
<bpmn:linkEventDefinition id="LinkEventDefinition_0o8x64t" name="" />
</bpmn:intermediateCatchEvent>
<bpmn:intermediateThrowEvent id="Event_16c5xe9" />
<bpmn:task id="Activity_0d8s2mi">
<bpmn:incoming>Flow_0w1fi7u</bpmn:incoming>
<bpmn:outgoing>Flow_10hamq6</bpmn:outgoing>
</bpmn:task>
<bpmn:startEvent id="Event_0fvpyx9">
<bpmn:outgoing>Flow_0w1fi7u</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:sequenceFlow id="Flow_0w1fi7u" sourceRef="Event_0fvpyx9" targetRef="Activity_0d8s2mi" />
<bpmn:endEvent id="Event_1ma75bn">
<bpmn:incoming>Flow_10hamq6</bpmn:incoming>
</bpmn:endEvent>
<bpmn:sequenceFlow id="Flow_10hamq6" sourceRef="Activity_0d8s2mi" targetRef="Event_1ma75bn" />
<bpmn:task id="Activity_1dnnvam" />
<bpmn:task id="Activity_1hpwxh3" />
<bpmn:task id="Activity_0ghtle5" />
<bpmn:task id="Activity_04q1i1s" />
</bpmn:adHocSubProcess>
</bpmn:process>
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_1">
<bpmndi:BPMNShape id="Activity_0h7j88j_di" bpmnElement="SubProcess_0zz45ap" isExpanded="true">
<dc:Bounds x="120" y="60" width="410" height="360" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0d8s2mi_di" bpmnElement="Activity_0d8s2mi">
<dc:Bounds x="248" y="110" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_0fvpyx9_di" bpmnElement="Event_0fvpyx9">
<dc:Bounds x="150" y="132" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_1ma75bn_di" bpmnElement="Event_1ma75bn">
<dc:Bounds x="420" y="132" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_0fkph5i_di" bpmnElement="Event_0fkph5i">
<dc:Bounds x="150" y="232" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1dnnvam_di" bpmnElement="Activity_1dnnvam">
<dc:Bounds x="248" y="310" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0z0sa2f" bpmnElement="Activity_1hpwxh3">
<dc:Bounds x="388" y="210" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1e8yor2" bpmnElement="Activity_0ghtle5">
<dc:Bounds x="388" y="310" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_12ph7yu_di" bpmnElement="Activity_04q1i1s">
<dc:Bounds x="248" y="210" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_16c5xe9_di" bpmnElement="Event_16c5xe9">
<dc:Bounds x="150" y="332" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_0w1fi7u_di" bpmnElement="Flow_0w1fi7u">
<di:waypoint x="186" y="150" />
<di:waypoint x="248" y="150" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_10hamq6_di" bpmnElement="Flow_10hamq6">
<di:waypoint x="348" y="150" />
<di:waypoint x="420" y="150" />
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI" xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="sid-38422fae-e03e-43a3-bef4-bd33b32041b2" targetNamespace="http://bpmn.io/bpmn" exporter="Camunda Modeler" exporterVersion="5.32.0-rc.0">
<process id="Process_1" isExecutable="false">
<adHocSubProcess id="Activity_1yjcy2x">
<intermediateCatchEvent id="Event_0q40via">
<conditionalEventDefinition id="ConditionalEventDefinition_0q04q9v">
<condition xsi:type="tFormalExpression" />
</conditionalEventDefinition>
</intermediateCatchEvent>
<startEvent id="Event_03k6pnd">
<outgoing>Flow_0ej0cl8</outgoing>
</startEvent>
<endEvent id="Event_03gcp25">
<incoming>Flow_0ej0cl8</incoming>
</endEvent>
<sequenceFlow id="Flow_0ej0cl8" sourceRef="Event_03k6pnd" targetRef="Event_03gcp25" />
</adHocSubProcess>
</process>
<bpmndi:BPMNDiagram id="BpmnDiagram_1">
<bpmndi:BPMNPlane id="BpmnPlane_1" bpmnElement="Process_1">
<bpmndi:BPMNShape id="Activity_02xy6cc_di" bpmnElement="Activity_1yjcy2x" isExpanded="true">
<omgdc:Bounds x="160" y="80" width="390" height="250" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_03k6pnd_di" bpmnElement="Event_03k6pnd">
<omgdc:Bounds x="252" y="132" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_03gcp25_di" bpmnElement="Event_03gcp25">
<omgdc:Bounds x="422" y="132" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_069bzsw_di" bpmnElement="Event_0q40via">
<omgdc:Bounds x="252" y="232" width="36" height="36" />
<bpmndi:BPMNLabel>
<omgdc:Bounds x="408" y="485" width="84" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_0ej0cl8_di" bpmnElement="Flow_0ej0cl8">
<omgdi:waypoint x="288" y="150" />
<omgdi:waypoint x="422" y="150" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>
</definitions>
Binary file modified docs/rules/examples/ad-hoc-sub-process-incorrect.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit bfbe5c5

Please sign in to comment.