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:intermediate_event_naming [2024-08-26 20:46] – [✔ How to] Anatoly Belaychuken:rule:intermediate_event_naming [2024-08-26 21:12] (current) – [0-TBD Intermediate event name should answer the question "what happened?"] Anatoly Belaychuk
Line 1: Line 1:
-====== 0-TBD Intermediate event name should answer the question "what happened?" ======+====== Intermediate event name should answer the question "what happened?" ======
  
-{{tag>naming}}+{{tag>naming intermediate_event}}
  
-{{en:underconstruction.png?nolink&200|}} +This rule is applied to all kinds of intermediate events - throwing, catching and attached.
- +
-Throwing, catching attached.+
  
 ===== ✔ How to ===== ===== ✔ How to =====
Line 28: Line 26:
     </task>     </task>
     <sequenceFlow id="Flow_17uwiz4" sourceRef="Event_0sy5cdz" targetRef="Activity_1a27284" />     <sequenceFlow id="Flow_17uwiz4" sourceRef="Event_0sy5cdz" targetRef="Activity_1a27284" />
-    <intermediateCatchEvent id="Event_1dvx4q3" name="Payment status changed to &#34;made&#34;">+    <intermediateCatchEvent id="Event_1dvx4q3" name="Payment status changed to &#34;received&#34;">
       <conditionalEventDefinition id="ConditionalEventDefinition_1bucsll">       <conditionalEventDefinition id="ConditionalEventDefinition_1bucsll">
         <condition xsi:type="tFormalExpression" />         <condition xsi:type="tFormalExpression" />
Line 38: Line 36:
     </task>     </task>
     <sequenceFlow id="Flow_01unld0" sourceRef="Event_0adwef1" targetRef="Activity_119ftmg" />     <sequenceFlow id="Flow_01unld0" sourceRef="Event_0adwef1" targetRef="Activity_119ftmg" />
-    <intermediateThrowEvent id="Event_1nqz7rg" name="Gale warning broadcasted">+    <intermediateThrowEvent id="Event_1nqz7rg" name="Gale warning">
       <signalEventDefinition id="SignalEventDefinition_0ighhex" />       <signalEventDefinition id="SignalEventDefinition_0ighhex" />
     </intermediateThrowEvent>     </intermediateThrowEvent>
-    <intermediateCatchEvent id="Event_1n34t62" name="Gale warning broadcasted">+    <intermediateCatchEvent id="Event_1n34t62" name="Gale warning">
       <signalEventDefinition id="SignalEventDefinition_1p8gxq3" />       <signalEventDefinition id="SignalEventDefinition_1p8gxq3" />
     </intermediateCatchEvent>     </intermediateCatchEvent>
Line 49: Line 47:
     </task>     </task>
     <sequenceFlow id="Flow_0cl0494" sourceRef="Event_1fzs5w5" targetRef="Activity_0ke2peo" />     <sequenceFlow id="Flow_0cl0494" sourceRef="Event_1fzs5w5" targetRef="Activity_0ke2peo" />
-    <boundaryEvent id="Event_1fzs5w5" name="Gale warning broadcasted" attachedToRef="Activity_0kjgj58">+    <boundaryEvent id="Event_1fzs5w5" name="Gale warning" attachedToRef="Activity_0kjgj58">
       <outgoing>Flow_0cl0494</outgoing>       <outgoing>Flow_0cl0494</outgoing>
       <signalEventDefinition id="SignalEventDefinition_1n7pn7w" />       <signalEventDefinition id="SignalEventDefinition_1n7pn7w" />
     </boundaryEvent>     </boundaryEvent>
-    <boundaryEvent id="Event_0adwef1" name="Payment status changed to &#34;made&#34;" attachedToRef="Activity_0voni1v">+    <boundaryEvent id="Event_0adwef1" name="Payment status changed to &#34;received&#34;" attachedToRef="Activity_0voni1v">
       <outgoing>Flow_01unld0</outgoing>       <outgoing>Flow_01unld0</outgoing>
       <conditionalEventDefinition id="ConditionalEventDefinition_0rwt0jq">       <conditionalEventDefinition id="ConditionalEventDefinition_0rwt0jq">
