BPMN – What You Need to Know
local graph
Chapter 7 — BPMN – What You Need to Know
Section titled “Chapter 7 — BPMN – What You Need to Know”In Chapter 7, we briefly covered the history of process modeling notations and learned about the most important shapes of BPMN. BPMN is a very logical and easy-to-learn process modeling notation if you know how to approach it. In this chapter, we’ll cover its basics, including both its most crucial elements – that is, objects that can be used in a model (events, activities, gateways, swimlanes, artifacts, and data objects) and fundamental concepts that are important for having a proper understanding of BPMN diagrams.
In this chapter, we’re going to cover the following main topics:
- How to read a BPMN diagram
- When and how to use gateways in BPMN
- How start and end events can be used
- How to show work in a process diagram with tasks and sub-processes
- How to add more meaning to your BPMN diagram with additional elements, such as swimlanes, artifacts, and data objects
Note
This chapter is authored by Zbigniew Misiak.
How to read a BPMN diagram
Section titled “How to read a BPMN diagram”Let’s go back to the complaint handling process you know well from Chapter 7. This time, we’ll spend some more time discussing the basics of BPMN and explaining the usage of the key elements of the notation based on this example.
The following is a horizontal version of the BPMN diagram. While BPMN allows both horizontal and vertical orientation of diagrams, the horizontal orientation is much more common:

Figure 8.1 – Complaint handling process in BPMN
The following two figures (Figure 8*.2* and Figure 8*.3*) will help you learn more about the most important shapes you can see in Figure 8*.1*:

Figure 8.2 – Basic elements of BPMN (part 1)
Pools and lanes
Section titled “Pools and lanes”Let’s begin by looking at the two large rectangles that are visible in Figure 8*.1*: Company ABC and Customer. In BPMN, we call them pools. This name is meant to suggest that the process flows inside the pool (just like people swim inside a swimming pool). This is a very important concept that we’ll develop further in a moment.
As you can see, the diagram can contain several pools if you want to show the different participants involved in the collaboration, each with its own process. The pool can contain lots of elements inside, describing the process in more detail (this is visible for element 1a in Figure 8*.2*), or just representing that there’s such a participant, without specifying how it performs its process (this, in turn, is option 1b).
For Company ABC, we can see not only elements representing what happens in the process but also some kind of structure showing us who performs what steps. Modeling lanes (see element 1c) are used for this purpose.
It’s worth noting that the name lane is another reference to a swimming pool; it can be divided into lanes to organize the way people swim. In our case, we have a lane representing the complaints handling team, an additional one for the finance team, and finally one for the logistics team.
The second pool, representing the customer, doesn’t contain any visible content. Such a pool is often called a collapsed pool or black-box pool. This suggests that from the point of view of the diagram, we either don’t know what the performer does or we don’t need to describe it in this diagram. Just in case you’re concerned about missing some important insights regarding customer activities, for example, the idea is to make a diagram more readable by hiding unnecessary details. However, they can be captured in another connected diagram.
As you’ll see later in this chapter, pools (and lanes) are great not only for showing the responsibilities in a process but also for showing what the cooperation between different entities involved in a process looks like. Pools and lanes are part of the BPMN category called swimlanes.
Events
Section titled “Events”While pools and lanes allow us to understand who does what in a process, we still need to understand the scope of the process, especially what makes the process start and how it ends. For this purpose, BPMN offers us events – elements that are always shown as circles. In our example diagram (Figure 8*.1)*, we have two types of events: a start event (2a) and an end event (2b), which have a thin single border and a thick single border, respectively.
BPMN also allows you to create slightly more complex intermediate events, something that will be covered in the following chapter (Chapter 9*, Advanced BPMN*). However, all the events represent some state of reality that’s important for the process. Unsurprisingly, start events represent situations that cause our process to start. End events, in turn, show the results of the process, its products, or final states (positive or negative). In our example, we have one start event, complaint received, and three end events: complaint rejected, money refunded, and product delivered. This allows us to see the scope of the process right away, even without knowing the individual steps of the process.
It’s worth noting that if a process flows through several organizational units represented by modeling lanes, we model it to show continuity within the process – subsequent lanes don’t begin with start events and don’t have end events at the stage of transferring work to a further lane.
Activities
Section titled “Activities”Now that we know how to represent the scope of the process, it’s time to cover an equally important aspect: how to represent work that needs to be carried out in a process. Those steps representing work (called activities in BPMN) can be described as tasks and sub-processes and are shown as elements 3 and 4, respectively. Without them, modeling a process diagram would be nearly pointless.
Tasks and sub-processes are always shown as rectangles with rounded corners. Tasks represent simple, indivisible process steps that we don’t need to decompose further for a more detailed description. Sub-processes, on the other hand, represent more complex process steps. These steps could be described in a more detailed model (this approach allows us to navigate from the main model to the lower-level diagrams) or simply serve as placeholders showing places where such decomposition could potentially take place.
Often, sub-processes are useful when we have many diverse things (tasks) to do, and they’re carried out by different roles in the organization. Sub-processes are usually marked at the bottom with a + symbol, indicating that they may hide something more than ordinary tasks.
We can see the division between simple and more complex elements in our example, where steps such as Check complaint validity and Order refund are tasks. On the other hand, more complex steps such as Refund processing and Product shipping are sub-processes because we could probably define at least several tasks for each of them, most likely being something more than a sequence of activities (for example, in the case of a payment refund, we perform it differently when the customer makes the payment by bank transfer and differently when the payment is made by credit card).
Gateways
Section titled “Gateways”As we just mentioned, processes are rarely simple sequences of consecutive activities. Therefore, to be able to separate a process into different paths (splitting) and to connect these paths (merging), we must use another type of object in the BPMN: gateways. Gateways (see element 5) are always represented as diamonds (rhombuses) with incoming and outgoing arrows representing process sequence flows.
In our example, the simplest type of gateway is used – that is, an exclusive gateway. Exclusive gateways represent places in the process where we have two or more paths available, of which only one can be selected. In the case of the Complaint valid? gateway, we have Yes and No as options, while for the Selected option? gateway, there are two mutually exclusive options for handling complaints: Refund and Replacement (of course, in practice, we would have more paths presenting other possible ways to handle a complaint, but this would make our diagram a bit harder to read).

Figure 8.3 – Basic elements of BPMN (part 2)
Activities, events, and gateways are called flow elements in BPMN and they allow us to document what happens during the process flow. However, simply placing those elements one after another wouldn’t allow us to figure out what the logic of the process is.
Connecting objects
Section titled “Connecting objects”For this purpose, we would need an additional category of BPMN: so-called connecting objects, or colloquially speaking, arrows. The most important type of arrow in BPMN is the sequence flow, which is always marked by a black solid line with a full triangular arrowhead at the end (shown as element A in Figure 8*.3*).
As the name implies, this kind of arrow shows us in which sequence elements are activated as it connects events, gateways, and activities within a pool so that it’s always clear what comes before and what comes after the given element in the process. The sequence flow shows us the control we have over the elements of the process – either implemented by the process automation tool or by the process owner, who controls what happens in the process.
Usually, the sequence flow is just a line without additional markers or texts but if it’s used where the process paths split (most commonly after the gateway), you’ll often see textual labels on the arrows that help you figure out which path represents which flow (in our example, it will help you figure out what will happen if our process needs to support the Refund option, and what will need to be done for the Replacement option).
To summarize our principle regarding the process flow, we can say that a process always flows within a specific pool and can move between different lanes: from the start event through various activities and gateways to the end event, always following the sequence flow arrow (no gaps or jumps).
Since a sequence flow can only occur within a single pool, how do we show that different entities work together? This is where an additional arrow type – message flow, labeled as element B – comes in handy.
Unlike the sequence flow, we can only use it between pools. The message flow is always marked with a dashed line. At its beginning is a circle filled with white, and at the end is a triangular empty arrowhead.
A different type of line might suggest that this type of flow behaves differently from a sequence flow, and indeed this is the case. While a sequence flow tells us about control and suggests that a process has a defined course that can be enforced one way or another, a message flow shows that different entities exchange messages, or information, with each other. However, those exchanges are more like requests, proposals, or suggestions to another entity. A customer has the right to make a complaint but can’t force an organization to acknowledge it if it’s unfounded.
The elements that we’ve discussed so far allow us to describe the logic of the process and show how it interacts with other participants. With this knowledge, you can now read the vast majority of BPMN diagrams. However, apart from those key building blocks of the notation, there are also other categories of objects that give us more options in two additional areas – conveying additional information about the process and describing how to use data in the process.
Artifacts
Section titled “Artifacts”To provide additional information about the diagram for the people reading it, so-called artifacts are used in BPMN. There are two types of artifacts: text annotation and group. These are visible as elements 6a and 6b in Figure 8*.3*, respectively.
These objects allow process modelers creating AS-IS or TO-BE diagrams to capture useful comments relating to how the process currently works or what we want to change about it. However, note that artifacts don’t change the meaning of the diagram, which is based on the elements that we discussed previously. So, for diagrams serving as documentation and for those used for automation, artifacts only provide more information without influencing the core message that’s captured in a process diagram.
A text annotation is an element that allows you to place some text in the diagram. It has a very characteristic shape of a left square bracket with text inside. Text annotations can be placed anywhere inside a process diagram or connected with a particular diagram element. The former option makes sense if your comment is relevant to the whole process. The latter option is useful if we want to show that the comment applies to some specific diagram part. In this case, an additional type of arrow – an association drawn with a dotted line (element C) – is used. In our example, text annotation is visible next to the start event and shows the following text: Email, phone, or chat.
A group, in turn, allows us to visually distinguish certain elements of the diagram to emphasize that they have something in common and belong to some specific category. A group is shown as a rectangle with rounded corners, drawn with a line composed of dots and dashes (which reminds me of Morse code). The group isn’t connected to other elements of the diagram by arrows, so it’s easy to distinguish it from (nearly) all other elements of the notation. Groups can have labels that show what the contained elements have in common.
The last category of BPMN objects is data objects, which (not surprisingly) allow us to show how data flows in the process. There are several types of data objects with different visualizations, but usually, they look like a sheet of paper with the top-right corner folded (in our example diagram shown in Figure 8*.1* it’s complaint documentation – that is, element 7a from Figure 8*.3*).
In our example (Figure 8*.1*), we can also see a specific type of data object (CRM system) that looks like a cylinder with three stripes at the top (element 7b). To show how data flows from or to an activity in a BPMN diagram, we can use the data association arrow. This looks very similar to a plain association, but it has an arrowhead drawn with a black line (element D).
As shown in Figure 8*.1*, objects in BPMN can differ within each type. For example, tasks may have icons in the top-left corner indicating what type they represent; inside the events, there may be special icons indicating how the process starts (for example, our start event has an envelope icon inside, which means that the process was triggered by a message from the customer); and sub-processes may differ, for example, in the style of the border. This way, BPMN allows us to convey additional information about the process. We’ll cover those shape differences in this and the following chapter.
Overall, if we tried to count all the possible combinations of allowed shapes, icons, and line styles, there would be over a hundred shapes that have a specific meaning. Luckily for us, not all these elements are equally popular. Therefore, in this book, we’ll start with the most useful and popular elements and devote the most attention to them. For those that are less frequently used, we’ll allocate less space, but we’ll point out when and for whom they could be useful.
How does the process flow?
Section titled “How does the process flow?”As we know from the previous section, one of the more important issues is to understand what work needs to be done in a process and what the relationships are between the various elements, or, more simply, what needs to be done and when.
It seems trivial, but for someone who doesn’t know the whole process well, the mere information about what is to be done won’t be enough. It’s like giving a person learning how to cook a recipe for a dish but without information on when to add which ingredients. The mere fact that we’ll perform all the necessary steps isn’t enough – we can’t perform them in the wrong order or do something that wasn’t needed in that situation.
Process models can be small or large, simple or very complex, but regardless of their size and complexity, when we analyze them, we can distinguish certain recurring patterns. The concept of workflow/process patterns, which were created for analyzing process automation (workflow) solutions, proves to be very useful in analyzing processes and learning modeling notations too. That’s why we’ll be using them in this book.
While discussing various process patterns, we’ll be using an additional concept since it’s part of BPMN specification – the token. This isn’t one of the notation elements that can be used when drawing a BPMN diagram since it’s only a theoretical concept. However, it’s very useful for understanding how a process is executed, especially when there are several paths within a process. In case you’re curious, there are BPM tools that allow you to use tokens in practice – either for simulating business processes or for visualizing the progress of work in a process. However, BPMN specification doesn’t require tokens to be implemented in modeling or automation tools.
A token is born when a start event is triggered and then flows through the process along the sequence flow arrow until it reaches the end event, where it’s consumed.
Sequence
Section titled “Sequence”The simplest possible pattern is a sequence – a series of actions that are performed in succession. This sequence shows what should happen first so that it’s possible to move to the next stage of the process. To discuss this sequence, we’ll once again refer to the concept of a token.
Imagine that we’re building a house. First, we must prepare the foundation. Only then can the walls be put up. Once the walls are standing, we can think about the roof. Common sense tells us that the idea of speeding up construction by putting up walls on an unfinished foundation and covering this with a roof is risky.
Let’s look at an example of such a simple sequence:

