Decision tables
DMN. A free Flowable lesson in simple English (2:28 minutes).
Open in the academy (practice, progress and notes)
Chapters
- 0:00 What you will learn
- 0:18 Why
- 0:38 The parts
- 1:02 In a process
- 1:24 Practice question 1
- 1:50 Practice question 2
- 2:11 Summary
Lesson text
0:00 What you will learn
Welcome to lesson nineteen. Now we start DMN. Today: decision tables, which keep business rules in one clear place. Rules change often. Decision tables make them easy to read and change. This is an independent course. It is not made or approved by Flowable.
0:18 Why
Imagine a loan process with ten gateways, just to check the amount and the customer's history. It is hard to read, and hard to change. Instead, put the rules in a decision table. The process stays simple, and the rules are in one place. When a rule changes, you change the table, not the whole process.
0:38 The parts
A decision table has three main parts. Input columns hold the facts we check. For example, the loan amount. Output columns hold the result. For example, approval state. Each row is a rule. If all its input conditions match, the rule gives its output. For example: if the amount is less than one hundred thousand, the result is approved.
1:02 In a process
How does a process use a decision table? A user task collects the request, and saves variables such as the amount. A decision task runs the decision table with those variables. The result is saved in a variable. An exclusive gateway uses that variable to choose the next path. So the table decides, and the gateway follows the decision.
1:24 Practice question 1
Question one. Where should you keep rules that change often, such as approval limits? A, in many gateways. B, in a decision table. C, in a pool name. Or D, in an end event.
The answer is B, a decision table. The rules are in one place, and easy to change.
1:50 Practice question 2
Question two. Which BPMN task runs a decision table? A, a script task. B, a decision task. C, a user task. Or D, a call activity.
The answer is B, a decision task.
2:11 Summary
Let's review. Decision tables keep rules in one place. They have inputs, outputs, and rules. A decision task runs the table, and a gateway can use the result. In the next lesson, we will learn about hit policies. Thank you for learning with us.
Practice questions
Where should you keep rules that change often, such as approval limits?
Answer: In a decision table. The rules are in one place, and easy to change.
Which BPMN task runs a decision table?
Answer: A decision task. A decision task runs the table