Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:rule:collapsed_subprocess [2023-08-06 19:00] – removed - external edit (Unknown date) 127.0.0.1en:rule:collapsed_subprocess [2024-03-24 18:39] (current) – [Use collapsed subprocesses] Anatoly Belaychuk
Line 1: Line 1:
 +====== Use collapsed subprocesses ======
 +
 +{{tag>subprocess visual_style}}
 +
 +Primary purpose of subprocesses is process diagram simplification by decomposition. Depicting subprocess expanded makes the diagram more complicated, hence it's usually better to use collapsed representation.
 +
 +===== ✔ How to =====
 +
 +<bpmnio type="bpmn">
 +<?xml version="1.0" encoding="UTF-8"?>
 +<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="http://bpmn.io" exporterVersion="0.10.1">
 +  <process id="Process_1vu1sh6">
 +    <startEvent id="Event_0d61usq">
 +      <outgoing>Flow_10am0ku</outgoing>
 +    </startEvent>
 +    <sequenceFlow id="Flow_10am0ku" sourceRef="Event_0d61usq" targetRef="Activity_1qbidyi" />
 +    <subProcess id="Activity_1qbidyi" name="Contract approval">
 +      <incoming>Flow_10am0ku</incoming>
 +      <outgoing>Flow_1dkdgxm</outgoing>
 +    </subProcess>
 +    <exclusiveGateway id="Gateway_006g8g9" name="OK?">
 +      <incoming>Flow_1dkdgxm</incoming>
 +      <outgoing>Flow_1e3hwsw</outgoing>
 +      <outgoing>Flow_0mifudj</outgoing>
 +    </exclusiveGateway>
 +    <sequenceFlow id="Flow_1dkdgxm" sourceRef="Activity_1qbidyi" targetRef="Gateway_006g8g9" />
 +    <endEvent id="Event_0l5tiy1" name="Not approved">
 +      <incoming>Flow_1e3hwsw</incoming>
 +    </endEvent>
 +    <sequenceFlow id="Flow_1e3hwsw" name="no" sourceRef="Gateway_006g8g9" targetRef="Event_0l5tiy1" />
 +    <sequenceFlow id="Flow_0mifudj" name="yes" sourceRef="Gateway_006g8g9" targetRef="Activity_1l8v61d" />
 +    <subProcess id="Activity_1l8v61d" name="Contract signing">
 +      <incoming>Flow_0mifudj</incoming>
 +      <outgoing>Flow_1b0fk7j</outgoing>
 +    </subProcess>
 +    <endEvent id="Event_1pr3936" name="OK">
 +      <incoming>Flow_07fr272</incoming>
 +    </endEvent>
 +    <sequenceFlow id="Flow_1b0fk7j" sourceRef="Activity_1l8v61d" targetRef="Gateway_1jw4u6k" />
 +    <exclusiveGateway id="Gateway_1jw4u6k" name="OK?">
 +      <incoming>Flow_1b0fk7j</incoming>
 +      <outgoing>Flow_07fr272</outgoing>
 +      <outgoing>Flow_0bz6g1b</outgoing>
 +    </exclusiveGateway>
 +    <sequenceFlow id="Flow_07fr272" name="yes" sourceRef="Gateway_1jw4u6k" targetRef="Event_1pr3936" />
 +    <endEvent id="Event_0784orm" name="Not signed">
 +      <incoming>Flow_0bz6g1b</incoming>
 +    </endEvent>
 +    <sequenceFlow id="Flow_0bz6g1b" name="no" sourceRef="Gateway_1jw4u6k" targetRef="Event_0784orm" />
 +  </process>
 +  <bpmndi:BPMNDiagram id="BpmnDiagram_1">
 +    <bpmndi:BPMNPlane id="BpmnPlane_1" bpmnElement="Process_1vu1sh6">
 +      <bpmndi:BPMNShape id="Event_0d61usq_di" bpmnElement="Event_0d61usq">
 +        <omgdc:Bounds x="192" y="172" width="36" height="36" />
 +      </bpmndi:BPMNShape>
 +      <bpmndi:BPMNShape id="Gateway_006g8g9_di" bpmnElement="Gateway_006g8g9" isMarkerVisible="true">
 +        <omgdc:Bounds x="405" y="165" width="50" height="50" />
 +        <bpmndi:BPMNLabel>
 +          <omgdc:Bounds x="418" y="141" width="23" height="14" />
 +        </bpmndi:BPMNLabel>
 +      </bpmndi:BPMNShape>
 +      <bpmndi:BPMNShape id="Event_0l5tiy1_di" bpmnElement="Event_0l5tiy1">
 +        <omgdc:Bounds x="412" y="262" width="36" height="36" />
 +        <bpmndi:BPMNLabel>
 +          <omgdc:Bounds x="397" y="305" width="67" height="14" />
 +        </bpmndi:BPMNLabel>
 +      </bpmndi:BPMNShape>
 +      <bpmndi:BPMNShape id="Gateway_1jw4u6k_di" bpmnElement="Gateway_1jw4u6k" isMarkerVisible="true">
 +        <omgdc:Bounds x="645" y="165" width="50" height="50" />
 +        <bpmndi:BPMNLabel>
 +          <omgdc:Bounds x="659" y="135" width="23" height="14" />
 +        </bpmndi:BPMNLabel>
 +      </bpmndi:BPMNShape>
 +      <bpmndi:BPMNShape id="Event_0784orm_di" bpmnElement="Event_0784orm">
 +        <omgdc:Bounds x="652" y="262" width="36" height="36" />
 +        <bpmndi:BPMNLabel>
 +          <omgdc:Bounds x="644" y="305" width="53" height="14" />
 +        </bpmndi:BPMNLabel>
 +      </bpmndi:BPMNShape>
 +      <bpmndi:BPMNShape id="Event_1pr3936_di" bpmnElement="Event_1pr3936">
 +        <omgdc:Bounds x="742" y="172" width="36" height="36" />
 +        <bpmndi:BPMNLabel>
 +          <omgdc:Bounds x="752" y="215" width="17" height="14" />
 +        </bpmndi:BPMNLabel>
 +      </bpmndi:BPMNShape>
 +      <bpmndi:BPMNShape id="Activity_0l7bbam_di" bpmnElement="Activity_1qbidyi">
 +        <omgdc:Bounds x="260" y="150" width="100" height="80" />
 +        <bpmndi:BPMNLabel />
 +      </bpmndi:BPMNShape>
 +      <bpmndi:BPMNShape id="Activity_0ijhyg7_di" bpmnElement="Activity_1l8v61d">
 +        <omgdc:Bounds x="500" y="150" width="100" height="80" />
 +        <bpmndi:BPMNLabel />
 +      </bpmndi:BPMNShape>
 +      <bpmndi:BPMNEdge id="Flow_10am0ku_di" bpmnElement="Flow_10am0ku">
 +        <omgdi:waypoint x="228" y="190" />
 +        <omgdi:waypoint x="260" y="190" />
 +      </bpmndi:BPMNEdge>
 +      <bpmndi:BPMNEdge id="Flow_1dkdgxm_di" bpmnElement="Flow_1dkdgxm">
 +        <omgdi:waypoint x="360" y="190" />
 +        <omgdi:waypoint x="405" y="190" />
 +      </bpmndi:BPMNEdge>
 +      <bpmndi:BPMNEdge id="Flow_1e3hwsw_di" bpmnElement="Flow_1e3hwsw">
 +        <omgdi:waypoint x="430" y="215" />
 +        <omgdi:waypoint x="430" y="262" />
 +        <bpmndi:BPMNLabel>
 +          <omgdc:Bounds x="439" y="236" width="13" height="14" />
 +        </bpmndi:BPMNLabel>
 +      </bpmndi:BPMNEdge>
 +      <bpmndi:BPMNEdge id="Flow_0mifudj_di" bpmnElement="Flow_0mifudj">
 +        <omgdi:waypoint x="455" y="190" />
 +        <omgdi:waypoint x="500" y="190" />
 +        <bpmndi:BPMNLabel>
 +          <omgdc:Bounds x="469" y="172" width="17" height="14" />
 +        </bpmndi:BPMNLabel>
 +      </bpmndi:BPMNEdge>
 +      <bpmndi:BPMNEdge id="Flow_1b0fk7j_di" bpmnElement="Flow_1b0fk7j">
 +        <omgdi:waypoint x="600" y="190" />
 +        <omgdi:waypoint x="645" y="190" />
 +      </bpmndi:BPMNEdge>
 +      <bpmndi:BPMNEdge id="Flow_07fr272_di" bpmnElement="Flow_07fr272">
 +        <omgdi:waypoint x="695" y="190" />
 +        <omgdi:waypoint x="742" y="190" />
 +        <bpmndi:BPMNLabel>
 +          <omgdc:Bounds x="710" y="172" width="17" height="14" />
 +        </bpmndi:BPMNLabel>
 +      </bpmndi:BPMNEdge>
 +      <bpmndi:BPMNEdge id="Flow_0bz6g1b_di" bpmnElement="Flow_0bz6g1b">
 +        <omgdi:waypoint x="670" y="215" />
 +        <omgdi:waypoint x="670" y="262" />
 +        <bpmndi:BPMNLabel>
 +          <omgdc:Bounds x="679" y="236" width="13" height="14" />
 +        </bpmndi:BPMNLabel>
 +      </bpmndi:BPMNEdge>
 +    </bpmndi:BPMNPlane>
 +  </bpmndi:BPMNDiagram>
 +  <bpmndi:BPMNDiagram id="BPMNDiagram_04zvoq7">
 +    <bpmndi:BPMNPlane id="BPMNPlane_0l9l4y3" bpmnElement="Activity_1qbidyi" />
 +  </bpmndi:BPMNDiagram>
 +  <bpmndi:BPMNDiagram id="BPMNDiagram_0nc5wnv">
 +    <bpmndi:BPMNPlane id="BPMNPlane_1s4b1o4" bpmnElement="Activity_1l8v61d" />
 +  </bpmndi:BPMNDiagram>
 +</definitions>
 +</bpmnio>
 +
 +===== ✔ How NOT To =====
 +
 +<bpmnio type="bpmn">
 +<?xml version="1.0" encoding="UTF-8"?>
 +<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="http://bpmn.io" exporterVersion="0.10.1">
 +  <process id="Process_1vu1sh6">
 +    <startEvent id="Event_0d61usq">
 +      <outgoing>Flow_10am0ku</outgoing>
 +    </startEvent>
 +    <sequenceFlow id="Flow_10am0ku" sourceRef="Event_0d61usq" targetRef="Activity_1qbidyi" />
 +    <subProcess id="Activity_1qbidyi" name="Contract approval">
 +      <incoming>Flow_10am0ku</incoming>
 +      <outgoing>Flow_1dkdgxm</outgoing>
 +    </subProcess>
 +    <exclusiveGateway id="Gateway_006g8g9" name="OK?">
 +      <incoming>Flow_1dkdgxm</incoming>
 +      <outgoing>Flow_1e3hwsw</outgoing>
 +      <outgoing>Flow_0mifudj</outgoing>
 +    </exclusiveGateway>
 +    <sequenceFlow id="Flow_1dkdgxm" sourceRef="Activity_1qbidyi" targetRef="Gateway_006g8g9" />
 +    <endEvent id="Event_0l5tiy1" name="Not approved">
 +      <incoming>Flow_1e3hwsw</incoming>
 +    </endEvent>
 +    <sequenceFlow id="Flow_1e3hwsw" name="no" sourceRef="Gateway_006g8g9" targetRef="Event_0l5tiy1" />
 +    <sequenceFlow id="Flow_0mifudj" name="yes" sourceRef="Gateway_006g8g9" targetRef="Activity_120r4gn" />
 +    <endEvent id="Event_1pr3936" name="OK">
 +      <incoming>Flow_07fr272</incoming>
 +    </endEvent>
 +    <exclusiveGateway id="Gateway_1jw4u6k" name="OK?">
 +      <incoming>Flow_0ngp6ua</incoming>
 +      <outgoing>Flow_07fr272</outgoing>
 +      <outgoing>Flow_0bz6g1b</outgoing>
 +    </exclusiveGateway>
 +    <sequenceFlow id="Flow_07fr272" name="yes" sourceRef="Gateway_1jw4u6k" targetRef="Event_1pr3936" />
 +    <endEvent id="Event_0784orm" name="Not signed">
 +      <incoming>Flow_0bz6g1b</incoming>
 +    </endEvent>
 +    <sequenceFlow id="Flow_0bz6g1b" name="no" sourceRef="Gateway_1jw4u6k" targetRef="Event_0784orm" />
 +    <subProcess id="Activity_120r4gn" name="Contract signing">
 +      <incoming>Flow_0mifudj</incoming>
 +      <outgoing>Flow_0ngp6ua</outgoing>
 +      <startEvent id="Event_1yfwvge">
 +        <outgoing>Flow_1qub4ir</outgoing>
 +      </startEvent>
 +      <sequenceFlow id="Flow_1qub4ir" sourceRef="Event_1yfwvge" targetRef="Gateway_0bf30xa" />
 +      <parallelGateway id="Gateway_0bf30xa">
 +        <incoming>Flow_1qub4ir</incoming>
 +        <outgoing>Flow_0re3aix</outgoing>
 +        <outgoing>Flow_0qmhusa</outgoing>
 +      </parallelGateway>
 +      <task id="Activity_18ccy2z" name="Sing with the client">
 +        <incoming>Flow_0re3aix</incoming>
 +        <outgoing>Flow_0lmv1wf</outgoing>
 +      </task>
 +      <sequenceFlow id="Flow_0re3aix" sourceRef="Gateway_0bf30xa" targetRef="Activity_18ccy2z" />
 +      <task id="Activity_02jxjr6" name="Sign internally">
 +        <incoming>Flow_0qmhusa</incoming>
 +        <outgoing>Flow_1vo6ex0</outgoing>
 +      </task>
 +      <sequenceFlow id="Flow_0qmhusa" sourceRef="Gateway_0bf30xa" targetRef="Activity_02jxjr6" />
 +      <exclusiveGateway id="Gateway_08ybxzy" name="OK?">
 +        <incoming>Flow_0lmv1wf</incoming>
 +        <outgoing>Flow_0wby93b</outgoing>
 +        <outgoing>Flow_1all91w</outgoing>
 +      </exclusiveGateway>
 +      <sequenceFlow id="Flow_0lmv1wf" sourceRef="Activity_18ccy2z" targetRef="Gateway_08ybxzy" />
 +      <sequenceFlow id="Flow_0wby93b" name="no" sourceRef="Gateway_08ybxzy" targetRef="Event_14um3xo" />
 +      <exclusiveGateway id="Gateway_0xn740a" name="OK?">
 +        <incoming>Flow_1vo6ex0</incoming>
 +        <outgoing>Flow_0m7l1vm</outgoing>
 +        <outgoing>Flow_120ihyw</outgoing>
 +      </exclusiveGateway>
 +      <sequenceFlow id="Flow_1vo6ex0" sourceRef="Activity_02jxjr6" targetRef="Gateway_0xn740a" />
 +      <sequenceFlow id="Flow_0m7l1vm" name="no" sourceRef="Gateway_0xn740a" targetRef="Event_14um3xo" />
 +      <endEvent id="Event_14um3xo" name="Not signed">
 +        <incoming>Flow_0wby93b</incoming>
 +        <incoming>Flow_0m7l1vm</incoming>
 +        <terminateEventDefinition id="TerminateEventDefinition_1lkfs8a" />
 +      </endEvent>
 +      <sequenceFlow id="Flow_1all91w" name="yes" sourceRef="Gateway_08ybxzy" targetRef="Gateway_1qbtz3v" />
 +      <parallelGateway id="Gateway_1qbtz3v">
 +        <incoming>Flow_1all91w</incoming>
 +        <incoming>Flow_120ihyw</incoming>
 +        <outgoing>Flow_1rmf5k1</outgoing>
 +      </parallelGateway>
 +      <sequenceFlow id="Flow_120ihyw" name="yes" sourceRef="Gateway_0xn740a" targetRef="Gateway_1qbtz3v" />
 +      <endEvent id="Event_0810bey" name="OK">
 +        <incoming>Flow_1rmf5k1</incoming>
 +      </endEvent>
 +      <sequenceFlow id="Flow_1rmf5k1" sourceRef="Gateway_1qbtz3v" targetRef="Event_0810bey" />
 +    </subProcess>
 +    <sequenceFlow id="Flow_0ngp6ua" sourceRef="Activity_120r4gn" targetRef="Gateway_1jw4u6k" />
 +  </process>
 +  <bpmndi:BPMNDiagram id="BpmnDiagram_1">
 +    <bpmndi:BPMNPlane id="BpmnPlane_1" bpmnElement="Process_1vu1sh6">
 +      <bpmndi:BPMNShape id="Event_0d61usq_di" bpmnElement="Event_0d61usq">
 +        <omgdc:Bounds x="192" y="172" width="36" height="36" />
 +      </bpmndi:BPMNShape>
 +      <bpmndi:BPMNShape id="Activity_0l7bbam_di" bpmnElement="Activity_1qbidyi">
 +        <omgdc:Bounds x="260" y="150" width="100" height="80" />
 +        <bpmndi:BPMNLabel />
 +      </bpmndi:BPMNShape>
 +      <bpmndi:BPMNShape id="Gateway_006g8g9_di" bpmnElement="Gateway_006g8g9" isMarkerVisible="true">
 +        <omgdc:Bounds x="405" y="165" width="50" height="50" />
 +        <bpmndi:BPMNLabel>
 +          <omgdc:Bounds x="418" y="141" width="23" height="14" />
 +        </bpmndi:BPMNLabel>
 +      </bpmndi:BPMNShape>
 +      <bpmndi:BPMNShape id="Event_0l5tiy1_di" bpmnElement="Event_0l5tiy1">
 +        <omgdc:Bounds x="412" y="272" width="36" height="36" />
 +        <bpmndi:BPMNLabel>
 +          <omgdc:Bounds x="397" y="315" width="67" height="14" />
 +        </bpmndi:BPMNLabel>
 +      </bpmndi:BPMNShape>
 +      <bpmndi:BPMNShape id="Event_1pr3936_di" bpmnElement="Event_1pr3936">
 +        <omgdc:Bounds x="1072" y="172" width="36" height="36" />
 +        <bpmndi:BPMNLabel>
 +          <omgdc:Bounds x="1082" y="215" width="17" height="14" />
 +        </bpmndi:BPMNLabel>
 +      </bpmndi:BPMNShape>
 +      <bpmndi:BPMNShape id="Gateway_1jw4u6k_di" bpmnElement="Gateway_1jw4u6k" isMarkerVisible="true">
 +        <omgdc:Bounds x="975" y="165" width="50" height="50" />
 +        <bpmndi:BPMNLabel>
 +          <omgdc:Bounds x="989" y="135" width="23" height="14" />
 +        </bpmndi:BPMNLabel>
 +      </bpmndi:BPMNShape>
 +      <bpmndi:BPMNShape id="Event_0784orm_di" bpmnElement="Event_0784orm">
 +        <omgdc:Bounds x="982" y="272" width="36" height="36" />
 +        <bpmndi:BPMNLabel>
 +          <omgdc:Bounds x="974" y="315" width="53" height="14" />
 +        </bpmndi:BPMNLabel>
 +      </bpmndi:BPMNShape>
 +      <bpmndi:BPMNShape id="Activity_120r4gn_di" bpmnElement="Activity_120r4gn" isExpanded="true">
 +        <omgdc:Bounds x="500" y="10" width="440" height="345" />
 +        <bpmndi:BPMNLabel />
 +      </bpmndi:BPMNShape>
 +      <bpmndi:BPMNShape id="Event_1yfwvge_di" bpmnElement="Event_1yfwvge">
 +        <omgdc:Bounds x="532" y="172" width="36" height="36" />
 +      </bpmndi:BPMNShape>
 +      <bpmndi:BPMNShape id="Gateway_0tqe0i9_di" bpmnElement="Gateway_0bf30xa">
 +        <omgdc:Bounds x="605" y="165" width="50" height="50" />
 +      </bpmndi:BPMNShape>
 +      <bpmndi:BPMNShape id="Activity_18ccy2z_di" bpmnElement="Activity_18ccy2z">
 +        <omgdc:Bounds x="580" y="55" width="100" height="80" />
 +        <bpmndi:BPMNLabel />
 +      </bpmndi:BPMNShape>
 +      <bpmndi:BPMNShape id="Activity_02jxjr6_di" bpmnElement="Activity_02jxjr6">
 +        <omgdc:Bounds x="580" y="250" width="100" height="80" />
 +        <bpmndi:BPMNLabel />
 +      </bpmndi:BPMNShape>
 +      <bpmndi:BPMNShape id="Gateway_08ybxzy_di" bpmnElement="Gateway_08ybxzy" isMarkerVisible="true">
 +        <omgdc:Bounds x="715" y="70" width="50" height="50" />
 +        <bpmndi:BPMNLabel>
 +          <omgdc:Bounds x="729" y="53" width="23" height="14" />
 +        </bpmndi:BPMNLabel>
 +      </bpmndi:BPMNShape>
 +      <bpmndi:BPMNShape id="Gateway_0xn740a_di" bpmnElement="Gateway_0xn740a" isMarkerVisible="true">
 +        <omgdc:Bounds x="715" y="265" width="50" height="50" />
 +        <bpmndi:BPMNLabel>
 +          <omgdc:Bounds x="729" y="322" width="23" height="14" />
 +        </bpmndi:BPMNLabel>
 +      </bpmndi:BPMNShape>
 +      <bpmndi:BPMNShape id="Event_0qu6sdx_di" bpmnElement="Event_14um3xo">
 +        <omgdc:Bounds x="722" y="177" width="36" height="36" />
 +        <bpmndi:BPMNLabel>
 +          <omgdc:Bounds x="713" y="223" width="53" height="14" />
 +        </bpmndi:BPMNLabel>
 +      </bpmndi:BPMNShape>
 +      <bpmndi:BPMNShape id="Gateway_1ho67o7_di" bpmnElement="Gateway_1qbtz3v">
 +        <omgdc:Bounds x="785" y="165" width="50" height="50" />
 +      </bpmndi:BPMNShape>
 +      <bpmndi:BPMNShape id="Event_0810bey_di" bpmnElement="Event_0810bey">
 +        <omgdc:Bounds x="872" y="172" width="36" height="36" />
 +        <bpmndi:BPMNLabel>
 +          <omgdc:Bounds x="882" y="215" width="17" height="14" />
 +        </bpmndi:BPMNLabel>
 +      </bpmndi:BPMNShape>
 +      <bpmndi:BPMNEdge id="Flow_1qub4ir_di" bpmnElement="Flow_1qub4ir">
 +        <omgdi:waypoint x="568" y="190" />
 +        <omgdi:waypoint x="605" y="190" />
 +      </bpmndi:BPMNEdge>
 +      <bpmndi:BPMNEdge id="Flow_0re3aix_di" bpmnElement="Flow_0re3aix">
 +        <omgdi:waypoint x="630" y="165" />
 +        <omgdi:waypoint x="630" y="135" />
 +      </bpmndi:BPMNEdge>
 +      <bpmndi:BPMNEdge id="Flow_0qmhusa_di" bpmnElement="Flow_0qmhusa">
 +        <omgdi:waypoint x="630" y="215" />
 +        <omgdi:waypoint x="630" y="250" />
 +      </bpmndi:BPMNEdge>
 +      <bpmndi:BPMNEdge id="Flow_0lmv1wf_di" bpmnElement="Flow_0lmv1wf">
 +        <omgdi:waypoint x="680" y="95" />
 +        <omgdi:waypoint x="715" y="95" />
 +      </bpmndi:BPMNEdge>
 +      <bpmndi:BPMNEdge id="Flow_0wby93b_di" bpmnElement="Flow_0wby93b">
 +        <omgdi:waypoint x="740" y="120" />
 +        <omgdi:waypoint x="740" y="177" />
 +        <bpmndi:BPMNLabel>
 +          <omgdc:Bounds x="749" y="146" width="13" height="14" />
 +        </bpmndi:BPMNLabel>
 +      </bpmndi:BPMNEdge>
 +      <bpmndi:BPMNEdge id="Flow_1vo6ex0_di" bpmnElement="Flow_1vo6ex0">
 +        <omgdi:waypoint x="680" y="290" />
 +        <omgdi:waypoint x="715" y="290" />
 +      </bpmndi:BPMNEdge>
 +      <bpmndi:BPMNEdge id="Flow_0m7l1vm_di" bpmnElement="Flow_0m7l1vm">
 +        <omgdi:waypoint x="740" y="265" />
 +        <omgdi:waypoint x="740" y="213" />
 +        <bpmndi:BPMNLabel>
 +          <omgdc:Bounds x="749" y="236" width="13" height="14" />
 +        </bpmndi:BPMNLabel>
 +      </bpmndi:BPMNEdge>
 +      <bpmndi:BPMNEdge id="Flow_1all91w_di" bpmnElement="Flow_1all91w">
 +        <omgdi:waypoint x="765" y="95" />
 +        <omgdi:waypoint x="810" y="95" />
 +        <omgdi:waypoint x="810" y="165" />
 +        <bpmndi:BPMNLabel>
 +          <omgdc:Bounds x="779" y="77" width="17" height="14" />
 +        </bpmndi:BPMNLabel>
 +      </bpmndi:BPMNEdge>
 +      <bpmndi:BPMNEdge id="Flow_120ihyw_di" bpmnElement="Flow_120ihyw">
 +        <omgdi:waypoint x="765" y="290" />
 +        <omgdi:waypoint x="810" y="290" />
 +        <omgdi:waypoint x="810" y="215" />
 +        <bpmndi:BPMNLabel>
 +          <omgdc:Bounds x="779" y="272" width="17" height="14" />
 +        </bpmndi:BPMNLabel>
 +      </bpmndi:BPMNEdge>
 +      <bpmndi:BPMNEdge id="Flow_1rmf5k1_di" bpmnElement="Flow_1rmf5k1">
 +        <omgdi:waypoint x="835" y="190" />
 +        <omgdi:waypoint x="872" y="190" />
 +      </bpmndi:BPMNEdge>
 +      <bpmndi:BPMNEdge id="Flow_10am0ku_di" bpmnElement="Flow_10am0ku">
 +        <omgdi:waypoint x="228" y="190" />
 +        <omgdi:waypoint x="260" y="190" />
 +      </bpmndi:BPMNEdge>
 +      <bpmndi:BPMNEdge id="Flow_1dkdgxm_di" bpmnElement="Flow_1dkdgxm">
 +        <omgdi:waypoint x="360" y="190" />
 +        <omgdi:waypoint x="405" y="190" />
 +      </bpmndi:BPMNEdge>
 +      <bpmndi:BPMNEdge id="Flow_1e3hwsw_di" bpmnElement="Flow_1e3hwsw">
 +        <omgdi:waypoint x="430" y="215" />
 +        <omgdi:waypoint x="430" y="272" />
 +        <bpmndi:BPMNLabel>
 +          <omgdc:Bounds x="439" y="242" width="13" height="14" />
 +        </bpmndi:BPMNLabel>
 +      </bpmndi:BPMNEdge>
 +      <bpmndi:BPMNEdge id="Flow_0mifudj_di" bpmnElement="Flow_0mifudj">
 +        <omgdi:waypoint x="455" y="190" />
 +        <omgdi:waypoint x="500" y="190" />
 +        <bpmndi:BPMNLabel>
 +          <omgdc:Bounds x="455" y="172" width="17" height="14" />
 +        </bpmndi:BPMNLabel>
 +      </bpmndi:BPMNEdge>
 +      <bpmndi:BPMNEdge id="Flow_07fr272_di" bpmnElement="Flow_07fr272">
 +        <omgdi:waypoint x="1025" y="190" />
 +        <omgdi:waypoint x="1072" y="190" />
 +        <bpmndi:BPMNLabel>
 +          <omgdc:Bounds x="1041" y="172" width="17" height="14" />
 +        </bpmndi:BPMNLabel>
 +      </bpmndi:BPMNEdge>
 +      <bpmndi:BPMNEdge id="Flow_0bz6g1b_di" bpmnElement="Flow_0bz6g1b">
 +        <omgdi:waypoint x="1000" y="215" />
 +        <omgdi:waypoint x="1000" y="272" />
 +        <bpmndi:BPMNLabel>
 +          <omgdc:Bounds x="1006" y="252" width="13" height="14" />
 +        </bpmndi:BPMNLabel>
 +      </bpmndi:BPMNEdge>
 +      <bpmndi:BPMNEdge id="Flow_0ngp6ua_di" bpmnElement="Flow_0ngp6ua">
 +        <omgdi:waypoint x="940" y="190" />
 +        <omgdi:waypoint x="975" y="190" />
 +      </bpmndi:BPMNEdge>
 +    </bpmndi:BPMNPlane>
 +  </bpmndi:BPMNDiagram>
 +  <bpmndi:BPMNDiagram id="BPMNDiagram_04zvoq7">
 +    <bpmndi:BPMNPlane id="BPMNPlane_0l9l4y3" bpmnElement="Activity_1qbidyi" />
 +  </bpmndi:BPMNDiagram>
 +</definitions>
 +</bpmnio>
 +
 +===== Notes =====
 +
 +  * The overarching process / subprocess logic should not depend on the subprocess internals. As an example, at the diagrams above two flows exit from both approval and signing subprocesses. Whatever happens inside the subprocesses, it comes down either to "OK" or to "not OK" option.
 +===== Exceptions =====
 +
 +  * It may be handy to expand a subprocess for training/explanatory purposes but working process models should depict them collapsed.
 +  * It may make sense to depict a sub-process expanded if it's used not for decomposition, but as a special technique like the [[en:rule:control_branch | control branch]].
 +===== See also =====
 +
 +  * [[en:rule:check_subprocess_results]]
 +  * [[en:rule:control_branch]]
 +===== Author(s) =====
 +
 + --- //[[user:bell|Anatoly Belaychuk]] 2023-08-05 12:14//