Figure 8.4 – Sequence
When the process is started, the token goes to task A and makes it activated. This is a formal name from specification In practice, this doesn’t necessarily mean that someone has already started working on task A (for that, you still need a resource, such as an employee assigned to that task), but that if all the circumstances are favorable, you can start working on task A (as opposed to task B, which isn’t feasible yet).
Then, at some point, the work on task A begins and, after some time, when it is still in execution, it is completed. When modeling, it’s important to be clear where the scope of one process step ends and the next begins. When task A ends, the token flows along the sequence flow arrow to task B, and so on until the last task. When the last activity in the process is executed, the token reaches the end event and is consumed by it. Within a process instance for a sequence, we have only one token, so the moment this only token is “consumed,” the life of the instance ends, and we can consider that we have nothing more to do.
If our process wrote a log or a diary (or if we had a system that documented what tasks were performed), we would always have the following entries in such a process log: ABCDE. There could be differences in who performed the tasks, when they were performed, and how long they lasted, but for such a process, it isn’t possible for steps to be skipped (ACDE), duplicated (ABBCDE), or to occur in a different order (AEDCB).
Now, let’s turn to complaint handling and look at a slightly different example of a sequence – a simplified version of the diagram we’ve been working with so far, in which only one of the paths is included (we assume that the complaint is always valid and that we always make a refund):

Figure 8.5 – Example of a sequential process with process steps in different lanes
As shown in Figure 8*.5*, the elements of the sequence may be within a single lane, but the work may also flow between different units of the organization. In this case, process steps may be placed in different lanes. From the point of view of the sequence, this placement isn’t important – what’s important is that the moment one element of the process ends, we move on to the next – that is, only after analyzing the validity of the complaint can we inform the customer that their complaint has been accepted as valid, and only after that can we set up a refund order, without which payments can’t be processed.
Exclusive gateway (XOR)
Section titled “Exclusive gateway (XOR)”In the previous section, we dealt with processes that were a simple sequence of steps. However, usually, our processes are more complex and some fragments are only performed if some condition has been met. The most common way to model such a situation is to use the exclusive gateway. This is often called the XOR gateway (exclusive OR):

Figure 8.6 – Two possible visualizations of the XOR gateway
The XOR gateway can be a simple diamond, or it can have an X marker in the center. Interestingly, while these two visualizations are allowed, they shouldn’t be mixed within a single model. Within the organization, it’s good practice to determine how XOR gateways should be drawn to avoid confusion. I’m in favor of using XOR gateways without the X marker in the middle, but I know that for many people, the X is a great mnemonic to help them remember that it’s an XOR gateway.
Naming
Section titled “Naming”The BPMN specification doesn’t impose a specific way of naming exclusive gateways. So, in practice, you can encounter different approaches, as shown in Figure 9*.7*. In one approach, you don’t name XOR gateways, instead only making sure that the conditions/labels of the arrows coming from the gateway are sufficiently clear (for example, Complaint valid and Complaint invalid).
I prefer the second approach, in which the XOR gateway is named with a question (for example, Complaint valid?), and the answers to this question are placed on the sequence flows coming out of this gateway (for example, Yes and No).

Figure 8.7 – Possible naming conventions for paths outgoing from the XOR gateway
It’s worth remembering that while we have some freedom regarding the way we name the conditions for sequence flows that come out of the exclusive gateway, we aren’t allowed to use tasks to represent which paths need to be taken and avoid using conditions on arrows. Such an anti-pattern is shown in Figure 8*.8*:

Figure 8.8 – Anti-pattern – describing paths by tasks
Alternative process paths
Section titled “Alternative process paths”We already know that the exclusive gateway is used to split the process into several mutually exclusive paths. But what can happen further down the process? From a notational point of view, each of these paths may lead to its end event. We had such a situation in our example process – the first gateway led to the Complaint rejected end event, or further, to the section where we dealt with an acknowledged complaint, where the process split into two paths, ending with the Money refunded and Product delivered end events:

Figure 8.9 – Example process with exclusive gateways and multiple end events
Using a simplified process with tasks named using letters, we could present the situation of multiple paths that don’t meet again and lead to different end events, as shown in Figure 8*.10*:

Figure 8.10 – A process with multiple end events following the exclusive gateway
Depending on the selected process execution variant, we could get the following process logs: AB, AC, and ADE. Two/three paths can’t be executed within a single instance, so we would never get an ABC, ABDE, or ABCDE entry.
Merging
Section titled “Merging”In addition to the situation where our paths split and don’t come together again, it’s also possible that only a certain part of the process differs, depending on the variant being executed; the rest remains identical because the process paths merge.
As we’ll learn in a moment, merging is an extremely important concept in processes where more tokens are created. However, the exclusive gateway, as we know, doesn’t multiply the token – it only redirects the token to the correct path. So, how can we approach merging in this case?
The specification gives us two possibilities. On the one hand, we can skip the XOR merging gateway and attach sequence flows directly to the next process step. On the other hand, we can insert a second exclusive gateway that will merge the process paths. This merging gateway doesn’t need to have a name. It’s also worth knowing that it passes through all the tokens that enter it.
As you may imagine, the fact that the specification has given us such possibilities has led to the emergence of two schools of modeling with very strong views. Representatives of the first one opt for modeling without a merging XOR because it makes the diagrams simple and easy to read, plus it saves space.
Representatives of the second school, on the other hand, claim that XOR gateways should always be inserted in pairs – opening and closing – because only this makes diagrams readable.
In my experience, the first approach is closer to those with business roots. The second, on the other hand, is more common among people with either IT or academic backgrounds. I hypothesize that those users associate closing gateways with closing parentheses in code, which becomes a habit.

Figure 8.11 – Two possible approaches to modeling a process with mutually exclusive paths
Regardless of which way we choose to model, the preceding two diagrams have identical meanings and could generate the same process logs: ABE, ACE, and ADE.
XOR gateways in practice
Section titled “XOR gateways in practice”Let’s return to our business scenario and see how the exclusive gateway works in practice (using the simplified example shown in Figure 8*.12*). As you can see, if the complaint is considered valid, then we proceed to the Inform customer about complaint validity task. Alternatively, it can be considered invalid, at which point we perform the Inform customer about complaint rejection task. It isn’t possible to perform both tasks within a single process instance.

Figure 8.12 – Part of the example process – exclusive gateway in practice
One interesting feature of BPMN is worth highlighting here. While in many modeling approaches, such as flowcharts, there are diamonds representing places where decisions are made, information is verified, and so on, BPMN gateways have a slightly different meaning. Although gateways are referred to as decisions according to the BPMN specification, it’s worth noting that the types of gateways that are often used in practice fall into a category called data-based gateways. This means that a gateway – especially an exclusive gateway – is something like a streetcar track gearbox. It determines which process paths get their token. By itself, a gateway doesn’t generate work, increase the duration of a process, or increase its cost.
But how does the gateway know which flow should receive the token? This is influenced by comparing the data coming into the gateway from earlier elements of the process with the conditions found on the sequence flows. This data is often obtained from tasks or sub-processes before the gateway, but it doesn’t have to be this way – it could have been obtained much earlier before the occurrence of the gateway that will handle it. Again, let’s refer to our example – it could be that the Identify way of complaint handling task will provide us with the data based on which we’ll proceed further along the path of Replacement or Refund.
From a technical point of view, the user in charge of the Identify way of complaint handling task, who’s working in the IT system, would have a radio button on the case handling form where they would select the correct option – Replacement or Refund. This selection would affect which task would be received upon completion of the current task. It could also work like this in the earlier part of the process, where the user would have to mark whether the complaint is legitimate or not.

