Entry and exit sentries
CMMN. A free Flowable lesson in simple English (2:42 minutes).
Open in the academy (practice, progress and notes)
Chapters
- 0:00 What you will learn
- 0:15 Two kinds of sentries
- 0:36 Entry sentries
- 0:52 Event or condition
- 1:15 Exit sentries
- 1:27 Practice question 1
- 1:57 Practice question 2
- 2:22 Summary
Lesson text
0:00 What you will learn
Welcome to lesson sixteen. Sentries are one of the most important ideas in CMMN, and they appear often in the exam. A sentry is like a guard at a door. This is an independent course. It is not made or approved by Flowable.
0:15 Two kinds of sentries
There are two kinds of sentries. Both are drawn as small diamonds on the border of a plan item. An entry sentry controls when a plan item can start. It is drawn as a white diamond. An exit sentry controls when a plan item stops. It is drawn as a black diamond. So: white diamond, enter. Black diamond, exit.
0:36 Entry sentries
A plan item with an entry sentry does not start straight away. It waits as available. It starts when the sentry is satisfied. For example, start Pay the money, when Check the claim is complete. A dotted line connects the sentry to the item it listens to.
0:52 Event or condition
A sentry can use an event, a condition, or both. The on part listens for an event. For example, a task completes. The if part checks a condition. For example, the amount is more than one thousand. When a sentry has both, it is satisfied only when the event happens, and the condition is true.
1:15 Exit sentries
An exit sentry stops a plan item. For example, if the customer cancels, stop the whole stage. You can put an exit sentry on a task, on a stage, or on the whole case.
1:27 Practice question 1
Question one. Task B should start only after Task A is completed. What do you add to Task B? A, an exit sentry. B, an entry sentry that listens for Task A completing. C, a pool. Or D, a milestone.
The answer is B. An entry sentry controls when Task B can start.
1:57 Practice question 2
Question two. Which sentry is drawn as a black diamond, and stops a plan item? A, an entry sentry. B, an exit sentry. C, a milestone. Or D, a timer.
The answer is B, an exit sentry. White diamonds are entry sentries.
2:22 Summary
Let's review. Entry sentries, the white diamonds, control when an item starts. Exit sentries, the black diamonds, stop it. A sentry can wait for an event, check a condition, or both. In the next lesson, we will learn about manual activation, required, and repetition. Thank you for learning with us.
Practice questions
Task B should start only after Task A is complete. What should you add to Task B?
Answer: An entry sentry that listens for Task A. An entry sentry controls when Task B can start.
Which sentry is a black diamond, and stops a plan item?
Answer: An exit sentry. White diamonds are entry sentries.