Drools

Drools
Drools
Developer(s) Red Hat
Stable release 5.3.0 / October 21, 2011; 30 days ago (2011-10-21)
Written in Java
Operating system Cross-platform
Type Rules engine
License ASL 2
Website http://www.jboss.org/drools/

Drools is a business rule management system (BRMS) with a forward chaining inference based rules engine, more correctly known as a production rule system, using an enhanced implementation of the Rete algorithm.

Drools supports the JSR-94 standard for its business rule engine and enterprise framework for the construction, maintenance, and enforcement of business policies in an organization, application, or service.

Contents

History

The Drools Project was started by Bob McWhirter in 2001 and registered at SourceForge. Drools 1.0 was never released as the limitations of a brute force linear search approach were soon realised and work started on Drools 2.0, which was loosely based on the Rete algorithm, and the project was moved to Codehaus. During the 2.0 development cycle at Codehaus Nobi Y became the project lead and moved the project to a final 2.0 release. At this point the project had become the leading Java open source rule engine with a strong community and demand had started for commercial services. In October 2005 Drools was federated into JBoss as part of their JEMS offering and rebranded JBoss Rules. In 2006 JBoss itself was acquired by Red Hat. With financial backing from JBoss the JBoss Rules rewrite was possible with a full and enhanced Rete implementation with GUI tooling. Mid 2007 the Drools name was reclaimed since after two years people were still predominantly calling it Drools and having to refer to it as "Drools aka JBoss Rules", or "Drools (JBoss Rules)" was confusing.

Drools 5

Drools version 5.0 was released on May 19, 2009. The main goals of this version are to address CEP (in a module called Fusion) and workflow capabilities (in a module called Flow).[1]

Technology

Drools is a rules engine implementation based on Charles Forgy's Rete algorithm tailored for the Java language. Adapting Rete to an object-oriented interface allows for more natural expression of business rules with regards to business objects. Drools is written in Java, but able to run on Java and .NET.

Drools is designed to allow pluggable language implementations. Currently, rules can be written in Java, MVEL, Python, and Groovy. Drools also provides for declarative programming and is flexible enough to match the semantics of the problem domain with domain specific languages (DSL) via XML using a schema defined for the problem domain. DSLs consist of XML elements and attributes that represent the problem domain.

JBoss Rules

JBoss Rules is a reasoning engine that includes a forward chaining rule engine based on Drools. JBoss Rules is the productised version of Drools; this means it comes with support that will last several years for that particular branch, with bug and essential feature back ports. For a time the Drools name was dropped in an attempt to fully establish the JBoss Rules brand as both the project and the product; however, two years later, the community was mostly still calling it Drools, so the name was reclaimed by the community for the project. The product name remains JBoss Rules.

JBoss Enterprise BRMS

JBoss Enterprise BRMS is a business rule management system and reasoning engine for business policy and rules development, access, and change management.[2] JBoss Enterprise BRMS is a productized version of Drools with enterprise-level support available. JBoss Rules is also a productized version of Drools, but JBoss Enterprise BRMS is the flagship product.[3]

Components of the enterprise version:[4]

  • JBoss Enterprise Web Platform – the software infrastructure, supported to run the BRMS components only
  • JBoss Enterprise Application Platform or JBoss Enterprise SOA Platform – the software infrastructure, supported to run the BRMS components only
  • Business Rules Engine – Drools Expert using the Rete algorithm and the Drools Rule Language (DRL)[5]
  • Business Rules Manager – Drools Guvnor
  • Business Rules Repository – Drools Guvnor

Drools and Guvnor are JBoss Community open source projects. As they are mature, they are brought into the enterprise-ready product JBoss Enterprise BRMS.

Components of the JBoss Community version:[6]

  • Drools Guvnor (Business Rules Manager) – a centralized repository for Drools Knowledge Bases
  • Drools Expert (rule engine) – uses the rules to perform reasoning
  • Drools Flow (process/workflow), or jBPM 5 – provides for workflow and business processes
  • Drools Fusion (event processing/temporal reasoning) – provides for Complex Event Processing (CEP)
  • Drools Planner (automated planning) – optimizes automated planning, including NP-hard planning problems

Example

This example[7] illustrates a simple rule to print out information about a holiday in July. It checks a condition on an instance of the Holiday class, and executes Java code if that condition is true.

rule "validate holiday" 
dialect "mvel"
when
    h1 : Holiday( when == "july" )
then
    System.out.println(h1.name + ":" + h1.when);
end


Related systems

  • CLIPS: public domain software tool for building expert systems.
  • d3web: free, open-source platform for knowledge-based systems (expert systems).
  • JESS: a rule engine for the Java platform - it is a superset of CLIPS programming language.
  • Prolog: a general purpose logic programming language.
  • OpenL Tablets: business centric rules and BRMS.
  • DTRules: a Decision Table based, open-sourced rule engine for Java.
  • Esper: Java open-source CEP engine http://esper.codehaus.org

See also

References

External links


Wikimedia Foundation. 2010.

Игры ⚽ Нужно решить контрольную?

Look at other dictionaries:

  • Drools — Développeur JBoss Dernière version 5.2 (23 …   Wikipédia en Français

  • drools — druːl v. babble foolishly; slobber, drivel, dribble …   English contemporary dictionary

  • JBoss Rules — Drools Drools Développeur JBoss Dernière version …   Wikipédia en Français

  • Inference engine — In computer science, and specifically the branches of knowledge engineering and artificial intelligence, an inference engine is a computer program that tries to derive answers from a knowledge base. It is the brain that expert systems use to… …   Wikipedia

  • JSR-94 — is the Java Specification Request for a Java Rules Engine API. Implementations *Jess programming language *Drools External links * [http://jcp.org/en/jsr/detail?id=94 Java Community Process JSR 94 Page] * [http://www.jboss.org/drools/ Drools] *… …   Wikipedia

  • ADAPA — This article describes ADAPA, a decision engine used to manage and design automated decisions systems. For the Babylonian and Summerian god of wisdom and of the ancient city of Eridu see Adapa. ADAPA is intrinsically a decision engine. It… …   Wikipedia

  • Moetan — もえたん Genre Comedy, Magical girl TV anime Directed by Keiichiro Kawaguchi Studio Ac …   Wikipedia

  • JBoss — JBoss, Inc. Rechtsform Incorporated Gründung 2004 Auflösung April 2006 …   Deutsch Wikipedia

  • JBoss Enterprise Middleware Suite — JBoss Application Server (kurz JBoss) ist ein in der Programmiersprache Java geschriebener freier Anwendungsserver, der die Spezifikation Java Platform, Enterprise Edition (Java EE) implementiert. JBoss Inc. ist ein zu Red Hat gehörendes… …   Deutsch Wikipedia

  • JEMS — JBoss Application Server (kurz JBoss) ist ein in der Programmiersprache Java geschriebener freier Anwendungsserver, der die Spezifikation Java Platform, Enterprise Edition (Java EE) implementiert. JBoss Inc. ist ein zu Red Hat gehörendes… …   Deutsch Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”