Figure 8.13 – Part of the example process – gathering data in a task that’s been placed before a gateway
However, it’s also possible to have a situation where the customer is asked to specify the preferred way to resolve the complaint earlier in the process. If we assume that the customer always completes the relevant fields in the form (and doesn’t change their mind afterward), our process will look like this: the data as to the preferred way of resolving the complaint is obtained in the Receive the form task and only affects the process in the Selected option? gateway. At this point, our employee would have to choose whether they recognize the complaint as valid or not. Whether they’d get the Order refund or Order shipping of a replacement product task wouldn’t depend on what they click in the system because the data would already be available.

Figure 8.14 – Part of the example process – a gateway using data that was gathered in the earlier part of the process
Once we have the data, and the token has reached the gateway, the conditions that were defined for each path of the process are analyzed. In the case of an exclusive gateway, the first path whose condition is met will receive the token and the process will proceed. Naturally, such exclusive gateway behavior makes it very important to define the conditions on the paths properly. Therefore, a very popular approach is to try to document processes in such a way that exclusive gateways have only two outgoing paths, representing Yes and No options for the question asked in the gateway. We saw an example of this approach in Figure 8*.14* for the Complaint valid? gateway.
However, BPMN allows us to separate process paths in other ways so that process flows coming out of a gateway have conditions that are more complex than Yes and No. This gives us more options (especially if we have three or more possible flows in our process) and makes the diagrams more readable (otherwise, we might have to insert gateways one after the other), but it also forces us to take more care with well-thought-out conditions.
Watch out for errors with conditions
Section titled “Watch out for errors with conditions”Let’s use a slightly more elaborate version of our process to analyze an anti-pattern of how to handle this situation. Let’s assume that our organization has decided to simplify the claims handling process so that claims for low-value goods are automatically accepted so that no employees are involved. Figure 8*.15* shows us that complaints with a value of less than 100 USD will be automatically accepted, and a refund will be issued (we assume that this is the condition of our fast track), while complaints of more than 100 USD will be analyzed by an employee.
However, what about complaints worth exactly 100 USD? Unfortunately, our process would encounter an error in such a situation and won’t be able to continue because none of the provided paths supports such an amount. For the reader of the process, this is confusing, but for the automation of the process, it’s an even bigger problem.

Figure 8.15 – Anti-pattern – unclear conditions regarding the amount of the claim
It would also be problematic if our conditions overlapped. Such a case, however, would be less troublesome than the previous one, because then you can take the first path for which the condition was met.
Default sequence flow
Section titled “Default sequence flow”But what if we can’t anticipate all the options that might exist? Here, BPMN offers us a solution that’s ingenious in its simplicity – the default sequence flow. We often use it to refer to process flows that are coming out of an exclusive gateway. The default flow has an additional designation that’s visible as a diagonal crossed line near the beginning of the arrow.

Figure 8.16 – Default sequence flow
The default sequence flow allows us to indicate which path the process should take if none of the conditions that have been defined on the other arrows are met. This guarantees that our process will never get stuck due to receiving data we didn’t expect.
It’s worth remembering that the default flow doesn’t necessarily mean the most common way to execute the process or the option that’s most expected from the point of view of the organization (the so-called happy path). It’s simply a designation – if none of the defined conditions are met, take that path. IT professionals may associate it with the ELSE command present in many programming languages.
Parallel gateway (AND)
Section titled “Parallel gateway (AND)”Another type of data-based gateway is the parallel gateway, also referred to as an AND gateway. This gateway is denoted by a + symbol in the middle. However, unlike the XOR gateway, this symbol isn’t optional, so in the case of this gateway, the + symbol must always be present.
A parallel gateway is used to mark process paths that must be executed before the process can move on. Interestingly, this doesn’t mean that the activities along these paths must run at the same time (as its name might suggest), but simply that they must all be completed, before we can continue. The key point is that the order isn’t important to us (if it was, we could use a simple sequence), but that all the elements must be executed.
The AND gateway has a simple interpretation and behavior, so often, there’s no need to show its name on the diagram (although this is allowed). The principle is simple: when a token enters the parallel gateway, it’s multiplied so that each of the sequence flows coming out of the gateway gets its token (without checking the conditions). Since the token is generated independently of the conditions, it makes no sense to add conditions on the paths coming out of this gateway.
However, what happens next with the tokens that are created in this way? Each of them flows further through the process and activates further tasks. This sounds harmless, but one of the biggest pitfalls lurks here for people new to BPMN. Let’s look at Figure 8*.17* and consider what would happen in such a process.

Figure 8.17 – A risky way of modeling – using only the opening (diverging) AND gateway
To make it easier to describe this situation, let’s assume that task B takes 5 minutes, task C takes 10 minutes, task D takes 15 minutes, and tasks E and F take 1 minute each. There’s no problem with the availability of the resources responsible for these tasks.
The beginning of the process is as we expected: after task A was performed, our token reached the parallel gateway and split into three tokens – one for each path – and thus activated tasks B, C, and D. After 5 minutes, task B was completed (our log is AB for now). Next, the token reaches task E and activates it. After another minute, task E is completed (our log is ABE) and the token reaches task F, which is activated. Another minute passes and the token reaches the end event, where it’s consumed. At this point, our process log is ABEF. Another 3 minutes pass and task C is executed (so we have ABEFC). Its token also goes to task E and activates it, after which it continues until the end event (when the second token disappears; we already have a log of ABEFCEF). Something similar will happen with the third token that goes out of task D. When the last token reaches the end event and thus the process instance (that is, its specific execution) ends, our process log will look as follows: AB EF C EF D EF. As you can see, we have executed tasks E and F three times!
Paradoxically, this situation isn’t a mistake from the point of view of BPMN but the way of modeling, in which we have a splitting AND gateway without a closing (merging) gateway will likely be highly confusing for most people because they won’t expect multiple executions.
Of course there may be processes where we aim for such behavior, but usually, when people think about parallel process paths, they tend to expect a situation where we must wait until all the parallel parts are done before we move on. This behavior is extremely useful from a business point of view because it shows us that we can assemble a device only when we have all the parts ready, or that we can only prepare an offer to a customer when we have both the business part and the financial part ready. So, how can we get this behavior?
The solution to our problem is the concept of synchronization. Unlike exclusive gateways, where the use of a merging gateway was optional, for parallel gateways, we’ll often want to insert a parallel merging gateway as well.
Let’s see what inserting such a gateway will change in our example. For simplicity’s sake, I’m no longer inserting task F, which was previously intended to show what happens when tokens flow through the process uncontrolled. This time, we’re no longer assuming how long tasks take or what the availability of resources is because we want to focus on how synchronization using a merging parallel gateway looks like in practice.

Figure 8.18 – Synchronization with a merging AND gateway
The beginning is familiar: after task A is completed, the token arrives at the AND gateway. At this gateway, it’s multiplied (we can jokingly say that the token is photocopied) so that each of the sequence flows leaving the gateway gets its token. Then, each token flows independently and activates tasks on the paths. The availability of resources determines the order in which they’re performed. Thus, the ABCDE, ABDCE, and ACBDE orders are possible.
But how do we know that we can already perform task E? And why do we perform it once? It’s all due to the merging parallel gateway, which provides synchronization. The moment the first token reaches the synchronizing gateway, it’s stopped because the gateway waits for tokens from all sequence flows that enter it. In our case, only when the third token arrives at the gateway will the gateway merge all of them into one and allow it to pass.
To make it work like this, we need to use a merging parallel gateway. That’s because using the exclusive gateway for merging would miss the mark as it would let every token through.
A common question related to modeling parallel gateways is that by changing the position of tasks in the diagram, can we suggest what should happen earlier and what should happen later?

Figure 8.19 – The placement of tasks within parallel paths doesn’t determine the timing of their execution
BPMN suggests timing of the process steps by showing the logic of the flow. So, by following the sequence flow arrow, we can see that task B must happen after task A and before task E. However, whether we arrange tasks B, C, and D in a single line vertically, or they’re placed in some other way (like what’s shown in Figure 8*.19*), it won’t affect how the diagram is interpreted.
The order of execution depends solely on the resources performing the tasks and how the tokens arrive at the process steps to activate them. So, it’s worth remembering that if we want to guarantee a specific order of execution of process steps, the sequence is a good choice. On the other hand, a parallel gateway should be used when we want to guarantee some flexibility in the order of execution of certain process steps while ensuring that the process can only continue after selected elements are executed.
Inclusive gateway (OR)
Section titled “Inclusive gateway (OR)”So far, we’ve discussed the two most common types of gateways: the exclusive gateway, which allows us to describe the situation where only one of many options can be selected, and the parallel gateway, in which all paths leaving the gateway must be executed for the process to continue. In practice, however, we also encounter processes in which certain paths are always executed and some only under certain circumstances.
Naturally, we may be tempted to describe them as a combination of XOR and AND gateways, but we can also use another type of gateway – an inclusive gateway. An inclusive gateway behaves like a combination of XOR and AND gateways, thus allowing more complex process flows to be described more compactly.
An inclusive gateway is often referred to as an OR gateway. Like all gateways, it’s shown as a diamond, and the icon in the center indicating its type is a circle (which can be associated with the O in OR).
How do you read the processes with an OR gate? Simply put, if a condition isn’t defined on the path coming out of the gateway, then this path will always get a token (that is, it will behave like an AND gate).
If, on the other hand, a condition has been defined on the sequence flow coming out of the gateway, it will only get a token if the condition is true. Importantly, an OR gateway can have multiple outgoing paths with conditions that can be mutually exclusive but can also overlap.
In practice, this means that when you see an OR gateway, you should take a closer look. In a situation where we have an OR gateway with sequence flows without conditions, it behaves like an AND gateway. If, on the other hand, we see an inclusive gateway whose paths all have mutually exclusive conditions, its behavior will be identical to that of an XOR gateway.
Most often, however, the inclusive gateway is used in situations where multiple paths may be active. Since we’ll be reading the conditions found on the paths, it’s usually useful to give the gateway a name – just like exclusive gateways, and unlike parallel gateways.

Figure 8.20 – Example of an OR gateway
How will this work for our example? Since the sequence flow leading to task B has no condition, this path will always get a token. On the other hand, as we can see, the conditions for sequence flows leading tasks C and D are constructed in such a way that all, only one or neither of them can be satisfied at the same time.
So, our process log could look like this: ABE (for cold spring), ABCE (for cold summer), ABDE (for warm spring), and ABCDE (for warm summer). However, there could be no ACE (because B must be executed since there’s no condition for this path) or AE (because the synchronizing gateway won’t let us through).
However, if a diagram doesn’t contain a path without a condition following an OR gateway (that is, the path that would always get a token), it might be a good idea to add a default sequence flow to prevent a situation where none of the conditions are met and there’s an error in a process causing the deadlock.
It’s worth noting that our process could be modeled in a slightly different way: since task B is always performed, we could try to move it in front of the OR opening gateway. Of course, the requirement for this would be that tasks C and D can’t be performed before B.

