Drools JBoss Rules 5.0 Developer's Guide

As a Java developer, you can make life a lot easier by using Drools to implement business rules. This book shows you how with clear instructions across the whole range of efficiencies the platform provides.

Drools JBoss Rules 5.0 Developer's Guide

Michal Bali

As a Java developer, you can make life a lot easier by using Drools to implement business rules. This book shows you how with clear instructions across the whole range of efficiencies the platform provides.
Mapt Subscription
FREE
$29.99/m after trial
eBook
$21.00
RRP $29.99
Save 29%
Print + eBook
$49.99
RRP $49.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$21.00
$49.99
$29.99p/m after trial
RRP $29.99
RRP $49.99
Subscription
eBook
Print + eBook
Start 30 Day Trial
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 
Preview in Mapt

Book Details

ISBN 139781847195647
Paperback320 pages

Book Description

Business rules can help your business by providing a level of agility and flexibility. As a developer, you will be largely responsible for implementing these business rules effectively, but implementing them systematically can often be difficult due to their complexity. Drools, or JBoss Rules, makes the process of implementing these rules quicker and handles the complexity, making your life a lot easier!

This book guides you through all of the features of Drools, such as dynamic rules, the event model, and Rete implementation with high performance indexing. It will help you to set up the JBoss Rules platform and start creating your own business. It's easy to start developing with Drools if you follow its real-world examples that are intended to make your life easier.

Starting with an introduction to the basic syntax that is essential for writing rules, the book will guide you through validation and human-readable rules that define, maintain, and support your business agility. As a developer, you will be expected to represent policies, procedures and. constraints regarding how an enterprise conducts its business; this book makes it easier by showing you it can be done.

A real-life example of a banking domain allows you to see how the internal workings of the rules engine operate. A loan approval process example shows the use of the Drools Flow module. Parts of a banking fraud detection system are implemented with Drools Fusion module, which is the Complex Event Processing part of Drools. This in turn, will help developers to work on preventing fraudulent users from accessing systems in an illegal way.

Finally, more technical details are shown on the inner workings of Drools, the implementation of the ReteOO algorithm, indexing, node sharing, and partitioning.

Table of Contents

Chapter 1: Introduction
Problems with traditional approaches
The solution
Drools
Alternatives to Drools
Summary
Chapter 2: Basic Rules
Rule basics
Rule syntax
Summary
Chapter 3: Validation
Banking domain model
Problem definition
Analysis
Design
Validation package
Implementation
Validation service
Summary
Chapter 4: Data Transformation
Process overview
Getting the data
Writing transformation rules
Transformation results
Implementation of the data loading
Summary
Chapter 5: Human-readable Rules
Domain Specific Language
Decision tables
Drools Flow
Summary
Chapter 6: Stateful Session
Introduction to stateful session
Validation using stateful session
Summary
Chapter 7: Complex Event Processing
CEP and ESP
Drools Fusion
Fraud detection
Summary
Chapter 8: Drools Flow
Loan approval service
Loan approval ruleflow
Summary
Chapter 9: Sample Application
Users
Architecture
Technologies used
Business logic
Design
Configuration
Repositories
Validation
Loan approval
Summary
Chapter 10: Testing
How to write unit tests for rules
Rule integration testing
Rule acceptance testing
Static analysis of rules
Troubleshooting techniques
Summary
Chapter 11: Integration
Dynamic KnowledgeBase loading
External artifact building
Drools execution server
Spring Framework integration
Standards
Summary
Chapter 12: Performance
Rete algorithm
Node sharing
Node indexing
KnowledgeBase partitioning
Summary

What You Will Learn

  • Write more efficient business rules, and work with the Rete algorithm, node indexing, node sharing, and parallelization
  • Create a WS-HumanTask-compliant WorkItem in a process (workflow)
  • Implement concurrency control in cross-cutting functionalities to manage code easily
  • Write human-readable rules, and Domain Specific Language for your rules to easily understand and verify them
  • Generate a stateful service by using a stateful knowledge session that maintains state between invocations and teaches you how to transactionally persist this service
  • Develop dynamic remote knowledge-base loading to change rules in your application without even stopping it
  • Prepare decision tables for calculating account interest rates
  • Integrate Drools within your Java business application, and integrate it with the Spring framework

Authors

Table of Contents

Chapter 1: Introduction
Problems with traditional approaches
The solution
Drools
Alternatives to Drools
Summary
Chapter 2: Basic Rules
Rule basics
Rule syntax
Summary
Chapter 3: Validation
Banking domain model
Problem definition
Analysis
Design
Validation package
Implementation
Validation service
Summary
Chapter 4: Data Transformation
Process overview
Getting the data
Writing transformation rules
Transformation results
Implementation of the data loading
Summary
Chapter 5: Human-readable Rules
Domain Specific Language
Decision tables
Drools Flow
Summary
Chapter 6: Stateful Session
Introduction to stateful session
Validation using stateful session
Summary
Chapter 7: Complex Event Processing
CEP and ESP
Drools Fusion
Fraud detection
Summary
Chapter 8: Drools Flow
Loan approval service
Loan approval ruleflow
Summary
Chapter 9: Sample Application
Users
Architecture
Technologies used
Business logic
Design
Configuration
Repositories
Validation
Loan approval
Summary
Chapter 10: Testing
How to write unit tests for rules
Rule integration testing
Rule acceptance testing
Static analysis of rules
Troubleshooting techniques
Summary
Chapter 11: Integration
Dynamic KnowledgeBase loading
External artifact building
Drools execution server
Spring Framework integration
Standards
Summary
Chapter 12: Performance
Rete algorithm
Node sharing
Node indexing
KnowledgeBase partitioning
Summary

Book Details

ISBN 139781847195647
Paperback320 pages
Read More

Read More Reviews

Recommended for You

Responsive Web Design with HTML5 and CSS3 Book Cover
Responsive Web Design with HTML5 and CSS3
$ 23.99
$ 4.80
Mastering Joomla! 1.5 Extension and Framework Development Second Edition Book Cover
Mastering Joomla! 1.5 Extension and Framework Development Second Edition
$ 29.99
$ 21.00
Joomla! 1.5 Templates Cookbook  Book Cover
Joomla! 1.5 Templates Cookbook
$ 23.99
$ 16.80
Learning jQuery, Third Edition Book Cover
Learning jQuery, Third Edition
$ 23.99
$ 16.80
Learning Joomla! 1.5 Extension Development Book Cover
Learning Joomla! 1.5 Extension Development
$ 31.99
$ 22.40
jQuery UI 1.7: The User Interface Library for jQuery  Book Cover
jQuery UI 1.7: The User Interface Library for jQuery
$ 26.99
$ 18.90