Drools JBoss Rules 5.X Developer’s Guide

For Java developers this is the ultimate guide to coding business rules using the Drools platform. It’s a chance to get a deep grounding in it all through a logical step by step approach using many real-life examples.

Drools JBoss Rules 5.X Developer’s Guide

Starting
Michal Bali

For Java developers this is the ultimate guide to coding business rules using the Drools platform. It’s a chance to get a deep grounding in it all through a logical step by step approach using many real-life examples.
$10.00
$49.99
RRP $29.99
RRP $49.99
eBook
Print + eBook
$12.99 p/month

Get Access

Get Unlimited Access to every Packt eBook and Video course

Enjoy full and instant access to over 3000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

+ Collection
Free Sample

Book Details

ISBN 139781782161264
Paperback338 pages

About This Book

  • Learn the power of Drools as a platform for writing your business rules
  • Integrate Drools into your Java business application using the Spring framework
  • Through real-world examples and solutions, you will be taken from novice to expert

Who This Book Is For

The book is for Java developers who want to create rule-based business logic using the Drools platform.

Table of Contents

Chapter 1: Programming Declaratively
Problems with traditional approaches
The solution
Drools
Summary
Chapter 2: Writing Basic Rules
Rule basics
Rule syntax
Summary
Chapter 3: Validating
Banking domain model
Problem definition
Analysis
Design
Validation package
Implementation
Validation service
Summary
Chapter 4: Transforming Data
Process overview
Getting the data
Writing transformation rules
Transformation results
Implementation of the data loading
Summary
Chapter 5: Creating Human-readable Rules
Domain-specific language
The decision tables
jBPM
Summary
Chapter 6: Working with Stateful Session
StatefulKnowledgeSession
Validation using stateful session
Summary
Chapter 7: Complex Event Processing
CEP and ESP
Drools Fusion
Fraud detection
Summary
Chapter 8: Defining Processes with jBPM
Loan approval service
Loan approval process
Summary
Chapter 9: Building a Sample Application
Users
Architecture
Technologies used
Business logic
Design
Configuration
Repositories
Validation
Loan approval
Summary
Chapter 10: Testing
Writing unit tests for rules
Rule integration testing
Rule acceptance testing
Static analysis of rules
Troubleshooting techniques
Summary
Chapter 11: Integrating
Dynamic KnowledgeBase loading
External artifact building
Drools Camel server
Spring framework integration
Standards
Summary
Chapter 12: Learning about Performance
Rete algorithm
Node sharing
Node indexing
Left and right unlinking
The KnowledgeBase partitioning
Summary

What You Will Learn

  • Quickly get started writing your first rules
  • Produce decision tables
  • Write a domain-specific language to make rules more understandable
  • Create a stateful service
  • Harness the power of flows through process services
  • Fit it all together in a sample web application that uses layered architecture, transactions, Spring, and Hibernate
  • Properly test your applications with Guvnor

In Detail

Writing business rules has always been a challenging task. Business rules tend to change often leading to a maintenance nightmare. This book shows you various ways to code your business rules using Drools, the open source Business Rules Management System.

Drools JBoss Rules 5.X Developer’s Guide shows various features of the Drools platform by walking the reader through several real-world examples. Each chapter elaborates on different aspects of the Drools platform. The reader will also learn about the inner workings of Drools and its implementation of the Rete algorithm.

The book starts with explaining rule basics, then builds on this information by going through various areas like human readable rules, rules for validation, and stateful rules, using examples from the banking domain. A loan approval process example shows the use of the jBPM module. Parts of a banking fraud detection system are implemented with the Drools Fusion module which is the complex event processing part of Drools. Finally, more technical details are shown detailing the inner workings of Drools, the implementation of the ReteOO algorithm, indexing, node sharing, and partitioning.

Authors

Table of Contents

Chapter 1: Programming Declaratively
Problems with traditional approaches
The solution
Drools
Summary
Chapter 2: Writing Basic Rules
Rule basics
Rule syntax
Summary
Chapter 3: Validating
Banking domain model
Problem definition
Analysis
Design
Validation package
Implementation
Validation service
Summary
Chapter 4: Transforming Data
Process overview
Getting the data
Writing transformation rules
Transformation results
Implementation of the data loading
Summary
Chapter 5: Creating Human-readable Rules
Domain-specific language
The decision tables
jBPM
Summary
Chapter 6: Working with Stateful Session
StatefulKnowledgeSession
Validation using stateful session
Summary
Chapter 7: Complex Event Processing
CEP and ESP
Drools Fusion
Fraud detection
Summary
Chapter 8: Defining Processes with jBPM
Loan approval service
Loan approval process
Summary
Chapter 9: Building a Sample Application
Users
Architecture
Technologies used
Business logic
Design
Configuration
Repositories
Validation
Loan approval
Summary
Chapter 10: Testing
Writing unit tests for rules
Rule integration testing
Rule acceptance testing
Static analysis of rules
Troubleshooting techniques
Summary
Chapter 11: Integrating
Dynamic KnowledgeBase loading
External artifact building
Drools Camel server
Spring framework integration
Standards
Summary
Chapter 12: Learning about Performance
Rete algorithm
Node sharing
Node indexing
Left and right unlinking
The KnowledgeBase partitioning
Summary

Book Details

ISBN 139781782161264
Paperback338 pages
Read More