Instant Drools Starter

Book description

The ultimate Starter guide for evaluating rules engines and getting started with Drools

  • Learn something new in an Instant! A short, fast, focused guide delivering immediate results.
  • Discover Drools and learn to harvest the power of rules
  • Write a rules engine and put it into practice
  • Explore key features from brass tacks syntax to testing and troubleshooting

In Detail

Drools is a popular business rule management system. The book introduces the concept of rules separation, from what to do to how to do it. This Starter guide supports your development to keep pace with your system’s ever-changing needs, making things simple and easy by taking the rigidity out of complex codes.

"Instant Drools Starter" is a practical, hand-on guide that provides you with a number of clear and concise explanations with relatable examples. This book offers step-by-step exercises to help you understand business rule management systems. Learn how they work, how they're best used, and how to perform frequently used tasks and techniques.

This Starter guide helps you get familiar with the Drools concept. You will learn to evaluate rules engines and cover all the basics, from rules authoring to troubleshooting. This book highlights the capabilities of the Drools modules.

After discovering exactly what rules are and what a rule engine brings to the table, we will quickly learn how to install Drools. The guide then explores different tools of the trade and gets you writing your first set of rules instantly. We'll then take those rules, write vital codes piece by piece, and put them into action. In addition, with this guide, learn how to document and troubleshoot everything behind the scenes, as well as developing your rules to the next level. "Instant Drools Starter" will cover everything you need to know to get started, so if you are looking for a complete guide that provides simple solutions to complex problems, look no further.

Table of contents

  1. Instant Drools Starter
    1. Instant Drools Starter
    2. Credits
    3. About the Author
    4. About the Reviewer
      1. Support files, eBooks, discount offers and more
      1. Why Subscribe?
      2. Free Access for Packt account holders
    7. 1. Instant Drools Starter
      1. So, what is Drools?
      2. Installation
        1. Step 1 – what do I need?
        2. Step 2 – installing Java
        3. Step 3 – installing Maven
        4. Step 4 – installing Eclipse
        5. Step 5 – installing the Drools Eclipse plugin
        6. And that's it!
      3. Quick start – creating your first rules application
        1. Step 1 – creating a Drools project with the Eclipse plugin
        2. Step 2 – creating a new rules-enabled Maven project from scratch
        3. Step 3 – defining our rules and facts
        4. Step 4 – translating facts into a data model
        5. Step 5 – translating rules into Drools Rule Language
        6. Step 6 – doing something with our rules
      4. Top 5 features you need to know about
        1. Reading and writing Drools Rule Language syntax
          1. Some basics we've used
          2. Some basics we haven't seen yet
          3. Rule attributes
          4. Operators for constraints
          5. Conditional elements for patterns
        2. Working with facts
          1. Manipulating facts in code
          2. Manipulating facts in rules
        3. Testing your rules
        4. Debugging the rule evaluation process
          1. Debugging with the Eclipse plugin
          2. Debugging with listeners
            1. AgendaEventListener
            2. WorkingMemoryEventListener
          3. Inference
        5. The five core modules that make up Drools
          1. jBPM
          2. Drools Expert
          3. Drools Fusion
          4. Drools Guvnor
          5. Drools Planner
      5. People and places you should get to know
        1. Official sites
        2. Community
        3. Twitter

Product information

  • Title: Instant Drools Starter
  • Author(s):
  • Release date: March 2013
  • Publisher(s): Packt Publishing
  • ISBN: 9781782165545