Line 74: Line 72:
   <bpmndi:BPMNDiagram id="BpmnDiagram_1">   <bpmndi:BPMNDiagram id="BpmnDiagram_1">
     <bpmndi:BPMNPlane id="BpmnPlane_1" bpmnElement="Process_1pkubye">     <bpmndi:BPMNPlane id="BpmnPlane_1" bpmnElement="Process_1pkubye">
-      <bpmndi:BPMNShape id="Activity_0y6rrmj_di" bpmnElement="Activity_0y6rrmj"> 
-        <omgdc:Bounds x="280" y="310" width="100" height="80" /> 
-      </bpmndi:BPMNShape> 
       <bpmndi:BPMNShape id="Event_0xjclxb_di" bpmnElement="Event_0m8lwmr">       <bpmndi:BPMNShape id="Event_0xjclxb_di" bpmnElement="Event_0m8lwmr">
         <omgdc:Bounds x="312" y="92" width="36" height="36" />         <omgdc:Bounds x="312" y="92" width="36" height="36" />
Line 88: Line 83:
           <omgdc:Bounds x="286" y="245" width="89" height="14" />           <omgdc:Bounds x="286" y="245" width="89" height="14" />
         </bpmndi:BPMNLabel>         </bpmndi:BPMNLabel>
 +      </bpmndi:BPMNShape>
 +      <bpmndi:BPMNShape id="Activity_0y6rrmj_di" bpmnElement="Activity_0y6rrmj">
 +        <omgdc:Bounds x="280" y="310" width="100" height="80" />
       </bpmndi:BPMNShape>       </bpmndi:BPMNShape>
       <bpmndi:BPMNShape id="Activity_1a27284_di" bpmnElement="Activity_1a27284">       <bpmndi:BPMNShape id="Activity_1a27284_di" bpmnElement="Activity_1a27284">
         <omgdc:Bounds x="310" y="460" width="100" height="80" />         <omgdc:Bounds x="310" y="460" width="100" height="80" />
 +      </bpmndi:BPMNShape>
 +      <bpmndi:BPMNShape id="Event_0yu3bti_di" bpmnElement="Event_1dvx4q3">
 +        <omgdc:Bounds x="702" y="202" width="36" height="36" />
 +        <bpmndi:BPMNLabel>
 +          <omgdc:Bounds x="682" y="245" width="77" height="40" />
 +        </bpmndi:BPMNLabel>
 +      </bpmndi:BPMNShape>
 +      <bpmndi:BPMNShape id="Activity_0voni1v_di" bpmnElement="Activity_0voni1v">
 +        <omgdc:Bounds x="670" y="300" width="100" height="80" />
 +      </bpmndi:BPMNShape>
 +      <bpmndi:BPMNShape id="Activity_119ftmg_di" bpmnElement="Activity_119ftmg">
 +        <omgdc:Bounds x="700" y="460" width="100" height="80" />
       </bpmndi:BPMNShape>       </bpmndi:BPMNShape>
       <bpmndi:BPMNShape id="Event_1kiyj8c_di" bpmnElement="Event_1nqz7rg">       <bpmndi:BPMNShape id="Event_1kiyj8c_di" bpmnElement="Event_1nqz7rg">
Line 110: Line 120:
         <omgdc:Bounds x="510" y="460" width="100" height="80" />         <omgdc:Bounds x="510" y="460" width="100" height="80" />
       </bpmndi:BPMNShape>       </bpmndi:BPMNShape>
-      <bpmndi:BPMNShape id="Event_0yu3bti_di" bpmnElement="Event_1dvx4q3"> +      <bpmndi:BPMNShape id="Event_1u66bue_di" bpmnElement="Event_0seb4kg"> 
-        <omgdc:Bounds x="702" y="202" width="36" height="36" />+        <omgdc:Bounds x="882" y="202" width="36" height="36" />
         <bpmndi:BPMNLabel>         <bpmndi:BPMNLabel>
