Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Mastering JBoss Drools 6

You're reading from   Mastering JBoss Drools 6 Discover the power of Drools 6 and Business Rules for developing complex scenarios in your applications

Arrow left icon
Product type Paperback
Published in Mar 2016
Publisher Packt
ISBN-13 9781783288625
Length 330 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Authors (3):
Arrow left icon
Mariano De Maio Mariano De Maio
Author Profile Icon Mariano De Maio
Mariano De Maio
Esteban Aliverti Esteban Aliverti
Author Profile Icon Esteban Aliverti
Esteban Aliverti
Mauricio Salatino Mauricio Salatino
Author Profile Icon Mauricio Salatino
Mauricio Salatino
Arrow right icon
View More author details
Toc

Table of Contents (13) Chapters Close

Preface 1. Rules Declarative Nature 2. Writing and Executing Rules FREE CHAPTER 3. Drools Runtime 4. Improving Our Rule Syntax 5. Understanding KIE Sessions 6. Complex Event Processing 7. Human-Readable Rules 8. Rules' Testing and Troubleshooting 9. Introduction to PHREAK 10. Integrating Rules and Processes 11. Integrating Drools with our Apps Index

What this book covers

Chapter 1, Rules Declarative Nature, talks about what the reader will need to understand about rules to apply them to a project of their own. In short, it will cover the main structure of rules and why said structure is so useful for solving complex problems, along with some of the problems usually solved using rules. Also, we'll explain how rules adjust within the development life cycle.

Chapter 2, Writing and Executing Rules, concentrates on creating a project with rules defined in a simple text file in order to understand both the basic components of rules and all the parts involved in a Drools rule project. This chapter also covers the basics of installing the necessary libraries to work with Drools in a project.

Chapter 3, Drools Runtime, concentrates on the KIE modules (Knowledge Is Everything modules) that are needed to create a rule environment and how to use them to create a rule runtime. All the different ways of creating a runtime for rules are introduced in this chapter.

Chapter 4, Improving Our Rule Syntax, teaches the concepts we need to understand the basic technical syntax used to define Business Rules in Drools. This chapter concentrates on learning about rule attributes, such as salience, lock-on-active, agenda-groups, and so on, which give a lot more control over which rules are to be fired and when. Also, we'll learn about the from clause of rules, which allows for different sources of data for evaluating our rule conditions.

Chapter 5, Understanding KIE Sessions, starts with an introduction to the different types of session supported by Drools. It then covers many of the different components that can be added to the session to make it register, alter, or change our rules execution, such as global variables, channels, event listeners, operators, and accumulate functions.

Chapter 6, Complex Event Processing, gives a brief introduction to the Complex Event Processing (CEP) concept and how Drools allows us to work with complex events. It covers features such as events, type declarations, temporal operators, sliding windows, and other components of Drools for detecting and managing complex events.

Chapter 7, Human Readable Rules, explains human readable ways to define our rules, such as Domain Specific Language (DSL), Decision Tables, and Templates. They allow the user to create a mapping between the rule language (highly technical) and the specific language that domain experts can easily understand. These mappings will allow business users to be able to define and modify rules without much knowledge of the technical aspects of Drools.

Chapter 8, Rules Testing and Troubleshooting, explains what the different challenges of testing Drools' rules are. It gives an overview of the possible errors and problematic scenarios we may find when testing our application. A set of good practices and techniques to identify and mitigate these problems is also provided in this chapter.

Chapter 9, Introduction to PHREAK, is an introduction to the underlying algorithm Drools uses for the evaluation of business rule assets. It provides an overview of how a Knowledge Base is converted into a PHREAK network composed of specialized nodes that perform different kinds of task, such as classification, constraint evaluation, and join operations. This chapter provides concrete examples on how rules are compiled and evaluated, covering some of the most used patterns and operators in PHREAK.

Chapter 10, Integrating Rules and Processes, goes into detail about the workflow aspect of rules. Specifically, it covers how rules can invoke processes and vice versa. In this chapter, we will also cover the aspects required for implementing a persistent Kie Session, to be used (and reused) both for Rules and for Processes execution.

Chapter 11, Integrating Drools with our Apps, shows integration with the Spring and Camel frameworks, in order to integrate Drools in more complex applications. It also shows us how to make changes to our rules while the application runs and how to make services to invoke rules remotely, using a component called Kie Execution Server.

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image