Figure 8.21 – Default sequence flow for an OR gateway
While modeling in BPMN, it’s generally a good practice to make sure that the closing gateway is of the same type as the opening gateway. This is because if we were to insert a closing AND gateway, then in a situation where the opening OR gateway doesn’t generate a token for each path, our process will get stuck.
Modeling without gateways
Section titled “Modeling without gateways”One of the interesting aspects of BPMN is how much freedom the specification authors left to users by giving them many ways to model. However, as we’ve already mentioned, such freedom and having many options to choose from aren’t always helpful to us when we’re wondering how to model a particular process.
In this section, we’ll address the issue of modeling without using gateways. The idea behind this is laudable – if we don’t use gateways, our models will be smaller and thus more user-friendly. However, as we’ll see in a moment, a smaller model isn’t always easier on the eyes. Therefore, the ways of modeling that are presented in this section shouldn’t be taken as recommended. I only want to show what’s allowed according to the rules of notation so that if you encounter such a model in practice or on an exam, will know how to interpret it.
Let’s start with the parallel gateway. As we know, a token entering the AND gateway multiplies in such a way that each process path leaving the gateway gets its token. A similar effect can also be achieved in another way – we just need to add several outgoing sequence flows (without conditions) to a task or sub-process. Then, each of the paths will get its token!
In practice, both diagrams in Figure 8*.22* have the same meaning. The diagram on the left – with an AND gateway – takes up a bit more space, but you can immediately see how to interpret the model. In the case of the diagram on the right, you need to take a closer look at the process flows to make sure they don’t have conditions and that each path gets its token:

Figure 8.22 – Comparison – splitting process paths with and without an AND gateway
As we mentioned earlier, while it’s possible to split paths without gateways, in most cases, skipping the synchronization gateway isn’t a good idea. For example, Figure 8*.23* shows a situation in which nothing synchronizes the three tokens that were created in task A, which of course results in task E being executed three times.
As we mentioned for Figure 8*.17*, such a way of modeling is formally allowed, but you must be aware that many people will consider it a mistake and even more people will misread our intention, so this isn’t recommended.

Figure 8.23 – A risky way of modeling – lack of synchronization
It’s also possible to avoid using gateways when there are multiple flows with conditions (that is, the situations we discussed with XOR and OR gateways). In this case, a new type of sequence flow is needed – a conditional sequence flow. A conditional flow can come out of a task or sub-process, but it can’t be used after gateways (for obvious reasons). Its appearance suggests that it’s used to replace gateways since it has a special symbol of a small diamond at the beginning.

Figure 8.24 – Comparison of modeling with gateways (XOR and OR) and conditional flows
Figure 8*.24* shows a comparison between a diagram in which we used an exclusive gateway, a diagram in which we used an OR gateway, and a diagram in which we used only conditional flows to split the paths. Naturally, these aren’t fully equivalent diagrams because, for the exclusive gateway, we take the first path whose condition is true, while for the OR gateway and conditional flows, we check all conditions to determine which one is valid. In the first diagram, we can immediately see that only one of the conditions can be true. In the second and third, it isn’t obvious unless we examine the conditions.
Process steps – tasks
Section titled “Process steps – tasks”We already know how to read the various types of process flows in the diagrams, but that’s not all we might be interested in. One of the basic things we need to know about any process model is what work needs to be done in it. For this, we use tasks. A task represents an indivisible piece of work to be done in a process. Why indivisible? As we mentioned at the beginning of this chapter, BPMN offers two types of objects (activities) to describe the work to be done – tasks and sub-processes.
When our work is complex, can be broken down into multiple steps, and potentially performed by different actors, we should use a sub-process whose content can be described in a separate diagram. When there’s no need to add more details in such a way, the task will suffice, especially since we can add a description documenting what’s supposed to happen in a process step.
Tasks are represented as rectangles with rounded corners, most often with a name in the center. As with most elements of the BPMN, we can either stop at using a simple task with no type specified, which is perfectly sufficient for models that serve documentation purposes. Alternatively, if we’re thinking of automating a process or need it for analytical purposes, we can set a specific type, which is symbolized by an icon in the top-left corner of the task. Those types tell us more about how the work of the task is done.

Figure 8.25 – The most common types of tasks – none, manual, user, and service
There are many different types of tasks, but it’s useful to start learning about them with three basic ones: a manual task, a user task, and a service task. While an ordinary task, without a type, tells us that a specific step of the process must be performed, any of the three types mentioned previously allows a simple analysis to be performed of the degree of automation of our process.
At this point, it’s worth mentioning one of the quiet assumptions of the BPMN specification authors. Their idea was that any diagram described in BPMN could potentially be the basis for process automation (there’s even a special attribute stating whether a diagram is executable or not). Hence the name task – after automation, each task could potentially be routed to an employee to be performed.
User task
Section titled “User task”Let’s start describing the three basic types of tasks by looking at the user task. A user task is marked by the user avatar icon in the top-left corner. This icon is commonly used in applications, where it represents the user of the application. It also commonly allows the user to access personal settings in their account.
The user’s task is performed by a person in the information system through which the process is coordinated. Such a system can be, for example, a workflow/BPMS tool, but also a CRM, ERP, or “helpdesk” system such as Jira.
The important thing is that such a system controls the entire process. So, when a user performs the first task, the system, knowing what comes next based on the logic of the process, will assign the next task to the same or another user.
Service task
Section titled “Service task”An even more advanced automation option is described by a service task. It’s marked with an icon of two cogwheels in the top-left corner of the task.
A service task is a process step that’s performed fully automatically, without any user involvement. These tasks can include automatic calculations, document generation, data exchange between systems as part of integration, and more.
Formally speaking, however, from the point of view of the specification, not every automatic activity is a service. By definition, a service is an element in which an engine that automates a process calls out other software that provides some service. We can refer to the concept of service-oriented architecture (SOA) or the more contemporary concept of microservices.
Manual task
Section titled “Manual task”As we well know, not all process steps and processes are automated. In this situation, a third type of task – a manual task – comes in handy. A manual task is indicated by a hand icon in the top-left corner.
But what exactly should we consider manual tasks? The specification doesn’t give us much help here as it gives an obvious example of a technician installing a phone. What’s more, in addition to the obvious statement that a manual task is performed without support from a process automation engine (which is clear – otherwise, it would be a user task), the specification includes the note nor any application, while elsewhere it only states that a manual task isn’t performed or managed by a process automation tool. In an additional document accompanying the specification (BPMN by example), we can see examples of manual tasks that, while not coordinated by a process automation tool, require IT support (for example, by sending an email).
Unsurprisingly, I’m often confronted with the question of whether manual tasks are those in which we don’t use a computer at all. In my opinion, this isn’t necessarily the case. Since the key issue is whether the task is coordinated by some kind of process engine, I use manual tasks where there’s no coordination from the IT tool.
For me, an example of a manual task could be preparing an offer for a customer – that is, unless it’s done in a CRM system, where you can see that someone is doing it and, if necessary, can forward the offer to the right person in the organization for approval before sending it to the customer. Similarly, if I’m working on a computer preparing a report in Excel, which I will then send via email to a colleague, the right kind of task here would be a manual task, not a user task.
If our process isn’t automated, we can either not use task types at all or use manual tasks. If the process has been partially automated but contains steps that happen outside the system, then it may make sense to add user task steps where an employee can mark that they’ve performed some manual tasks. In the case of an automated process with manual tasks, the assumption is that the performers know what they’re supposed to do and when, and the system automating the process will simply skip the manual tasks because it will treat them as invisible.
These three basic types of tasks allow us to analyze our processes very easily. For example, if we can see that all process steps are manual, then we can expect human error and delays. Most likely, adding support for employees through a process engine, using software robots, or more advanced process automation could greatly improve efficiency. However, even if our process can’t be automated, we can expect that documenting it will help reduce the number of errors, while increased visibility of the process steps and the logic of a process may bring valuable ideas for improvement.
If we’re dealing with a process, where most of the steps are user tasks and service tasks, we can expect better process performance. Of course, even in such a process, there may be situations where the user manually transfers data between two systems that coordinate two separate steps of the process. In such a case, the use of either the RPA tool or some other method of system integration will enable further improvement of the overall process.
Send and Receive tasks
Section titled “Send and Receive tasks”The next two types of tasks we’ll discuss are useful for more advanced modeling because they’re used to describe the automated exchange of messages – one is used to send messages and the other to receive them. I’m introducing them at this point as a “foretaste” of what we’ll be exploring in Chapter 9, which is devoted to more advanced elements of BPMN. However, it will also help me explain one of the most important concepts in BPMN – sending and receiving messages.
At this point, it’s worth mentioning a few principles of BPMN regarding messages and icons. First, as we already know, by definition, messages are sent and received between different process participants (pools) and can be associated with a message flow arrow.
Second, as you may recall from the introduction to this chapter, the BPMN icon that denotes a message is always an envelope. This knowledge will come in handy in a moment when we discuss different types of events.
Third, in BPMN, active (throwing) elements always have dark icons, and passive (catching) elements have light icons. We’ll expand on that soon.

Figure 8.26 – Tasks sending and receiving messages
Now that we know all this, it won’t surprise us that a send task, which sends messages to other pools, will have a dark envelope icon in the top-left corner, while a receive task, which waits for a message from the outside for the process to continue, will have a light envelope icon in the top-left corner.
When using tasks that send and receive messages, it can be helpful to show the pools with which message exchanges take place, and to present the message exchanges with a message flows. However, this isn’t mandatory, so you can present the sending and receiving tasks without showing message flows and other pools. This will help you save some space and avoid drawing many lines, although at the cost of losing some of the context.
Figure 8*.27* shows the practical use of send-and-receive tasks in conjunction with message flows. Again, we’re using the familiar complaint handling process – however, to represent the occurrence of sending and receiving tasks in tandem (as is very often the case), I’ve modified the process fragment slightly to describe the following logic: the process starts with the receipt of a complaint, which is submitted by the customer (again, here, we can see the start event, which is triggered by a message, as indicated by the envelope icon).
Then, the employee must analyze the complaint and inform the customer that the complaint has been rejected (if it isn’t valid) or that the complaint has been accepted (if it’s valid). In either case, we’re sending a message outside our pool – in this case, to the customer.
The rest of the process has been changed slightly to make the example clearer. On the one hand, we assume that we always replace the goods (that is, we don’t support refunds), while on the other hand, our acceptance also includes a request to the customer for shipping data.
At this point, it’s worth noting the logic of the process: once we’ve informed the customer that the complaint is valid, our token immediately goes to the Receive shipping details task. However, since this is a receive task, we start waiting for a message from the customer. Only when the customer gives us the shipping data can we move on to the Order shipping of a replacement product task.

