The decision tables

The decision tables are another form of human-readable rules that is useful when there are lots of similar rules with different values. Rules that share the same conditions with different parameters can be captured in a decision table. Decision tables can be represented in an Excel spreadsheet (the .xls file) or a comma-separated value (the .csv file) format. Starting from Version 5.0, Drools supports web-based decision tables as well. They won't be discussed in this book; however, they are very similar. Let's look at a simple decision table in the .xls format.

The decision tables

Figure 4: Example decision table in validation.xls opened with the ...

Get Drools JBoss Rules 5.X Developer's Guide now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.