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.
Preview in Mapt

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
$10.00
RRP $29.99
Save 66%
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
$10.00
$49.99
$29.99 p/m after trial
RRP $29.99
RRP $49.99
Subscription
eBook
Print + eBook
Start 30 Day Trial

Frequently bought together


Drools JBoss Rules 5.0 Developer's Guide Book Cover
Drools JBoss Rules 5.0 Developer's Guide
$ 29.99
$ 10.00
Reactive Programming in Spring 5.0 Book Cover
Reactive Programming in Spring 5.0
$ 39.99
$ 10.00
Buy 2 for $20.00
Save $49.98
Add to Cart

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

Drools Developer's Cookbook Book Cover
Drools Developer's Cookbook
$ 26.99
$ 10.00
UML 2.0 in Action: A project-based tutorial  Book Cover
UML 2.0 in Action: A project-based tutorial
$ 20.99
$ 10.00
Google Web Toolkit 2 Application Development Cookbook Book Cover
Google Web Toolkit 2 Application Development Cookbook
$ 23.99
$ 10.00
Getting started with IntelliJ IDEA Book Cover
Getting started with IntelliJ IDEA
$ 20.99
$ 10.00
Java EE 7 Developer Handbook Book Cover
Java EE 7 Developer Handbook
$ 35.99
$ 10.00
Oracle Primavera P6 Version 8: Project and Portfolio Management Book Cover
Oracle Primavera P6 Version 8: Project and Portfolio Management
$ 35.99
$ 10.00