View RSS Feed

Drools Rules

Drools rules

  1. Drools Components

    by , 03-04-2012 at 10:57 AM
    1. Rules – Where conditions are specified (If a then b)
    2. Facts – Simple objects (POJOs). E.g, a Bank Account fact consists of an account number, someone’s id and balance.
    3. Knowledge Base –is where rules are built and loaded into a structure that gets implemented by the Rete algorithm.
    4. Session – Here facts are placed. Facts are inserted into a session. A session can be State less or State full. Facts in the statefull shall be present in a constant rule alignment once ...
    Drools Rules
  2. How is JBoss Drools is made up

    by , 03-04-2012 at 10:54 AM
    There are 2 main parts of Drools:

    Authoring & Runtime

    Creation Rules files (.DRL) are involved in authoring process. They consists of rules that are being fed to a parser. Correct syntax of rules is checked by parser which creates intermediate structure so that to describe certain rules. Then it is passed on to Package Builder that creates the packages. After this, any code generation as well as compilation is undertaken that is essential to create package.
    Tags: jboss drools Add / Edit Tags
    Drools Rules
  3. Drools Components and Terminology

    by , 03-04-2012 at 10:51 AM
    Objects used by the Drools are market out by the rules and patterns which are responsible for invoking the certain actions:

    • Drool objects are considered as the Java objects. They are usually presented by the XML schemas or instances of the Java classes.
    • A patter being a coded expression is involved in the manipulation of 1 or more than 1 objects so that to create a pattern for making, adapting behavior, according to the designed logic.
    • Working Memory drools stores its objects
    Drools Rules
  4. Advantages of the Drools rule engine

    by , 03-04-2012 at 10:48 AM
    Drools rule engine offers these advantages.
    • It separates conditions and applications

    • They are present in separated files
    • Different people groups can modify them
    • After changing a rule, recompilation is not needed. Redeployment is also not needed in the whole application.
    • To control an application’s flow, put rules at one place
    • All the complexed statements can be replaced by rules in an easier or understandable way

    • Rule language is not tough to be learnt.
    • An