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

Summary


After reading this chapter, you should have a better understanding of why debugging and testing our rules in Drools is, most of the time, not trivial. The declarative nature of Drools might be a double-edged sword—very powerful for knowledge declaration but not so easy to test. Errors in the rules were categorized according to their source and cause and a detailed explanation on how they can be prevented or mitigated was also included. The chapter also provided a list of good practices and techniques to make the whole process easier. The techniques that were covered involved the use of global variables, event listeners, loggers, and some other good practices to both simplify and enhance the overall testing experience in Drools.

This chapter also introduced some concepts such as the PHREAK network and its nodes that serve as a kick off for the next chapter. Let's move to the next chapter and start talking about Drools' internals.