-          <omgdc:Bounds x="682" y="245" width="77" height="40" />+          <omgdc:Bounds x="873" y="245" width="55" height="27" />
         </bpmndi:BPMNLabel>         </bpmndi:BPMNLabel>
-      </bpmndi:BPMNShape> 
-      <bpmndi:BPMNShape id="Activity_0voni1v_di" bpmnElement="Activity_0voni1v"> 
-        <omgdc:Bounds x="670" y="300" width="100" height="80" /> 
-      </bpmndi:BPMNShape> 
-      <bpmndi:BPMNShape id="Activity_119ftmg_di" bpmnElement="Activity_119ftmg"> 
-        <omgdc:Bounds x="700" y="460" width="100" height="80" /> 
       </bpmndi:BPMNShape>       </bpmndi:BPMNShape>
       <bpmndi:BPMNShape id="Activity_0lt7v0m_di" bpmnElement="Activity_0lt7v0m">       <bpmndi:BPMNShape id="Activity_0lt7v0m_di" bpmnElement="Activity_0lt7v0m">
         <omgdc:Bounds x="850" y="300" width="100" height="80" />         <omgdc:Bounds x="850" y="300" width="100" height="80" />
       </bpmndi:BPMNShape>       </bpmndi:BPMNShape>
-      <bpmndi:BPMNShape id="Event_1u66bue_di" bpmnElement="Event_0seb4kg"> +      <bpmndi:BPMNShape id="Activity_1jwcpz7_di" bpmnElement="Activity_1jwcpz7"> 
-        <omgdc:Bounds x="882" y="202" width="36" height="36" />+        <omgdc:Bounds x="880" y="460" width="100" height="80" /> 
 +      </bpmndi:BPMNShape> 
 +      <bpmndi:BPMNShape id="Event_16widj1_di" bpmnElement="Event_1m2w55l"> 
 +        <omgdc:Bounds x="912" y="362" width="36" height="36" />
         <bpmndi:BPMNLabel>         <bpmndi:BPMNLabel>
-          <omgdc:Bounds x="873" y="245" width="55" height="27" />+          <omgdc:Bounds x="903" y="405" width="55" height="27" />
         </bpmndi:BPMNLabel>         </bpmndi:BPMNLabel>
       </bpmndi:BPMNShape>       </bpmndi:BPMNShape>
-      <bpmndi:BPMNShape id="Activity_1jwcpz7_di" bpmnElement="Activity_1jwcpz7"> +      <bpmndi:BPMNShape id="Event_1dfnwdv_di" bpmnElement="Event_0adwef1"> 
-        <omgdc:Bounds x="880" y="460" width="100" height="80" />+        <omgdc:Bounds x="732" y="362" width="36" height="36" /
 +        <bpmndi:BPMNLabel> 
 +          <omgdc:Bounds x="712" y="405" width="77" height="40" /> 
 +        </bpmndi:BPMNLabel> 
 +      </bpmndi:BPMNShape> 
 +      <bpmndi:BPMNShape id="Event_1glnvn4_di" bpmnElement="Event_1fzs5w5"> 
 +        <omgdc:Bounds x="542" y="362" width="36" height="36" /> 
 +        <bpmndi:BPMNLabel> 
 +          <omgdc:Bounds x="528" y="405" width="65" height="27" /> 
 +        </bpmndi:BPMNLabel>
       </bpmndi:BPMNShape>       </bpmndi:BPMNShape>
       <bpmndi:BPMNShape id="Event_15qceyk_di" bpmnElement="Event_0sy5cdz">       <bpmndi:BPMNShape id="Event_15qceyk_di" bpmnElement="Event_0sy5cdz">
Line 140: Line 156:
         </bpmndi:BPMNLabel>         </bpmndi:BPMNLabel>
       </bpmndi:BPMNShape>       </bpmndi:BPMNShape>
