Book Image

Mastering JBoss Drools 6

By : Mariano De Maio, Mauricio Salatino, Esteban Aliverti
Book Image

Mastering JBoss Drools 6

By: Mariano De Maio, Mauricio Salatino, Esteban Aliverti

Overview of this book

Mastering JBoss Drools 6 will provide you with the knowledge to develop applications involving complex scenarios. You will learn how to use KIE modules to create and execute Business Rules, and how the PHREAK algorithm internally works to drive the Rule Engine decisions. This book will also cover the relationship between Drools and jBPM, which allows you to enrich your applications by using Business Processes. You will be briefly introduced to the concept of complex event processing (Drools CEP) where you will learn how to aggregate and correlate your data based on temporal conditions. You will also learn how to define rules using domain-specific languages, such as spreadsheets, database entries, PMML, and more. Towards the end, this book will take you through the integration of Drools with the Spring and Camel frameworks for more complex applications.
Table of Contents (18 chapters)
Mastering JBoss Drools 6
Credits
About the Authors
About the Reviewer
www.PacktPub.com
Preface
Index

Decision tables


If there is a tool every business person—from a CEO to a secretary—knows how to use, it is a spreadsheet. In fact, most of the time, they know more about spreadsheets than most people in the IT department. If one of the goals of Drools is to be a business-oriented rule engine, then what could be better than to provide first-class integration with spreadsheets?

DSLs are very powerful, but, without a proper UI, the users still need to write their rules by themselves. Even if, by using a DSL, the available options to write rules are narrowed down to very specific sentences, the probability of syntax errors, misplaced statements, invalid code, and so on is still high.

Decision tables, on the other hand, provide a much more constrained environment than DSL, thus mitigating most of the risks DSL has.

What is a decision table?

A decision table in Drools is a document stored in an XLS (Microsoft Excel) or CSV (Comma Separated Value) formatted file, which defines a set of rules using...