Figure 8.27 – Part of the example process – sending and receiving messages in practice
If the customer didn’t respond to us, our process would never move on. Of course, this isn’t something we’re happy about because as part of the processes in which we communicate with others, we should be able to respond to the lack of response to our message. Fortunately, BPMN has several solutions to this problem, something we’ll cover in Chapter 9.
In the case of sending and receiving tasks, it’s worth remembering that the specification treats them as automatic process steps, so they shouldn’t be used for steps in which an employee prepares and then sends an email. In such a situation, we could use, for example, a manual task or a user task, which can also send messages (this is denoted by an outgoing message flow arrow).
It’s also worth noting that our Inform customer about complaint validity task is connected by a sequence flow with the Receive shipping details task. Some people assume that since we’re sending a message out and waiting for a return message, we can skip the sequence flow, as shown in Figure 8*.28*. However, this isn’t allowed as the two tasks must be connected by a sequence flow.
Those who find the concept of a token helpful can imagine that a token that doesn’t have a sequence flow has no way to jump to the next task within the process as it isn’t allowed to travel along the message flow.
Here, once again, the rule of reading BPMN diagrams comes in handy – we start from the start event and follow the sequence flow step by step, without breaks, always within a single pool, until the end event. As you can see, we would violate the no-breaks rule here.

Figure 8.28 – Anti-pattern – a gap in a process between a send and a receive task
When discussing send and receive tasks, it’s also worth mentioning another common mistake associated with these tasks, as shown in Figure 8*.29*. Many people who start working with BPMN associate the envelope symbol with the mail client icon and use send and receive tasks to show the exchange of emails between different teams (represented by lanes) within the same organization.

Figure 8.29 – Anti-pattern—sending and receiving messages within one pool
This approach is tempting, but unfortunately wrong. Since, by definition, a message is transferred only between pools and we aren’t allowed to send messages within a single pool, we can’t use send and receive tasks in this way either.
So, what can we do in a situation where we want to show that we’re sending an email between one team and another? We can use a pair of manual or user (or no type) tasks – that is, Send refund order and Receive refund order.
This kind of modeling could make sense when, for our description or analysis, it’s important to show clearly how we communicate with others using more classical methods. An example could be a process where paper documents are still used – someone must physically carry an envelope with documents and leave it at the secretary’s office, and someone else must go and pick it up from there. By documenting those two tasks, we could show how much time this kind of work takes.
However, if it’s a digital process, it may be enough for us to indicate that someone from team A sends something to someone from team B. This is because since the next task in the process will be in team B’s lane, the very logic of the process shows us that the work has been transferred.
The task types that have been described so far are those most used in practice, but this isn’t a complete list. In Chapter 9, we’ll learn about some additional, slightly more advanced task types and discuss their use.
What we’ve learned here about send and receive tasks will come in very handy in a moment when we discuss the most important types of events in BPMN. Later in this book, we’ll learn about special types of events that can replace send and receive tasks.
The scope of a process – start and end events
Section titled “The scope of a process – start and end events”We already know how tasks allow us to present the work that needs to be done in a process. But how do we show what causes our process to start, and what results it can end with? As we already know, events are used for this purpose.
Events are an extremely useful element of the BPMN specification. They allow us to show what starts our process (start events) and what results our process may end up with (end events). In addition – and this distinguishes BPMN from other notations – we can use them to describe what important things may happen during the process (intermediate events) and how we’ll react to these events in handling errors, exceptions, and special situations.
There are many different types of events in BPMN, some of which are useful for more advanced modeling scenarios (for example, process specification/automation), and some of which are used occasionally in practice. Therefore, in this chapter, we’ll only focus on a few of the most common types of events, without which it’s impossible to model in BPMN. This will help us understand the basics of how events work.
Simple start event
Section titled “Simple start event”Start events are always shown as circles with a single thin line. The following is a start event with no trigger defined.

Figure 8.30 – Start event (no trigger)
Let’s start with a simple start event. The start event is always represented as a circle with a single thin border. It represents what must happen for the process to start (technically speaking – what needs to happen so that a process instance or execution of a specific “case” can begin). In this case, the start event doesn’t have a specific trigger defined (which is easily visible because there’s no icon inside).
All start events are catching, which means that they passively listen to what’s going on, and only when something happens that triggers them will they create a token that flows further and makes the process begin. Before the start event, there’s nothing (at least from the perspective of the diagram of the process), so there can be no sequence flow arrows incoming to the start event.
Naming start events
Section titled “Naming start events”The BPMN specification doesn’t impose a specific way of naming start events. I like to name events so that their name clearly describes a certain state of reality that must exist for the process to start.
Various other approaches are also encountered in practice (shown in Figure 8*.31*), some of which may, for example, be inspired by flowcharts (START). While none of the examples shown are wrong from a BPMN point of view, they differ in their informational value. I like to use the passive side, which avoids confusion with the work that’s done in the process. So, I could give the start event without a type a name such as Summary of reasons of complaints needed (for a process related to our complaint handling process) or New employee needed (for a process in which new employees are recruited).

Figure 8.31 – Possible approaches to naming start events
A start event without a type is used often. It’s particularly useful in processes when the decision of the employee involved in the process causes the process to begin, that is, it doesn’t depend on external requests or isn’t executed at specific times. Another possibility is a situation where some other process triggers our process through the mechanism of sub-processes. We’ll discuss this case in more detail in the next section.
Simple end event
Section titled “Simple end event”End events are also shown as circles. However, they have a border drawn with a single thick line. The following is an end event without any trigger.

Figure 8.32 – End event (no trigger)
Now that we know how to use start events to show what starts our process, it’s a good time to look at the other end of the spectrum and think about how our process might end. End events are the second element of the process scope. They illustrate what result our process might end with. Start events are, by definition, passive elements. End events are their opposite – they’re always active, which in the BPMN specification is referred to as throwing.
As we know, there can’t be anything before the start event in a process flow, so a sequence flow arrow can’t enter it; only outgoing flows are allowed. On the other hand, in the case of an end event, we can’t place any flow objects after them, such as events, gateways, or activities. Therefore, a sequence flow arrow can enter the end event, but there can be no outgoing sequence flow from it.
Each end event will have a border drawn with a distinctive single thick line, which allows us to easily distinguish it from the start event (which always has a single thin line).
Naming end events
Section titled “Naming end events”As in the case of start events, the BPMN specification doesn’t impose special ways of naming end events, so we have quite a bit of freedom. My preference is to name end events so that it’s clear what result the process ends up with – that is, what we achieved. Ideally, this name should emphasize what happened in this process path and not something we do. This way, we can see how the process ended, not just that it’s finished, as shown here.

Figure 8.33 – Possible approaches to naming end events
One or more end events?
Section titled “One or more end events?”It’s also worth noting that BPMN allows us to put multiple end events in a diagram, and this is a very useful option. As we saw in Figure 8*.4*, a glance was enough to determine what result our process could have, without us having to read the entirety of the diagram.
This is especially helpful when there are exclusive gateways in the diagram. Our process may finish in various other ways besides the “happy end,” and we want to show them clearly for process analysis and improvement.
So, while it’s possible to connect multiple sequence flow arrows to a single end event to show that multiple paths of the process share a common end (for example, in our process, the Money refunded end event is sufficient for analytical purposes; we don’t need to emphasize how we make the refund), I’m not in favor of using only one end event where all paths – the happy one and the others – meet.
The standard end event behaves as follows: when a token reaches it, this token is consumed and disappears. If there are no more active tokens within that process instance, the process instance ends, and we can consider that the process has come to an end.
If, on the other hand, there are more tokens in the process, then the entire instance “lives,” so long as at least one token is active. Let’s look at the process example shown in Figure 8*.34*. If we assume that each of the tasks (A through E) lasts for 1 day, how long will the entire process instance live, assuming there are no delays?

Figure 8.34 – Example of a process with many paths (process instance life cycle)
As you can easily calculate, even though the bottom token (that is, the one going to task E) will reach the Bottom path finished end event after just 2 days, we still have the top token within our instance. So, for the entire process to complete the longest of the paths (ABCD), we need 4 days. Only when task D is completed and the token reaches the Top path finished end event can we say that the process instance was completed.
Before we discuss start and end events with triggers, there’s one more interesting thing to say about start and end events without types. From a formal point of view, the BPMN specification doesn’t force us to insert start and end events without types. We can omit them from our diagrams because they’re assumed to be there as invisible and default elements.
The only limitation is that we must be consistent in this approach – that is, we can’t skip the start event without a type and must show the end events without a type. However, I don’t recommend such an approach because with properly named events, it only takes one glance to determine when the process starts and what it might end with. Figure 8*.35* compares these two approaches:

Figure 8.35 – Using start and end events versus skipping them
Now that we’ve learned the general rules for dealing with start and end events, we can move on to something a little more complex. As we know from the previous section, which was dedicated to tasks, we can define different types of tasks. These are marked with special icons.
Message events
Section titled “Message events”As we learned from our complaint handling process, events can also contain additional icons that represent possible triggers. Let’s begin by comparing events for which a message is a trigger since we already know a bit about messages. This will allow us to understand how different types of events behave.

Figure 8.36 – Message start and end events
In addition to the rather obvious difference due to the type of events (a start event has a thin border, while an end event has a thick border), we can also see that the envelope icons differ in fill color. Using this example, we can observe a very important principle of BPMN: catching (passive) event icons are always light, while throwing (active) event icons are always dark.
Message start events indicate that a process is triggered by receiving some information from the outside – from some external entity, another organization, or perhaps a customer or partner. This information can be transmitted in a variety of ways – by letter, email, SMS, telephone, and so on.
For each message, we must always have a specific sender and a specific recipient, and that message exchange is always done between different participants (pools). Messages can’t be sent or received within the same pool. As we’ve seen, the message icon is always an envelope, so the start event that’s triggered by the message must have a light envelope icon.
If we want to show the readers of the diagram where the message comes from, we can draw an incoming message flow arrow, but this isn’t mandatory. A message flow is always drawn with a dashed line, with an open arrowhead at the end and an open circle at the beginning. Figure 8*.37* shows the use of a message flow named Complaint, which flows from the Customer pool to the Complaint received start event.

