Home / Flowable / Lesson 9

Exclusive, parallel, inclusive gateways

BPMN. A free Flowable lesson in simple English (3:05 minutes).

See it in the app

The same topic, shown in the real application.

Open in the academy (practice, progress and notes)

Chapters

Lesson text

0:00 What you will learn

Welcome to lesson nine. Gateways decide where a process goes next. They are drawn as diamonds. This is one of the most important exam topics. We will learn four kinds of gateways. This is an independent course. It is not made or approved by Flowable.

0:16 Exclusive gateway

An exclusive gateway chooses only one path. The conditions are written on the arrows that leave the gateway, not on the gateway itself. What if two conditions are true? In Flowable, the path that was defined first is taken. Good models should never let this happen. What if no condition is true? The process gets stuck. To prevent this, mark one arrow as the default flow. It is used when no other condition is true. Remember: exclusive means exactly one path.

0:45 Parallel gateway

A parallel gateway starts all its outgoing paths at the same time. It has no conditions. To bring the paths together again, use another parallel gateway. It waits until all paths have arrived. For example, a new employee needs a laptop, and an email account. Both happen at the same time. The process continues when both are done.

1:04 Inclusive gateway

An inclusive gateway checks all its conditions. Every path with a true condition is taken. For example, an insurance claim might need a doctor's report, a police report, or both. When the paths join again, the joining inclusive gateway waits only for the paths that were started. Design it so that at least one path is always taken.

1:23 Event-based gateway

An event-based gateway does not check data. Instead, it waits for events. For example, we send a code to a customer. Then we wait for their reply message, or for five minutes to pass. Whichever event happens first decides the path. The other path is no longer used.

1:40 Practice question 1

Question one. An exclusive gateway has three outgoing paths. Two conditions are true. In Flowable, what happens? A, both paths are taken. B, the path that was defined first is taken. C, the process ends. Or D, the default flow is taken.

The answer is B. Flowable takes the path that was defined first. But a good model should never allow this.

2:09 Practice question 2

Question two. A parallel gateway starts three tasks. A joining parallel gateway waits for them. Two tasks are done. What happens? A, the process continues. B, it keeps waiting for the third task. C, the third task is cancelled. Or D, the process restarts.

The answer is B. A joining parallel gateway waits for all its paths.

2:40 Summary

Let's review. Exclusive means one path. If no condition is true, use a default flow. Parallel means all paths, and the join waits for all. Inclusive means one or more paths. Event-based means the first event wins. In the next lesson, we will learn about pools, lanes and the default flow. Thank you for learning with us.

Practice questions

An exclusive gateway has 3 paths, and 2 conditions are true. In Flowable, what happens?

Answer: The path that was defined first is taken. Flowable takes the path that was defined first. But a good model should never allow this.

A joining parallel gateway waits for 3 tasks. Two are done. What happens?

Answer: It waits for the third task. A joining parallel gateway waits for all its paths.

Sources