Mastering JBoss Drools 6

Discover the power of Drools 6 and Business Rules for developing complex scenarios in your applications

Mastering JBoss Drools 6

This ebook is included in a Mapt subscription
Mauricio Salatino, Mariano De Maio, Esteban Aliverti

3 customer reviews
Discover the power of Drools 6 and Business Rules for developing complex scenarios in your applications
$39.99
$49.99
RRP $39.99
RRP $49.99
eBook
Print + eBook
Subscribe and access every Packt eBook & Video.
 
  • 4,000+ eBooks & Videos
  • 40+ New titles a month
  • 1 Free eBook/Video to keep every month
Find out moreStart Free Trial
 
Preview in Mapt

Book Details

ISBN 139781783288625
Paperback330 pages

Book Description

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

Chapter 1: Rules Declarative Nature
What are rules?
Why do we use rules?
When should we use rules?
When not to use a rule engine
Summary
Chapter 2: Writing and Executing Rules
Setting up our environment
Creating our first Drools project
Writing and executing our first rule
The Rule language
Organizing our projects
Summary
Chapter 3: Drools Runtime
Understanding the Drools runtime instances
KieModule configurations (KieBases, KieSessions & StatelessKieSessions)
KieScanner
Summary
Chapter 4: Improving Our Rule Syntax
Adding external interactions with global variables
Modifying the data in the working memory
Rule attributes
Controlling loops in rules
Special Drools operations
Working memory breakdown: the from clause
Drools syntactic sugar
Decorating our objects in memory
Logical insertion of elements
Rule inheritance
Summary
Chapter 5: Understanding KIE Sessions
Stateless and stateful Kie Sessions
Kie runtime components
Kie Base components
Summary
Chapter 6: Complex Event Processing
What is complex event processing?
Declaring CEP-based Rules
Event-driven architecture
Running CEP-based Scenarios
Drools CEP limitations
Summary
Chapter 7: Human-Readable Rules
Domain Specific Languages
Decision tables
Rule templates
PMML
Summary
Chapter 8: Rules' Testing and Troubleshooting
Create loosely coupled DRLs
Prefer KieHelper over a KieContainer classpath
Benefits of using globals
Debugging the left-hand side of a rule
Debugging the right-hand side of a rule
Reporting a bug in Drools
Summary
Chapter 9: Introduction to PHREAK
Introducing PHREAK
Special nodes in the network
Queries and backward-chaining
PHREAK improvements over RETE
Phreak Inspector
Summary
Chapter 10: Integrating Rules and Processes
jBPM – the process engine
Simple business process example
Drools and jBPM: integration patterns
Persistence and transactions
Summary
Chapter 11: Integrating Drools with our Apps
Architecture considerations
Integrating with the rest of an application
CDI integration
Spring integration
Camel integration
Kie Execution Server
Kie Workbench
Drools and beyond: extending our functionality
Summary

What You Will Learn

  • Automate your application’s decisions, such as promotion applying, discount policies, fraud detection, and more.
  • Quickly get started with writing your first rules using the DRL full syntax.
  • Discover the power of the new syntax components of the rule language.
  • Define inferences in your business rules to simplify complex decisions.
  • Write decision tables, templates,domain-specific languages, and scorecards, and learn how to map them to the Drools framework.
  • Harness the full operational power of Drools through all of its configuration points.
  • Use Drools configurations and architectures for different environments and scenarios.

Authors

Table of Contents

Chapter 1: Rules Declarative Nature
What are rules?
Why do we use rules?
When should we use rules?
When not to use a rule engine
Summary
Chapter 2: Writing and Executing Rules
Setting up our environment
Creating our first Drools project
Writing and executing our first rule
The Rule language
Organizing our projects
Summary
Chapter 3: Drools Runtime
Understanding the Drools runtime instances
KieModule configurations (KieBases, KieSessions & StatelessKieSessions)
KieScanner
Summary
Chapter 4: Improving Our Rule Syntax
Adding external interactions with global variables
Modifying the data in the working memory
Rule attributes
Controlling loops in rules
Special Drools operations
Working memory breakdown: the from clause
Drools syntactic sugar
Decorating our objects in memory
Logical insertion of elements
Rule inheritance
Summary
Chapter 5: Understanding KIE Sessions
Stateless and stateful Kie Sessions
Kie runtime components
Kie Base components
Summary
Chapter 6: Complex Event Processing
What is complex event processing?
Declaring CEP-based Rules
Event-driven architecture
Running CEP-based Scenarios
Drools CEP limitations
Summary
Chapter 7: Human-Readable Rules
Domain Specific Languages
Decision tables
Rule templates
PMML
Summary
Chapter 8: Rules' Testing and Troubleshooting
Create loosely coupled DRLs
Prefer KieHelper over a KieContainer classpath
Benefits of using globals
Debugging the left-hand side of a rule
Debugging the right-hand side of a rule
Reporting a bug in Drools
Summary
Chapter 9: Introduction to PHREAK
Introducing PHREAK
Special nodes in the network
Queries and backward-chaining
PHREAK improvements over RETE
Phreak Inspector
Summary
Chapter 10: Integrating Rules and Processes
jBPM – the process engine
Simple business process example
Drools and jBPM: integration patterns
Persistence and transactions
Summary
Chapter 11: Integrating Drools with our Apps
Architecture considerations
Integrating with the rest of an application
CDI integration
Spring integration
Camel integration
Kie Execution Server
Kie Workbench
Drools and beyond: extending our functionality
Summary

Book Details

ISBN 139781783288625
Paperback330 pages
Read More
From 3 reviews

Read More Reviews

Recommended for You