Home arrow Blog arrow 2008 arrow 03 arrow 24 arrow Drools, Java code, business rules and decision automation
24th March 2008

Drools, Java code, business rules and decision automation

James Taylor Posted by James Taylor

The nice folks on the Drools blog pointed me to an article today called Implement business logic with the Drools rules engine. This article was written by Ricardo Olivieri of IBM. Richard does a nice job of walking through both the basic case for using a business rules engine (BRE). I feel compelled to make a couple of points, though, before recommending it to you:

  • Richard’s example only discuss decisions and the management of decisions implicitly.
    His example revolves around a decision, as most good rules examples do, but I would have called out the focus on the “which tests does this machine require” decision. Note that it is a decision for a specific machine that is being automated and this transactional focus is typical.
  • While it shows the power of declarative programming it does not show the user engagement
    One of the many reasons for using business rules is the power of the approach to bring business analysts and business users more directly into the process. While the Drools syntax is nice and declarative, it is a little user-hostile still. I am not sure the text engineers would feel comfortable editing the rules themselves. In general users need some “protection” from this level of detail to get engaged and this typically means templates and custom UIs as discussed here in our wiki.
  • The importance of decision management did not come through
    While Richard talked about change and agility, he did not put much focus in the article on the ongoing management of the decision and the rules that support it. In most implementations this rapidly becomes the driving force for using business rules, not the initial replacement of code with something declarative.

All that said it is a nice worked example and worth a read for anyone with a basic Java background who wants to see how Drools works. It also has sample code for you to download. Enjoy.

Related posts:

  1. Why don’t you replace COBOL with something useful (not Java)
  2. Live from Business Rules Forum - Intelligent Process Automation: The Key to Business Process Automation
  3. First Look - Drools 5.0
  4. A reader asks… about development, business rules and model-driven development
  5. First Look - Zementis ADAPA

This entry was posted by James Taylor on Monday, March 24th, 2008 at 4:16 pm and is filed under Business Agility, Business Rules, Decision Management. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

There are currently 5 responses to “Drools, Java code, business rules and decision automation”

Why not let us know what you think by adding your own comment?

  1. 1 On June 19th, 2008, Analyst said:

    I cannot find complete documentation of the syntax for those rule files!! Does one even exist?

  2. 2 On June 19th, 2008, James Taylor said:
  3. 3 On June 23rd, 2008, Analyst said:

    Hi james, I’ve seen that documentation. It fails to go over really basic stuff like how data is made available to rule files from java classes. + the syntax isn’t explained *completely.

    Thanks though, I’ll take a closer look at the examples.

  4. 4 On June 23rd, 2008, James Taylor said:

    Here’s a response from the Drools team:
    Examples (we have more examples, and more indepth step by step than any other production rule engine):
    http://downloads.jboss.com/drools/docs/4.0.7.19894.GA/html/ch10.html

    Rail road diagrams of the LHS:
    http://downloads.jboss.com/drools/docs/4.0.7.19894.GA/html/ch06s05.html#d0e3166

    Working with the API:
    http://downloads.jboss.com/drools/docs/4.0.7.19894.GA/html/ch02s05.html#d0e900

    Working with globals (not much to say here s it’s very basic):
    http://downloads.jboss.com/drools/docs/4.0.7.19894.GA/html/ch02s05.html#d0e948

  5. 5 On June 24th, 2008, Analyst said:

    Thanks again … didn’t mean to offend anyone.

    I’m really starting to like the drools engine!

Leave a Reply


First time on the Smart (Enough) Systems blog?
Check out the First Time User's page, subscribe to the blog feed, buy the book or visit the Wiki.

No related posts.

Related Posts

Recent Posts