-      <bpmndi:BPMNShape id="Event_1glnvn4_di" bpmnElement="Event_1fzs5w5"> +      <bpmndi:BPMNEdge id="Flow_17uwiz4_di" bpmnElement="Flow_17uwiz4"> 
-        <omgdc:Bounds x="542" y="362" width="36" height="36" />+        <di:waypoint x="360" y="408" /> 
 +        <di:waypoint x="360" y="460" /> 
 +      </bpmndi:BPMNEdge> 
 +      <bpmndi:BPMNEdge id="Flow_01unld0_di" bpmnElement="Flow_01unld0"> 
 +        <di:waypoint x="750" y="398" /> 
 +        <di:waypoint x="750" y="460" /> 
 +      </bpmndi:BPMNEdge> 
 +      <bpmndi:BPMNEdge id="Flow_0cl0494_di" bpmnElement="Flow_0cl0494"> 
 +        <di:waypoint x="560" y="398" /> 
 +        <di:waypoint x="560" y="460" /> 
 +      </bpmndi:BPMNEdge> 
 +      <bpmndi:BPMNEdge id="Flow_1up8efg_di" bpmnElement="Flow_1up8efg"> 
 +        <di:waypoint x="930" y="398" /> 
 +        <di:waypoint x="930" y="460" /> 
 +      </bpmndi:BPMNEdge> 
 +    </bpmndi:BPMNPlane> 
 +  </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:omgdc="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" id="sid-38422fae-e03e-43a3-bef4-bd33b32041b2" targetNamespace="http://bpmn.io/bpmn" exporter="http://bpmn.io" exporterVersion="0.10.1"> 
 +  <process id="Process_1pkubye"> 
 +    <intermediateCatchEvent id="Event_0r2t58u" name="Receive payment"> 
 +      <messageEventDefinition id="MessageEventDefinition_1acke2j" /> 
 +    </intermediateCatchEvent> 
 +    <task id="Activity_0y6rrmj" /> 
 +    <boundaryEvent id="Event_0sy5cdz" name="Receive payment" attachedToRef="Activity_0y6rrmj"> 
 +      <outgoing>Flow_17uwiz4</outgoing> 
 +      <messageEventDefinition id="MessageEventDefinition_0yfp4m1" /> 
 +    </boundaryEvent> 
 +    <task id="Activity_1a27284"> 
 +      <incoming>Flow_17uwiz4</incoming> 
 +    </task> 
 +    <sequenceFlow id="Flow_17uwiz4" sourceRef="Event_0sy5cdz" targetRef="Activity_1a27284" /> 
 +    <intermediateCatchEvent id="Event_1dvx4q3" name="Payment status is &#34;received&#34;"> 
 +      <conditionalEventDefinition id="ConditionalEventDefinition_1bucsll"> 
 +        <condition xsi:type="tFormalExpression" /> 
 +      </conditionalEventDefinition> 
 +    </intermediateCatchEvent> 
 +    <task id="Activity_0voni1v" /> 
 +    <task id="Activity_119ftmg"> 
 +      <incoming>Flow_01unld0</incoming> 
 +    </task> 
 +    <sequenceFlow id="Flow_01unld0" sourceRef="Event_0adwef1" targetRef="Activity_119ftmg" /> 
 +    <intermediateCatchEvent id="Event_1n34t62" name="Obtain gale warning"> 
 +      <signalEventDefinition id="SignalEventDefinition_1p8gxq3" /> 
 +    </intermediateCatchEvent> 
 +    <task id="Activity_0kjgj58" /> 
 +    <task id="Activity_0ke2peo"> 
 +      <incoming>Flow_0cl0494</incoming> 
 +    </task> 
 +    <sequenceFlow id="Flow_0cl0494" sourceRef="Event_1fzs5w5" targetRef="Activity_0ke2peo" /> 
 +    <boundaryEvent id="Event_1fzs5w5" name="Obtain gale warning" attachedToRef="Activity_0kjgj58"> 
 +      <outgoing>Flow_0cl0494</outgoing> 
 +      <signalEventDefinition id="SignalEventDefinition_1n7pn7w" /> 
 +    </boundaryEvent> 
 +    <boundaryEvent id="Event_0adwef1" name="Payment status is &#34;received&#34;" attachedToRef="Activity_0voni1v"> 
 +      <outgoing>Flow_01unld0</outgoing> 
 +      <conditionalEventDefinition id="ConditionalEventDefinition_0rwt0jq"> 
 +        <condition xsi:type="tFormalExpression" /> 
 +      </conditionalEventDefinition> 
 +    </boundaryEvent> 
 +  </process> 
 +  <bpmndi:BPMNDiagram id="BpmnDiagram_1"> 
 +    <bpmndi:BPMNPlane id="BpmnPlane_1" bpmnElement="Process_1pkubye"> 
 +      <bpmndi:BPMNShape id="Event_057z9db_di" bpmnElement="Event_0r2t58u"> 
 +        <omgdc:Bounds x="312" y="202" width="36" height="36" />
         <bpmndi:BPMNLabel>         <bpmndi:BPMNLabel>
