O'Reilly logo

Drools JBoss Rules 5.X Developer's Guide by Michal Bali

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required