You are on page 1of 10

DECISION TABLES

A decision table is a compact, tabular representation of a set of rules.

Each numbered row is a rule and each column represents one of the conditions of that rule in an input
expression.
When all the conditions in a particular rule evaluate to be true for a set of input data, the output label
specified for that rule is selected.
In case multiple rules apply to a specific context, the HIT INDICATOR defines which one must be used
(or in what order in case of multiple outputs).
Decision Tables are part of DMN (Decision Model and Notation) standardized by OMG.
To get the full specification, go to https://www.omg.org/spec/DMN

This file presents a useful template to create Decision Tables and some examples based on Maria's
Chocolate Candies study case.

contributed by Fabrício Laguna


Info
Input Expression 1 Input Expression 2
U
Possible Inputs Possible Inputs

contributed by Fabrício Laguna


Information Item Name
Input Expression 3 Input Expression 4 Input Expression 5

Possible Inputs Possible Inputs Possible Inputs


Input Expression 6 Input Expression 7 Output Label

Possible Outputs,
Possible Inputs Possible Inputs
Default Value
Eligible order

Customer Type Worth it


U
VIP, Regular, Poor, Bad Yes / No

1 VIP -

2 Regular Yes

3 Poor No

4 Bad -

contributed by Fabrício Laguna


Eligible

Yes / No

Yes

Yes

No

No
Order Worth it

Requested Quantity Requested Deadline


U
Number Number

1 < 100 -

2 > 1000 -

3 Between 100 and 1000 < 1 day

4 Between 100 and 1000 ≥ 1 day

contributed by Fabrício Laguna


Worth It

Yes / No

No

No

No

Yes
Customer Type

Customer ID Payer Profile


U
Text Good Payer, Unknown, Swindler

1 Mrs. Jonson -

2 Customer W Good Payer

3 New Customer X Unknown

4 Potential Customer Y Unknown

5 Potential Customer Z Swindler

contributed by Fabrício Laguna


er Type

Has Reference Type

Yes / No VIP, Regular, Bad

- VIP

- Regular

Yes Regular

No Bad

- Bad

You might also like