Figure 8.37 – Example of a message flow between a black-box (collapsed) pool and a start event
While this is often helpful, there’s no obligation to show other participants or message flows, so we might as well start our process more easily, as shown in Figure 8*.38*.

Figure 8.38 – A simplified process without an external participant and message flow
As for naming message start events, as in the case of plain start events, I would suggest using the passive side while referring to the message that starts the process. Possible examples include Order received, Inquiry received, Invoice received, and, as in our example of the complaint handling process, Complaint received.
I don’t recommend using the active side so that you don’t confuse the audience by implying that some work is being done within the event (for example, Receive order).
Now that we know how the message start event and regular end event behave, let’s consider how the message end event works.
As you can easily guess, this type of end event is marked with a dark envelope icon. Like any end event, it consumes incoming tokens, but since it has a trigger defined, it also does something extra.
Since nothing else happens in the process after the end event, this something extra can be considered a swan song – the last breath of our process, so to speak. For a message end event, this something extra is the action of sending a message.
An example of this behavior might be sending an email to a customer regarding a record of a chat with a consultant or sending a request to evaluate an interaction – for example, a Net Promoter Score (NPS) satisfaction survey after the shipment was delivered.
At this point, it’s worth noting that sending messages by end events makes sense in the case of highly automated processes, where such sending doesn’t require human intervention. That’s why we usually send messages with tasks, and the end event is only used to summarize what’s already happened. This can be seen in Figure 8*.39.*

Figure 8.39 – Part of the example process – sending messages with tasks and proper naming of events
However, if we wanted to (and our process was properly automated), we could send a message from the end event, as shown in Figure 8*.40*:

Figure 8.40 – Part of the example process – sending a message with the end event
Figures 8.39 and 8.40 are similar in meaning but there are still some differences. In the former figure, message flows are connected to the send task and the end event only states the result that refers to work that happened within the previous task.
In the latter figure, the task only prepares the ground for sending the message because the user enters the reason for rejection. This will be sent to the customer in the next step (in case you’re curious, for Figure 8*.39*, this preparation should happen in the Check complaint validity task because the send task shouldn’t be used for writing and sending emails, only for sending). The message is sent by the Complaint rejected end event.
If you use end events that send a message, it’s worth taking care not to mistakenly suggest that messages are sent twice – once by a task and additionally by an end event, as seen in the anti-pattern shown in Figure 8*.41*. This kind of confusion is particularly dangerous when you don’t use message flows, which clarify the communication with external participants:

Figure 8.41 – Anti-pattern – sending a message twice with a task and an end event
Timer events
Section titled “Timer events”Now that we’ve learned about more advanced rules for modeling start and end events while using messages as examples, it’s time to become familiar with an additional type of trigger – time. Since humans can’t control time, this type of trigger only exists in a catching form, so there’s no such thing as a timer end event.
Let’s learn more about the timer start event. These events have a very distinctive appearance since their icon is a clock face. They’re used to show that the process starts at a specific moment. This can be a specific moment (for example “The first business day of the quarter,” “6 P.M. on weekdays,” or “December 31, 11:59 P.M.”) or a period (for example, “Every 8 hours”). With these types of events, we can easily represent time in our processes.

Figure 8.42 – Timer start event
Let’s return to our complaint handling example. When discussing Figure 8*.31*, we said that for the related process where we analyze reasons for complaints to improve our processes, we could use the Summary of reasons of complaints needed start event.
This would show that the process of analyzing the reasons for complaints is done on an irregular basis, depending on the expert decision of those involved in the process. However, if we wanted to ensure some regularity as part of organizational improvement, we could decide that this process is performed regularly every month, and we always perform it on the first working day of the month. Figure 8*.43* shows what this could look like.

Figure 8.43 – Example – timer start event in practice
Similarly, a timer start event could be used within the shipment of goods to group a batch of packages and send them together once a day, for example, or within the process of refunding customers who have paid by wire transfer so that our employees from the finance team don’t have to log in to e-banking every time a refund is needed. Instead, they gather a batch of transfers to be made and send them together at the right time.
In this section, we learned how start and end events allow us to convey very important information about what can start our process and how it can end. Thus, they define the scope of our process. But what can we do if, while modeling, we notice that there are so many process steps that our diagram is no longer readable? We’ll talk about this in the next section.
Improving diagram readability with sub-processes
Section titled “Improving diagram readability with sub-processes”As we already know, a very important issue in creating models is to ensure that they can communicate with others. For this to happen, our models must be readable by the audience. Readability depends on many aspects, but some of the most important are the size of the model (how much space it takes up and how many objects it contains) and how easy it is to read.
At this point, it’s worth noting that it’s often difficult to convey good modeling practices in a book due to the nature of the medium. That’s why some of the diagrams in this book are only available on its GitHub repository.
In practice, we usually create models on a computer and read them either electronically or as a hard copy. A paper book is much smaller than a standard printout, so larger diagrams need to be rotated and placed on separate pages; if they’re placed in the text, there are suggestions to squeeze everything to make it look better. This often leads to snake diagrams, which is an anti-pattern.
While the BPMN specification itself doesn’t place restrictions on us – a diagram containing one start event, one task, and one end event is just as correct as a diagram consisting of several hundred tasks and dozens of gateways – the size of the diagram is very important to its readers.
There’s no consensus among modeling experts on how large a diagram can be to maintain readability. It’s often argued that the ideal diagram should fit into a single sheet of paper.
I recommend creating diagrams that have no more than 20 to 30 elements. But what if we have a very complex process that needs 40, 50, or more elements to cover everything with a proper level of detail? This is when sub-processes come in handy.
Sub-processes allow modeling to occur hierarchically. While the BPMN doesn’t support the high-level process architecture, it does allow us to move between different diagrams, from general to specific, in a very convenient way.
Let’s look at Figure 8*.44*, which shows our example process for handling a complaint. To be more precise, we’re looking at the part that documents what happens when the chosen complaint handling option is a refund.
We can see that an employee from the claims handling team needs to order a refund. Afterward, this refund is processed by the finance team.

Figure 8.44 – Example process with visible sub-processes allowing us to navigate to lower-level diagrams
Embedded sub-process
Section titled “Embedded sub-process”The element we can see here is a standard type of sub-process known as the embedded sub-process. This often comes in a collapsed form and is shown as a rectangle with rounded corners, with a plus marker at the bottom.

Figure 8.45 – Embedded sub-process
Of course processing refunds is quite a complex matter. Local regulations may differ just like company policies, but we can assume that if a payment needs to be refunded, the refund should be made using the same method that the customer picked.
Therefore, we should support not only card payments, but also e-wallets/payment systems, bank transfers, and possibly something more.
Are those details relevant to someone interested in the complaint handling process? Should we add them to the complaint handling process diagram? For most audiences, this would probably be too many details. So, instead of helping our readers, it would hinder communication. Therefore, according to the Goldilocks principle, it’s better to show only as much as necessary.
How we could do this in practice? Instead of adding everything to the main diagram of the complaint handling process, we can create a new diagram showing how we process a refund and link it with the corresponding sub-process object in our main diagram. This hierarchical modeling makes it easy to move to a lower level with a single click, facilitating work with connected diagrams.

