Home / Flowable / Lesson 12

Timers, messages, errors

BPMN. A free Flowable lesson in simple English (2:49 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 twelve. Real processes must handle waiting, news from outside, and problems. Today we learn how. We will also learn about boundary events, which are events attached to a task. This is an independent course. It is not made or approved by Flowable.

0:17 Three triggers

Here are three common triggers. Each has its own small symbol inside the event circle. A timer reacts to time. For example, wait two days. A message reacts when a message arrives. For example, the customer replies. An error catches a named error, thrown from inside. For example, the payment failed.

0:39 Boundary events

A boundary event is attached to the border of a task, or a subprocess. It watches that activity while it is running. For example, a manager has two days to approve. A timer on the border of the task can react after two days. An error boundary event can catch an error thrown inside a subprocess. Then the process follows the error path.

1:00 Interrupting or not?

Boundary events can work in two ways. This is an important exam topic. An interrupting event stops the task, and the process follows the new path. It has a solid border. A non-interrupting event keeps the task running, and also starts the new path. It has a dashed border. For example, after two days, you can stop the task and send it to a director. Or you can send a reminder, and keep the task open.

1:28 Practice question 1

Question one. After two days, a manager should get a reminder, but the approval task must stay open. What should you use? A, an interrupting timer boundary event. B, a non-interrupting timer boundary event. C, an end event. Or D, a lane.

The answer is B. A non-interrupting event starts a new path, and the task keeps running.

1:59 Practice question 2

Question two. A payment step inside a subprocess can fail with a named error. How can the main process catch it? A, an error boundary event on the subprocess. B, a lane. C, a pool. Or D, a script task.

The answer is A. An error boundary event catches an error thrown from inside.

2:27 Summary

Let's review. Timers react to time, messages to news from outside, and errors to named problems. Boundary events are attached to a task or subprocess. Interrupting events stop the task. Non-interrupting events let it keep running. In the next lesson, we will practise reading processes. Thank you for learning with us.

Practice questions

After 2 days, send a reminder, but keep the approval task open. What should you use?

Answer: A non-interrupting timer boundary event. A non-interrupting event starts a new path, and the task keeps running.

A step inside a subprocess can throw a named error. How can the main process catch it?

Answer: An error boundary event on the subprocess. An error boundary event catches an error thrown from inside.

Sources