A more powerful Decision node – Decision Tables
In Chapter 1, Wrestling with Excel? You Are Not Alone, we introduced business rules as decisions we can make using a when … then
format, for example; When time is AM – say
Good morning
.
We are likely to have more than one business rule - otherwise, why bother using a rule engine? Decision tables are just a format to write multiple, similar business rules in a table format, like this:
First |
Input Value 1 |
Input Value 2 |
Output |
1 |
When value1 = “Something” |
AND value2 > 100 |
“Matched” |
OR 2 |
When value1 = “Completely different” |
AND value 2<100 |
“... |