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

Chapter 5. Understanding KIE Sessions

So far, we have covered what Kie Sessions are and how to create them and interact with them. In this chapter, we are going to dive deeper into some of the advanced configuration options and components available in Drools 6, when configuring and defining a Kie Session.

Before going deeper though, we are going to cover the two flavors of Kie Sessions that are present in Drools: stateless and stateful. The type of Kie Session that we choose for our applications has its advantages and disadvantages, which will eventually determine the way we interact with them—whether it's storing information between calls or satisfying a single use case for our business rules.

Once we have a better understanding of the different types of Kie Sessions provided by Drools, we will move on to some of their configuration aspects. In this section, topics such as globals, channels, and event listeners will be covered. All these elements will allow us to create better applications...