Drools Developer’s Cookbook

Drools Developer’s Cookbook
eBook: $26.99
Formats: PDF, PacktLib, ePub and Mobi formats
save 15%!
Print + free eBook + free PacktLib access to the book: $71.98    Print cover: $44.99
save 37%!
Free Shipping!
UK, US, Europe and selected countries in Asia.
Also available on:
Table of Contents
Sample Chapters
  • Master the newest Drools Expert, Fusion, Guvnor, Planner and jBPM5 features
  • Integrate Drools by using popular Java Frameworks
  • Part of Packt’s Cookbook series: each recipe is independent and contains practical, step-by-step instructions to help you achieve your goal.

Book Details

Language : English
Paperback : 310 pages [ 235mm x 191mm ]
Release Date : January 2012
ISBN : 1849511969
ISBN 13 : 9781849511964
Author(s) : Lucas Amador
Topics and Technologies : All Books, Enterprise Products and Platforms, Cookbooks, JBoss, Open Source

Table of Contents

Chapter 1: Expert: The Rule Engine
Chapter 2: Expert: Behind the Rules
Chapter 3: Guvnor: Centralized Knowledge Management
Chapter 4: Guvnor: Advanced Features and Configuration
Chapter 5: Fusion: Processing Complex Events
Chapter 6: Executing Drools Remotely
Chapter 7: Integration: How to Connect Drools
Chapter 8: Planner: Optimizing Your Automated Planning
Chapter 9: jBPM5: Managing Business Processes
  • Chapter 1: Expert: The Rule Engine
    • Introduction
    • Declaring facts in the engine
    • Declaring facts using XML
    • Adding logging to view rules execution behavior
    • Using timer-based rules
    • Implementing calendar-based rules
    • Monitoring query changes in real time
    • Chapter 2: Expert: Behind the Rules
      • Introduction
      • Marshalling knowledge sessions
      • Using persistence to store knowledge
      • How to discard duplicated facts on insertion
      • Using a custom classloader in a knowledge agent
      • Verifying the quality of rules with the Drools Verifier
      • Monitoring knowledge with JMX
      • Chapter 3: Guvnor: Centralized Knowledge Management
        • Introduction
        • Creating our model definition with the Model Editor
        • Importing our model definition
        • Creating data enumerations
        • Using From Collect patterns in the Guided BRL Editor
        • Organizing knowledge with Working Sets
        • Creating rules templates
        • Creating knowledge snapshots
          • Chapter 5: Fusion: Processing Complex Events
            • Introduction
            • How to declare our facts as events
            • Testing our application using a pseudo-clock
            • Entry-points: What they are and how we can use them
            • Setting up event stream processing mode
            • Sliding Windows
            • Event correlations using temporal operators
            • Chapter 6: Executing Drools Remotely
              • Introduction
              • Knowledge services and multiple endpoints configuration
              • Deploying the Drools Server in JBoss AS 5.x
              • Creating commands with XStream marshallers
              • Using the REST interface to execute commands
              • Testing the SOAP interface with soapUI
              • Chapter 7: Integration: How to Connect Drools
                • Introduction
                • Setting up Drools using Spring Framework
                • Configuring JPA to persist our knowledge with Spring Framework
                • Integrating Apache Camel in your project
                • Configuring Apache Camel with Spring Framework
                • Executing Drools commands from a JMS queue
                  • Chapter 9: jBPM5: Managing Business Processes
                    • Introduction
                    • Creating a business process manually
                    • Testing your business processes
                    • Creating and executing human tasks
                    • Monitoring a process activity and creating reports
                    • Monitoring a business process with Drools Fusion

                    Lucas Amador

                    Lucas Amador is a Software Developer born and raised in Buenos Aires, Argentina. His Open Source interest started since young. However, he finally got fully involved in 2008 while working with a JBoss partner and providing consultancy and developing software using the JBoss middleware platform for telco, financial and other such companies. At this time he obtained the Sun Java Developer and JBoss Advanced Developer certifications. He started getting involved in the JBoss Drools community through the Google Summer of Code 2009 program by implementing a refactoring module for the Eclipse Drools Plugin, and since then he is a jBPM5/Drools committer where spend his time implementing new features and fixing bugs. Lucas works as a freelance developer and is always looking something interesting to work in.
                    Sorry, we don't have any reviews for this title yet.

                    Code Downloads

                    Download the code and support files for this book.

                    Submit Errata

                    Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.

                    Sample chapters

                    You can view our sample chapters and prefaces of this title on PacktLib or download sample chapters in PDF format.

                    Frequently bought together

                    Drools Developer’s Cookbook +    Oracle Certified Associate, Java SE 7 Programmer Study Guide =
                    50% Off
                    the second eBook
                    Price for both: $39.00

                    Buy both these recommended eBooks together and get 50% off the cheapest eBook.

                    What you will learn from this book

                    • Use Drools Guvnor for rules authoring and configuration
                    • Configure different ways to store your knowledge using Marshallers, and JPA with Spring
                    • Understand how to add complex event processing capabilities to a project
                    • Take full advantage of the remote rules execution using the Drools Server.
                    • Integrate Drools with the Apache Camel Project using the Spring Framework
                    • Monitor Drools knowledge bases and sessions using JMX.
                    • Implement automated planning using Drools Planner
                    • Migrate and learn new features included in jBPM5.

                    In Detail

                    JBoss Drools is an open source business rules engine that provides agility and flexibility to your business logic. Drools 5 has evolved to provide a unified and integrated platform for business rules, business processes, event processing and automated planning. With this book in hand you will be able to use any of these modules and their specific features quickly and with ease.

                    Drools Developer Cookbook will help you to apply the latest community features to your projects. You will learn about all the Drools modules - Guvnor, Fusion, Expert, and Planner - along with jBPM5 and integration capabilities. The straightforward recipes will help you to implement even more rules in your projects and take you to a new level with the Drools platform.

                    This book teaches you how to create a more robust business rules implementation, starting with tips on how to write business rules manually, or by using the newest Guvnor rule editors. You will learn how your rules can be integrated with another framework to create a full solution and discover how to use complex features such as event processing. The recipes cover all of the Drools modules and will help you to solve problems with planning, remote execution, and much more.


                    Part of Packt’s cookbook series, this book is packed with easy to follow recipes containing step-by-step instructions. The book is designed in such a way that you can read it chapter by chapter, or refer to the tasks in no particular order.

                    Who this book is for

                    This book is for Drools developers who want to improve their current working methods and discover new features to apply to their projects. Readers are expected to be familiar with the basics of the Drools platform as well as Java.

                    Code Download and Errata
                    Packt Anytime, Anywhere
                    Register Books
                    Print Upgrades
                    eBook Downloads
                    Video Support
                    Contact Us
                    Awards Voting Nominations Previous Winners
                    Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
                    Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software