Capture, automate, and reuse your business processes in a clear English language that your computer can understand.
An easy-to-understand JBoss Drools business rules tutorial for non-programmers
Automate your business processes such as order processing, supply management, staff activity, and more
Prototype, test, and implement workflows by themselves using business rules that are simple statements written in an English-like language
Discover advanced features of Drools to write clear business rules that execute quickly
For confident users of Excel or other business software, this book is everything you need to learn JBoss Drools business rules and successfully automate your business.
In business, a lot of actions are trigged by rules: "Order more ice cream when the stock is below 100 units and temperature is above 25° C", "Approve credit card application when the credit background check is OK, past relationship with the customer is profitable, and identity is confirmed", and so on. Traditional computer programming languages make it difficult to translate this "natural language" into a software program. But JBoss Rules (also known as Drools) enables anybody with basic IT skills and an understanding of the business to turn statements such as these into running computer code.
This book will teach you to specify business rules using JBoss Drools, and then put them into action in your business. You will be able to create rules that trigger actions and decisions, based on data that comes from a variety of sources and departments right across your business. Regardless of the size of your business, you can make your processes more effective and manageable by adopting JBoss Rules.
Banks use business rules to process your mortgage (home loan) application, and to manage the process through each step (initial indication of amount available, actual application, approval of the total according to strict rules regarding the amount of income, house value, previous repayment record, swapping title deeds, and so on).
Countries such as Australia apply business rules to visa applications (when you want to go and live there)—you get points for your age, whether you have a degree or masters, your occupation, any family members in the country, and a variety of other factors.
Supermarkets apply business rules to what stock they should have on their shelves and where—this depends upon analyzing factors such as how much shelf space there is, what location the supermarket is in, what people have bought the week before, the weather forecast for next week (for example, ice cream in hot weather), and what discounts the manufacturers are giving.
This book shows how you can use similar rules and processes in your business or organization. It begins with a detailed, clear explanation of business rules and how JBoss Rules supports them.
You will then see how to install and get to grips with the essential software required to use JBoss Rules. Once you have mastered the basic tools, you will learn how to build practical and effective of the business rule systems.
The book provides clear explanations of business rule jargon. You will learn how to work with Decision Tables, Domain-Specifi c Languages (DSL)s, the Guvnor and JBoss Integrated Development Environment (IDE), workflow and much more.
By the end of the book you will know exactly how to harness the power of JBoss Rules in your business.
Table of contents
- JBoss Drools Business Rules
- About the author
- About the reviewer
1. Drooling over JBoss Rules
- Who are you? What's your problem?
- Life or death business rules
- Business rules in your organization
- Why existing solutions don't cut it
- Rule engines to the rescue
- Meet JBoss Rules
- The bigger picture
- How do I write the rules
- Introducing the BRMS (Guvnor)
- Parts of the solution
- When not to use a rule engine
2. Getting the software
What are we going to install?
- Who should install it?
- Installing Java
- Installing JBoss
- Installing the BRMS/Guvnor
- Installing Eclipse
- Installing the Drools plug-in
- Installing Maven
- Installing sample projects for this book
- What are we going to install?
3. Meet the Guvnor
Taking a tour with the Guvnor
- Getting started
- General navigation
- Taking a tour with the Guvnor
- 4. Guided Rules with the Guvnor
5. From Guvnor to JBoss IDE
A more powerful rule
- Have a go
- Updating the rule—step by step
- A small problem...
- More on the guided editor
- Text editing
- Introduction to the JBoss IDE
- Hello World in the JBoss IDE editor
- Try it yourself
- A more powerful rule
6. More rules in the JBoss IDE
- Patterns for the When part
- Patterns for the Then part
- Shipping chocolate bars
- The problem (and remind me why I need business rules)
- Getting and building the sample
- Running the sample
- More powerful rule syntax
- Guided editor in the JBoss IDE
- Rule syntax
7. Testing your Rules
Testing when building rules
- Making testing interesting
- Testing using Guvnor
Testing using FIT
- Getting FIT
- The FIT requirements document
- Running FIT on our sample
- What just happened?
- What can go wrong?
- The FIT plumbing
- What is unit testing?
- What if it goes wrong?
- Testing when building rules
8. Data and Rules in Excel
Reading data from Excel
- Business rules for this sample
- Getting and running the sample
- Sophisticated, but repetitive rules
- Some Excel magic
- Decision tables behind the scenes
- Running the Chocolate Trading example
- Reading data from Excel
9. Domain Specific Language (DSL) and RuleFlow
- What is a Domain Specific Language (DSL)?
10. Deploying Rules in Real Life
- One size fits all architecture
11. Looking under the Cover
- Rule engine concepts
- Back to the future (with chocolate shipping)
- Logging working memory
- Rete algorithm
12. Advanced Drools Features
- Pigeons, Drools, and Complex Event Processing
- Inline beans
- From pigeons to biscuits—Drools Solver for your local supermarket
- New API
- Title: JBoss Drools Business Rules
- Release date: April 2009
- Publisher(s): Packt Publishing
- ISBN: 9781847196064
You might also like
Drools JBoss Rules 5.X Developer's Guide
For Java developers this is the ultimate guide to coding business rules using the Drools platform. …
Kafka Streams in Action: Real-time apps and microservices with the Kafka Streams API
Summary Kafka Streams in Action teaches you everything you need to know to implement stream processing …
Drools Developer's Cookbook
Are you a Drools developer seeking self-improvement? If so, this cookbook could quickly enhance and broaden …
Kafka: The Definitive Guide, 2nd Edition
Every enterprise application creates data, whether it consists of log messages, metrics, user activity, outgoing messages, …