Differences

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

Link to this comparison view

Next revision
Previous revision
en:rule:intermediate_event_naming [2024-08-22 21:07] – created 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 =====
  
-Put patterns (BPMN diagrams) here+<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"> 
 +    <intermediateThrowEvent id="Event_0m8lwmr" name="Payment received"> 
 +      <messageEventDefinition id="MessageEventDefinition_0yyg8on" /> 
 +    </intermediateThrowEvent> 
 +    <intermediateCatchEvent id="Event_0r2t58u" name="Payment received"> 
 +      <messageEventDefinition id="MessageEventDefinition_1acke2j" /> 
 +    </intermediateCatchEvent> 
 +    <task id="Activity_0y6rrmj" /> 
 +    <boundaryEvent id="Event_0sy5cdz" name="Payment received" 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 changed to &#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" /> 
 +    <intermediateThrowEvent id="Event_1nqz7rg" name="Gale warning"> 
 +      <signalEventDefinition id="SignalEventDefinition_0ighhex" /> 
 +    </intermediateThrowEvent> 
 +    <intermediateCatchEvent id="Event_1n34t62" name="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="Gale warning" attachedToRef="Activity_0kjgj58"> 
 +      <outgoing>Flow_0cl0494</outgoing> 
 +      <signalEventDefinition id="SignalEventDefinition_1n7pn7w" /> 
 +    </boundaryEvent> 
 +    <boundaryEvent id="Event_0adwef1" name="Payment status changed to &#34;received&#34;" attachedToRef="Activity_0voni1v"> 
 +      <outgoing>Flow_01unld0</outgoing> 
 +      <conditionalEventDefinition id="ConditionalEventDefinition_0rwt0jq"> 
 +        <condition xsi:type="tFormalExpression" /> 
 +      </conditionalEventDefinition> 
 +    </boundaryEvent> 
 +    <intermediateCatchEvent id="Event_0seb4kg" name="Payment is overdue"> 
 +      <timerEventDefinition id="TimerEventDefinition_0i2kzbd" /> 
 +    </intermediateCatchEvent> 
 +    <task id="Activity_0lt7v0m" /> 
 +    <boundaryEvent id="Event_1m2w55l" name="Payment is overdue" attachedToRef="Activity_0lt7v0m"> 
 +      <outgoing>Flow_1up8efg</outgoing> 
 +      <timerEventDefinition id="TimerEventDefinition_1vrdj01" /> 
 +    </boundaryEvent> 
 +    <task id="Activity_1jwcpz7"> 
 +      <incoming>Flow_1up8efg</incoming> 
 +    </task> 
 +    <sequenceFlow id="Flow_1up8efg" sourceRef="Event_1m2w55l" targetRef="Activity_1jwcpz7" /> 
 +  </process> 
 +  <bpmndi:BPMNDiagram id="BpmnDiagram_1"> 
 +    <bpmndi:BPMNPlane id="BpmnPlane_1" bpmnElement="Process_1pkubye"> 
 +      <bpmndi:BPMNShape id="Event_0xjclxb_di" bpmnElement="Event_0m8lwmr"> 
 +        <omgdc:Bounds x="312" y="92" width="36" height="36" /> 
 +        <bpmndi:BPMNLabel> 
 +          <omgdc:Bounds x="286" y="135" width="89" height="14" /> 
 +        </bpmndi:BPMNLabel> 
 +      </bpmndi:BPMNShape> 
 +      <bpmndi:BPMNShape id="Event_057z9db_di" bpmnElement="Event_0r2t58u"> 
 +        <omgdc:Bounds x="312" y="202" width="36" height="36" /> 
 +        <bpmndi:BPMNLabel> 
 +          <omgdc:Bounds x="286" y="245" width="89" height="14" /> 
 +        </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="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 id="Event_1kiyj8c_di" bpmnElement="Event_1nqz7rg"> 
 +        <omgdc:Bounds x="512" y="92" width="36" height="36" /> 
 +        <bpmndi:BPMNLabel> 
 +          <omgdc:Bounds x="498" y="135" width="65" height="27" /> 
 +        </bpmndi:BPMNLabel> 
 +      </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="498" y="245" width="65" 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 id="Event_1u66bue_di" bpmnElement="Event_0seb4kg"> 
 +        <omgdc:Bounds x="882" y="202" width="36" height="36" /> 
 +        <bpmndi:BPMNLabel> 
 +          <omgdc:Bounds x="873" y="245" width="55" height="27" /> 
 +        </bpmndi:BPMNLabel> 
 +      </bpmndi:BPMNShape> 
 +      <bpmndi:BPMNShape id="Activity_0lt7v0m_di" bpmnElement="Activity_0lt7v0m"> 
 +        <omgdc:Bounds x="850" y="300" width="100" height="80" /> 
 +      </bpmndi:BPMNShape> 
 +      <bpmndi:BPMNShape id="Activity_1jwcpz7_di" bpmnElement="Activity_1jwcpz7"> 
 +        <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> 
 +          <omgdc:Bounds x="903" y="405" width="55" height="27" /> 
 +        </bpmndi:BPMNLabel> 
 +      </bpmndi:BPMNShape> 
 +      <bpmndi:BPMNShape id="Event_1dfnwdv_di" bpmnElement="Event_0adwef1"> 
 +        <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 id="Event_15qceyk_di" bpmnElement="Event_0sy5cdz"> 
 +        <omgdc:Bounds x="342" y="372" width="36" height="36" /> 
 +        <bpmndi:BPMNLabel> 
 +          <omgdc:Bounds x="316" y="415" width="89" height="14" /> 
 +        </bpmndi:BPMNLabel> 
 +      </bpmndi:BPMNShape> 
 +      <bpmndi:BPMNEdge id="Flow_17uwiz4_di" bpmnElement="Flow_17uwiz4"> 
 +        <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 ===== ===== ✘ How NOT to =====
  
-Put antipattern (BPMN diagrams) here+<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> 
 +          <omgdc:Bounds x="288" y="245" width="86" height="14" /> 
 +        </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 id="Event_1dfnwdv_di" bpmnElement="Event_0adwef1"> 
 +        <omgdc:Bounds x="732" y="362" width="36" height="36" /> 
 +        <bpmndi:BPMNLabel> 
 +          <omgdc:Bounds x="707" y="405" width="88" height="27" /> 
 +        </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="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:BPMNShape> 
 +      <bpmndi:BPMNEdge id="Flow_17uwiz4_di" bpmnElement="Flow_17uwiz4"> 
 +        <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:BPMNPlane> 
 +  </bpmndi:BPMNDiagram> 
 +</definitions> 
 +</bpmnio>
  
 ===== 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//