-          <omgdc:Bounds x="528" y="405" width="65" height="27" />+          <omgdc:Bounds x="288" y="245" width="86" height="14" />
         </bpmndi:BPMNLabel>         </bpmndi:BPMNLabel>
 +      </bpmndi:BPMNShape>
 +      <bpmndi:BPMNShape id="Activity_0y6rrmj_di" bpmnElement="Activity_0y6rrmj">
 +        <omgdc:Bounds x="280" y="310" width="100" height="80" />
 +      </bpmndi:BPMNShape>
 +      <bpmndi:BPMNShape id="Activity_1a27284_di" bpmnElement="Activity_1a27284">
 +        <omgdc:Bounds x="310" y="460" width="100" height="80" />
 +      </bpmndi:BPMNShape>
 +      <bpmndi:BPMNShape id="Event_0yu3bti_di" bpmnElement="Event_1dvx4q3">
 +        <omgdc:Bounds x="702" y="202" width="36" height="36" />
 +        <bpmndi:BPMNLabel>
 +          <omgdc:Bounds x="677" y="245" width="88" height="27" />
 +        </bpmndi:BPMNLabel>
 +      </bpmndi:BPMNShape>
 +      <bpmndi:BPMNShape id="Activity_0voni1v_di" bpmnElement="Activity_0voni1v">
 +        <omgdc:Bounds x="670" y="300" width="100" height="80" />
 +      </bpmndi:BPMNShape>
 +      <bpmndi:BPMNShape id="Activity_119ftmg_di" bpmnElement="Activity_119ftmg">
 +        <omgdc:Bounds x="700" y="460" width="100" height="80" />
 +      </bpmndi:BPMNShape>
 +      <bpmndi:BPMNShape id="Event_05xmqbt_di" bpmnElement="Event_1n34t62">
 +        <omgdc:Bounds x="512" y="202" width="36" height="36" />
 +        <bpmndi:BPMNLabel>
 +          <omgdc:Bounds x="502" y="245" width="57" height="27" />
 +        </bpmndi:BPMNLabel>
 +      </bpmndi:BPMNShape>
 +      <bpmndi:BPMNShape id="Activity_0kjgj58_di" bpmnElement="Activity_0kjgj58">
 +        <omgdc:Bounds x="480" y="300" width="100" height="80" />
 +      </bpmndi:BPMNShape>
 +      <bpmndi:BPMNShape id="Activity_0ke2peo_di" bpmnElement="Activity_0ke2peo">
 +        <omgdc:Bounds x="510" y="460" width="100" height="80" />
       </bpmndi:BPMNShape>       </bpmndi:BPMNShape>
       <bpmndi:BPMNShape id="Event_1dfnwdv_di" bpmnElement="Event_0adwef1">       <bpmndi:BPMNShape id="Event_1dfnwdv_di" bpmnElement="Event_0adwef1">
         <omgdc:Bounds x="732" y="362" width="36" height="36" />         <omgdc:Bounds x="732" y="362" width="36" height="36" />
         <bpmndi:BPMNLabel>         <bpmndi:BPMNLabel>