Figure 8.46 – Example diagram of processing a refund
Now, let’s compare this hierarchical modeling with an option where we try to show everything in one diagram. (As already mentioned, it is hard to show bigger diagrams in a book. That’s why I put the diagram showing everything on Github page for this chapter: https://github.com/PacktPublishing/Practical-Business-Process-Modeling-and-Analysis/tree/main/Chapter08. Take a look and compare it with a hierarchical approach and a variant of presentation where elements have been rearranged to make the diagram even smaller and easier to print. Figure 8*.47* shows an example of such a snake diagram.

Figure 8.47 – Anti-pattern – saving space with “snake” diagrams
Sub-processes aren’t only useful when we want to document our process with several hierarchically connected diagrams split for better readability. They also support the very important concept of reusing some standard service that’s available in the organization.
Call activity
Section titled “Call activity”We saw an example of this approach in our complaint handling process, where there’s a sub-process called Product shipping. An additional example was visible in Figure 8*.46*, where we had a sub-process for money transfer processing that has some (standard) way of executing defined bank transfers.
Cases like this – that is, situations where we don’t refer to a separate part of our process, but to some standard way of doing things – require a different kind of sub-process: a call activity. A call activity can be recognized very easily as it has a characteristically thick border, drawn with a single continuous line.

Figure 8.48 – Call activity sub-process
However, the differences between ordinary embedded sub-processes and call activities go much deeper. The contents of an ordinary embedded sub-process should be executed within the same lane as the sub-process linked with it (this is why, in the diagram describing the refunds, I didn’t use a pool or lane).
Since we have a situation where a child diagram is called by its parent, the lower-level diagram must have a plain start event (without a trigger). This shows that this process doesn’t start by itself but is called by the higher-level process.
In our case, this is quite intuitive because we wouldn’t want a situation where someone from the finance team starts making refunds on their own, without a request from the complaint handling team.
On the other hand, when we use a call activity, the fact that this sub-process is placed in a particular lane of a higher-level diagram doesn’t determine where the work will be done within the lower-level diagram. Since the process can be called by many other processes, we also need a plain start event, as well as additional start events with some triggers apart from the required one.
An additional element that distinguishes those two types of sub-processes is the approach to data. Simply put, we can say that for an embedded sub-process, we have a rather convenient situation because all the data of the “parent” is available within the “child.”
In the case of call activity, however, we have a more complex situation as our processes must exchange data with each other in a more formalized way. This exchange requires interfaces to be established that guarantee that all required data will be passed to the called process, but also that results will be passed back for further processing.
A good example would be sending correspondence in the form of letters. If we do this ourselves, then we know what to send, how to send it, and to whom. However, if we need to send correspondence to hundreds of clients and we use the help of office clerks, it isn’t enough to ask them casually to send mailings.
We need to clearly communicate what is to be sent (a letter template or all the required data), specify the method of sending (an ordinary letter, an express letter, or maybe a letter with proof of delivery), and provide addresses. We can also expect to receive a summary containing information regarding letters that were delivered successfully and those with invalid addresses.
In Figure 8*.46*, we had two end events showing how our refund could be processed. However, we didn’t cover the case of a failed refund. In practice, however, our sub-process may have several possible outcomes, and not all of them are equally good for us. In such a situation, we often insert an exclusive gateway after the sub-process to show how to deal with the different outcomes of our sub-process.
It’s worth knowing that sub-processes aren’t only used for hierarchical modeling. It may also happen that the entire content of a lower-level process is contained in a sub-process object, which is a kind of container within which its content is shown. Such an approach is called inline modeling. This way of modeling sub-processes in an expanded form isn’t usually recommended and generally makes sense when we use more advanced ways of modeling, allowing us to describe exception handling by boundary intermediate events (something we’ll talk about in Chapter 9).
The following illustrations (Figures 8.49, 8.50, and 8.51) show an example of hierarchical modeling contrasted with inline modeling:

Figure 8.49 – Example of hierarchical modeling – moving to a lower-level diagram through an embedded sub-process
It’s worth noting that the expanded sub-process has no plus marker at the bottom and looks confusingly similar to the task, but most importantly, the sequence flow arrow coming out of task D reaches the edge of the embedded sub-process but doesn’t cross it.
This is a very important rule – the sequence flow arrow can neither cross the boundary of the pool nor go from the outside to the center of the expanded sub-process. This reads as follows: when a token coming out of task D reaches an embedded sub-process, it activates it. In the start event located in the sub-process, another token is born and flows, triggering tasks E and F in turn. When it reaches the end event, it’s consumed and the embedded sub-process is considered to be finished, which causes our main token, which has been patiently waiting, to move on (in this case, to the end event).

Figure 8.50 – Using an embedded sub-process for inline modeling
Such a way of modeling takes up even more space than if we didn’t separate the elements into sub-processes but drew them within the main process. That’s why you can sometimes see diagrams whose authors have taken the opportunity to omit start and end events, as mentioned previously. This is a perfectly allowed way of modeling, but I try to avoid it because it can be a bit confusing for people who aren’t familiar with BPMN.

Figure 8.51 – An inline sub-process without start and end events
While sub-processes are very helpful for making diagrams easier to read by hiding some complexity, there are also times when we’ll decide that it makes sense to add some elements to the diagram because they provide valuable information that offsets the increased diagram size. One of the most important aspects is the topic of responsibilities in a process. We’ll cover this next.
Responsibilities in a process – pools and lanes
Section titled “Responsibilities in a process – pools and lanes”As we already know, BPMN lets us describe not only what happens within a process of our organization, but also how we interact with other entities. For this purpose, we use pools and lanes.
A pool represents a participant in a process, whereas a lane represents a logical division of that pool. Both the pool and the lane are always represented as rectangles, but the name of the pool is usually separated from its contents by a line, while the lane has no such line.

Figure 8.52 – A pool with two lanes
Interestingly, in BPMN, a pool can represent both the organization that performs the process and a department of that organization or another business role. The key issue is perspective as we assume that within the pool, the process is controlled in some way. This could be control resulting from the fact that the process has been automated and its steps are governed by a workflow application. Of course control can also be exercised by the owner of the process, who makes sure that the process is done properly, and no problems arise in it.
While both approaches are possible, I recommend modeling processes according to the assumption that the pool represents the entire organization, and the lanes represent individual departments and organizational units. This way of modeling supports the thinking of process management as a team sport.
Let’s go back to the lanes – they always represent some kind of sub-partition of the pool, but we have a lot of freedom here as well. In theory, lanes could order tasks as, for example, value-adding or value-enabling, but in practice, lanes are often used to show responsibility for individual process steps. In this case, lanes correspond to organizational units or roles
The alternative approach, in which each unit has its own process and messages are exchanged with other pools, may seem tempting if the scope of our optimization project is about a single department or team because we can ignore what others need to do in a process. However, it tends to reinforce silo thinking, so it isn’t a recommended modeling method.
These two approaches translate into different ways of naming pools. Often, a pool bears the name of a participant it represents. However, it’s quite common – especially for models created for process automation on platforms that have this requirement – that the pool has the same name as the process that flows in it. A similar approach can also be found in simple modeling tools that have no other place to enter the name of the process being described.
As we have already seen in our example diagram, BPMN allows us to describe a pool with content, but also to show that there’s a process participant with whom we exchange messages, without showing the detailed process of this participant.
In this case, we use a collapsed (black-box) pool, whose contents are not shown. Such a pool has no line separating the name from the content (because there is none), and its name is usually shown in the middle. Please note that you could also add a normal pool and leave it empty.

Figure 8.53 – Collapsed (black-box) pool
One of BPMN’s unique features is its support for showing how the process of one participant interacts with other participants. While other process modeling notations allow us to show who’s responsible for what with different kinds of lanes, BPMN allows much more.
Private processes
Section titled “Private processes”The first interesting difference is that in BPMN, processes can be defined as private or public. A private process describes, at the appropriate level of detail, what’s going on in the organization being analyzed. They can be used for documentation and analysis purposes (non-executable private process model) or process automation purposes (executable private process model).
By design, an executable diagram should contain much more technical information to automate the process, such as user forms, technical expressions to control the flow of the process through different paths (depending on the data that’s received), and more.
A diagram that’s used for documentation, on the other hand, can contain only as much detail as what’s needed for the purpose for which it was created. Figure 8*.54*, which shows a simplified version of our process, shows what a diagram that’s been created as process documentation may look like (it would also likely have descriptions of the process steps, but they’ve been hidden here).

Figure 8.54 – Example process shown as a private process for documentation purposes
Interestingly, from a formal point of view, we don’t always have to insert the pool into our diagram. The specification allows us to omit it for one selected process. So, once again, it invokes the concept of invisible default elements.
I don’t recommend this way of saving space because for many audiences, the view of lanes dividing the invisible pool is highly confusing, and additionally, by getting rid of the lanes, we make it more difficult to see who’s responsible for which steps within the process.
Public processes
Section titled “Public processes”A public process, on the other hand, is used to show only those elements of the process that are relevant to the communication between the participants (basically, elements related to sending and receiving messages). A public process is a abridged version of a private process that allows us to quickly show business partners what they need to know about our way of doing business, without burdening them with unnecessary information about process steps that don’t interest them.

Figure 8.55 – Example process shown as a public process
Collaboration diagrams
Section titled “Collaboration diagrams”Let’s go a little further and show how different participants work together using collaboration diagrams. These contain two or more pools (expanded or collapsed) between which messages are exchanged.
Often, collaboration looks like the example we know from Figure 8*.1* – within the main pool, we have all the necessary process steps, not only those needed for message exchanges. Additional pools can be collapsed or contain their processes inside.

Figure 8.56 – Example process shown as collaboration
If we wanted to show only the communication between pools, we could use a collaboration diagram with all pools collapsed, but this isn’t common.
Good practices and errors to avoid
Section titled “Good practices and errors to avoid”Speaking of pools and lanes, it’s also worth remembering three BPMN modeling principles that can help us avoid many common mistakes (examples of which I’ve included in Figure 8*.57*):
- The process flows within a specific pool and can move between different lanes, from the start event through various activities and gateways to the end event. It always flows along the sequence flow arrow (without “gaps” or “jumps”).
- The sequence flow can only occur within the pool; it can’t cross the border of the pool.
- The message flow can only occur between pools; it can’t take place within a single pool. This also applies to sending and receiving messages between lanes in the same pool.

Figure 8.57 – Anti-pattern – a summary of the most common errors related to pools and lanes
The first thing that strikes us is the sequence flow between Task 1 and Task A, which are in two different pools. This is not in accordance with the rules of notation because the sequence flow can’t pass between different pools – it’s always related to a specific pool.
If we take a closer look, we can also see a more subtle error – the process starts with Start event 1 in Pool 2 and then continues in Pool 1. This is also wrong because Pool 1 should have its own start event, which would most likely have an incoming message flow coming out of Task 1.
The next mistake is that Lane 1 and Lane 2 are too independent as they have their own start and end events, while the process should flow through the entirety of Pool 1. This would emphasize that the lanes are just divisions of the pool and the process is associated with the pool, not assigned to a specific lane.
Another error that isn’t so easy to catch is that the message flow coming out of Task B doesn’t enter Task 7 in Pool 2 but is attached to the pool edge. Admittedly, BPMN allows us to start and end message flows at the edge of the pool, but this only makes sense for pools that don’t contain content (usually collapsed pools). If the pool does have content, then we should show precisely where our message flow is leading to or from.
Errors occur in two more places: in Pool 1, we can see that Task B and Task C aren’t connected by the sequence flow. In Pool 2, on the other hand, we have a gap in the sequence flow between Task 1 and Task 7. Both cases violate the rule that says that there can be no “gaps” or “jumps” in a sequence flow.
In the case of Pool 2, we can also see that the process is incomplete. It has a start event and Task 1, but then there’s a break. Later, we can see that Task 7 and Task 8 exchange messages with the process contained in Pool 1, but we don’t know what comes after Task 8 because there’s no end event at the end.
This kind of modeling, in which we describe some but not all elements of a process and don’t even bother to connect them properly, isn’t appropriate.
If we don’t need details, then representing the participant with a collapsed pool is enough. If we’re only interested in the elements that are important for communication, we use the public process, which may not contain all the elements (as in our example, where we have Tasks 1, Task 7, and Task 8), but it still needs to be valid. Of course, we could also model the process contained in Pool 2 in detail.
The last major error – sending messages within a single pool – also occurs in several places. The first time we saw it was between End event 1 and Start event 2. This is a consequence of “slicing” the process into mini processes for each lane: not from the perspective of the whole organization (represented by the pool) but from the perspective of its organizational unit (represented by lanes).
Of course, messages can’t be exchanged between End event 1 and Start event 2 because we aren’t allowed to have message flows (or message exchanges) within a single pool.
A second, slightly less drastic occurrence of the error related to message exchanges is seen at the end of Pool 1, where Task D and Task E, both of which are connected with a sequence flow, are marked as send and receive, respectively.
This would only make sense if we were sending something to Pool 2 and receiving from it, but we see nothing to indicate such use. Therefore, this isn’t correct – we aren’t allowed to send messages within a single pool, even if the reasoning goes: “But after all, I’m sending an email to colleagues in another department, and they receive it and get acquainted with its content.”
The pools and lanes that we’ve become better acquainted with in this section can sometimes be extremely useful for conveying very important information about a process – that is, who’s involved in the process and who’s responsible for each step of the process. However, we might want to include some more information in our diagram.
Adding more information to your diagram with artifacts
Section titled “Adding more information to your diagram with artifacts”As we already know, artifacts are used to convey more information about our diagram without affecting the way it’s interpreted and executed. In this section, we’ll learn more about text annotations and groups.
Text annotations
Section titled “Text annotations”The most used type of artifact is text annotation, which allows you to insert text into your diagram.
This annotation is quite simple – it always has the shape of an opening square bracket, followed by text. Depending on our needs, we can only change the size of the object so that the text takes up more or less space.

Figure 8.58 – Text annotation
Despite this simplicity, annotations can be very useful. First, the text they contain is always visible within the diagram (unless, of course, we shrink the object so that the text no longer fits in the available space), making it easy to spot on the printout and accessible to viewers who aren’t BPMN experts and don’t realize that many objects may have additional, invisible information (descriptions, but not only). Thus, annotations allow us to convey relevant information relating to the context of the process.
Second, because annotations are easy to see, we can use them to document problems in the process and ideas for improvement. Of course, such use mainly makes sense if the tool we’re using doesn’t offer a better change management mechanism.
Third, text annotations can be used in a wide variety of scenarios. The BPMN specification defines quite a lot of different attributes, but – as we mentioned earlier – the authors decided that its goal isn’t to support all possible business modeling scenarios. So, if we’re using a tool that doesn’t provide support for time-cost analysis of a process, and we’d like to show how much time it takes on average to execute individual process steps or classify process steps in terms of value-creation for documentation and improvement purposes, we can use annotations.
In the same way, we could use a text annotation to record who is the process owner, or to document the purpose of a process or other attributes that are important to us.
When using annotations, it’s worth remembering that anything we write in them is treated as text only – it doesn’t affect the behavior of the process being described, isn’t the basis for automating it, nor does it allow for more advanced analysis. We can jokingly say that annotations are the equivalent of colored sticky notes that we attach to important documents with information for recipients on what they should pay attention to, where to sign, and so on.
Annotations can be linked to a selected element of the diagram, or they can refer to the diagram as a whole. In the first case, the annotation connects to another element (for example, a task) using an association arrow, which is indicated by a dotted line.

Figure 8.59 – Text annotation and an association arrow
In the second case, we can simply place the annotation freely floating, without connecting it to other elements of the diagram. We can see examples of both approaches in the following diagram fragment (Figure 8*.60*). The text annotation, which uses association, is linked to the start event, while the annotation that’s been placed freely shows how the process owner and its goal can be visualized.
This diagram also illustrates some of the risks of using artifacts: they’re very useful for showing something important on a diagram, but the more you add, the worse the readability of the whole diagram gets, so it’s a good idea to exercise moderation.

Figure 8.60 – Example of using annotations to provide additional information about a process
Groups
Section titled “Groups”Another type of artifact is a group. A group, like a text annotation, is always presented in one way. It’s shown as a rectangle with rounded corners, but it’s very difficult to confuse it with tasks and sub-processes because it has a very distinctive line composed of alternating dashes and dots (like in the Morse alphabet) and doesn’t connect to other elements of the diagram via an arrow.

Figure 8.61 – Group
A group is used when we want to draw the recipient’s attention to the fact that the selected diagram elements have something in common – they belong to a certain common category. If we wanted to use a similar analogy as in the case of a text annotation, we would say that the use of a group is like marking certain elements of a document with a highlighter.
In practice, adding a group involves adjusting its size to cover all the elements we want to have, and giving it a proper name that suggests what those elements have in common. This allows us to highlight diagram elements that represent a happy path or elements that will be handled in a similar way (for example, “To be eliminated after the implementation of XYZ system”).

Figure 8.62 – Example of using a group to highlight part of a process
The BPMN specification also allows other types of artifacts to be added to diagrams. However, this is more of a theoretical possibility as they would have to be supported by a process modeling tool, something we don’t encounter very often in practice. It’s worth remembering that according to the rules of the BPMN specification, they would have to look different from the objects that have already been defined – that is, you can’t create a new type of artifact, which would be a circle with a single thin border (because such a symbol is already reserved for the start event), but the shape of the polygon would be allowed.
The artifacts that were covered in this section make it possible to expand the BPMN diagram with additional information, but in a way that doesn’t translate to how the process is interpreted and executed.
Now, it’s time to discover the last category of BPMN objects. These objects allow us to add more context about a process to the diagram but in a way that can be (at least in theory) more than purely informational.
Showing data flows in a diagram with data objects
Section titled “Showing data flows in a diagram with data objects”Data usage is another area where BPMN goes beyond its core focus of describing a process. It’s worth noting that the elements we’ll discuss in this section make it possible to show how data flows within a process, but that’s not all that IT professionals may need to model the data adequately – for example, they don’t provide support to ensure that data structures and their dependencies are represented.
It’s also worth noting that the data layer in BPMN often has a weaker level of support in IT tools – especially those for process automation – than other elements of the notation. Many process automation tools use their methods for describing the data in a process, so the data modeling concepts included in the BPMN specification are often treated only as documentation and have no impact on how the process is executed. There are even situations where automation tools remove data objects when importing diagrams from other modeling tools!
As we know, the basic object for representing data is the data object. Its symbol looks like a piece of paper with a folded top-right corner. However, it’s worth noting that a data object may or may not correspond to a physical document (the specification emphasizes that data can refer to physical or informational elements). Often, we use it to describe a certain set of data that’s processed as part of a process. Examples of such data may be “Complaint documentation,” “Transfer data,” and “Waybill”

Figure 8.63 – Data object
In addition to the name, data objects frequently have a status presented in square brackets after the name. Thanks to this status, we can immediately see what changes our data undergoes due to actions within the process. For example, in our process for the complaint documentation data object, we could define the following states: for analysis, rejected, accepted, and closed. Of course, such a way of modeling takes up more space, but it allows us to describe what happens in our diagram in terms of data in more detail.
To show how data flows between activities within a process, we use data association arrows. Because they have arrowheads at the end, you can immediately see where the data is flowing from and to. Importantly, the data flow doesn’t have to coincide with the process flow, so we can have a sequence of ABCD tasks and a data flow where data comes out of task A and is the input for task D (assuming that it isn’t processed in steps B and C).

Figure 8.64 – Using data associations to show the data flow
It’s also worth mentioning that neither data objects nor data stores (which we’ll deal with in a moment) can be connected with tasks via a sequence flow. This kind of mistake is especially dangerous for people with long flowcharting experience who started using BPMN with simple diagramming tools, which often don’t have built-in rules for correct notation.
Speaking of the data layer in BPMN, it’s good to be aware that a standard type of data object is something that’s processed as part of a given process – a kind of variable held in the computer’s RAM that’s “cleaned up” when the computer is turned off. This means that after a particular process instance is terminated, we have no way to reach this data as it isn’t permanent!
If we want to show that the data in our process is stored permanently, we should use another type of object – a data store. A data store is represented by a database icon (cylinder). Here, you should be aware of another surprise – although its appearance suggests that the data is stored in electronic form, data stores can be used in physical form, such as filing cabinets.

Figure 8.65 – Data store
Data stores can also connect to other diagram elements via data association arrows to show how the data flows. If the diagram is quite large, we may want to avoid too many connectors coming to and from the data store. In this case, it’s possible to insert the data store with the same name several times into different parts of the diagram to increase its readability. If you’re interested in the technical aspects, in this situation, our diagram has one data store definition and several references to this common definition, but this can only be noticed by analyzing the BPMN diagram export file.
Since data stores look like stylized databases and because BPMN doesn’t have anything better to visually represent IT systems used in a process, it’s common to see data stores that represent applications used in a process. Of course, this is usually the case for simple modeling tools that don’t have shared repository mechanisms and dictionary definitions.
The last two types of data objects are used to show data entering and leaving the process. These are called data input and data output, respectively. Since they represent data incoming and outgoing from a process, they don’t share non-permanent characteristics of plain data objects.
The symbols for data input and data output are very similar to those for normal data objects, but they have an additional arrow icon in the top-left corner. As you may expect, the rules of marking activity and passivity in BPMN are kept, so the data input icon (data that enters a process, such as from a preceding process) has a light fill, while the data output icon (data leaving a process, perhaps to another process) has a dark fill.

Figure 8.66 – Data input and data output
In addition to the icons symbolizing types of data objects, there may be another marker – three vertical dashes. This is called a collection. In practice, such a marker can occur when we want to show that we’re working with not one invoice, but a whole bunch of invoices, or that we’re entering multiple items into the CRM system to be included in the offer we want to generate. Often, if we use this marker with data objects, we should consider whether the tasks and sub-processes in our diagram have been described in a way that indicates that more items are being processed. We’ll learn more about this topic in Chapter 9:

Figure 8.67 – Collection
A final interesting aspect related to data objects in BPMN is the accessibility of this data within multi-level process diagram structures. Within a single diagram, the behavior is quite logical as the data object contained in that diagram can be accessed by all activities from that diagram.
But what happens if we insert a sub-process into our diagram that leads to another diagram, which also contains another data object? The data object located in the higher-level diagram will be accessible to all activities in its diagram and the lower-level diagram, but (and this is worth noting) the data object located in the lower-level diagram will only be accessible to the sub-process in the higher-level diagram, activities from its diagram, and possible activities from even lower-level diagrams.
This may have sounded a bit technical, and for good reason – data modeling is a slightly more advanced element of BPMN that’s more useful in diagrams that are created with more sophisticated process analysis in mind. Before using the data objects and stores in diagrams intended to serve as process documentation for a wide audience, we should think carefully about whether it will help us achieve our communication goal.
The same will be true for further elements of notation, something we’ll discuss in the next chapter. They offer many interesting possibilities, but they may not always be intuitive for everyone, so they should be used with caution.
Summary
Section titled “Summary”In this chapter, you learned about the most important elements of BPMN. With the help of BPMN, you can create diagrams that not only serve as process documentation and process analysis but also create the foundation for future process automation programs. The elements we learned about are very popular and most of them should be intuitive for people who read the diagrams, even if they’re not BPMN experts. Usually, it is a good idea to start with a diagram using such easy shapes and iteratively work on it by adding descriptions to the process steps or (when needed) providing more information using additional elements of BPMN.
In the next chapter, we’ll cover more advanced concepts and shapes from BPMN based on what we’ve learned so far.
Further reading
Section titled “Further reading”If you would like to learn more about the concepts covered in this chapter I would suggest checking BPMN Quick and Easy Using Method and Style: Process Mapping Guidelines and Examples Using the Business Process Modeling Standard from Bruce Silver – well known expert.
In addition to the resources for this chapter available on https://github.com/PacktPublishing/Practical-Business-Process-Modeling-and-Analysis/tree/main/Chapter08. I would also recommend checking the official webpage of the standard: https://www.bpmn.org/.