-          <omgdc:Bounds x="712" y="405" width="77" height="40" />+          <omgdc:Bounds x="707" y="405" width="88" height="27" />
         </bpmndi:BPMNLabel>         </bpmndi:BPMNLabel>
       </bpmndi:BPMNShape>       </bpmndi:BPMNShape>
-      <bpmndi:BPMNShape id="Event_16widj1_di" bpmnElement="Event_1m2w55l"> +      <bpmndi:BPMNShape id="Event_1glnvn4_di" bpmnElement="Event_1fzs5w5"> 
-        <omgdc:Bounds x="912" y="362" width="36" height="36" />+        <omgdc:Bounds x="542" y="362" width="36" height="36" />
         <bpmndi:BPMNLabel>         <bpmndi:BPMNLabel>
-          <omgdc:Bounds x="903" y="405" width="55" height="27" />+          <omgdc:Bounds x="532" y="405" width="57" height="27" /> 
 +        </bpmndi:BPMNLabel> 
 +      </bpmndi:BPMNShape> 
 +      <bpmndi:BPMNShape id="Event_15qceyk_di" bpmnElement="Event_0sy5cdz"> 
 +        <omgdc:Bounds x="342" y="372" width="36" height="36" /> 
 +        <bpmndi:BPMNLabel> 
 +          <omgdc:Bounds x="318" y="415" width="86" height="14" />
         </bpmndi:BPMNLabel>         </bpmndi:BPMNLabel>
       </bpmndi:BPMNShape>       </bpmndi:BPMNShape>
Line 161: Line 283:
         <di:waypoint x="360" y="408" />         <di:waypoint x="360" y="408" />
         <di:waypoint x="360" y="460" />         <di:waypoint x="360" y="460" />
-      </bpmndi:BPMNEdge> 
-      <bpmndi:BPMNEdge id="Flow_0cl0494_di" bpmnElement="Flow_0cl0494"> 
-        <di:waypoint x="560" y="398" /> 
-        <di:waypoint x="560" y="460" /> 
       </bpmndi:BPMNEdge>       </bpmndi:BPMNEdge>
       <bpmndi:BPMNEdge id="Flow_01unld0_di" bpmnElement="Flow_01unld0">       <bpmndi:BPMNEdge id="Flow_01unld0_di" bpmnElement="Flow_01unld0">
Line 170: Line 288:
         <di:waypoint x="750" y="460" />         <di:waypoint x="750" y="460" />
       </bpmndi:BPMNEdge>       </bpmndi:BPMNEdge>
-      <bpmndi:BPMNEdge id="Flow_1up8efg_di" bpmnElement="Flow_1up8efg"> +      <bpmndi:BPMNEdge id="Flow_0cl0494_di" bpmnElement="Flow_0cl0494"> 
-        <di:waypoint x="930" y="398" /> +        <di:waypoint x="560" y="398" /> 
-        <di:waypoint x="930" y="460" />+        <di:waypoint x="560" y="460" />
       </bpmndi:BPMNEdge>       </bpmndi:BPMNEdge>
     </bpmndi:BPMNPlane>     </bpmndi:BPMNPlane>
Line 178: Line 296:
 </definitions> </definitions>
 </bpmnio> </bpmnio>
- 
-===== ✘ How NOT to ===== 
- 
-Put antipattern (BPMN diagrams) here 
  
 ===== Notes ===== ===== Notes =====
  
-Put extra comments here (this section is optional) +In case of message or signal the names of paired events must match.
- +
-===== Exceptions ===== +
- +
-Specify exceptions to the rule above, if any+
  
 ===== See also ===== ===== See also =====
  
-Reference similar rules here (this section is optional) +  * [[start_event_naming]] 
 +  * [[end_event_naming]]
 ===== Author(s) ===== ===== Author(s) =====
  
  --- //[[user:bell|Anatoly Belaychuk]] 2024-08-22 21:03//  --- //[[user:bell|Anatoly Belaychuk]] 2024-08-22 21:03//