Tag Archives: Drools

JBoss Drools Guvnor Example


via JBoss Drools Guvnor Example | Examples Java Code Geeks.

In this article, we will see an example of Drools Guvnor. We use Guvnor as ‘Business Rules Manager’. Guvnor is the name of the web and network related components for managing rules with drools.

If you want to more know about Drools Introduction or its setup, read here.

This example uses the following frameworks:

  1. Maven 3.2.3
  2. Guvnor 5.1.1

Drools Workflow Example


via Drools Workflow Example | Examples Java Code Geeks.

Workflow says exactly what will happen at each stage in the process. As soon as the workflow reaches a step, we will fire the actions associated with it. Ruleflow does something similar but we don’t have any control on the actual rules that may fire as they are selected by the rule engine.

A business process or workflow describes the order in which a series of steps need to be executed, using a flow chart. This makes it much easier to describe a complex composition of various tasks.

Drools 5.0 introduces a powerful (extensible) workflow engine. It allows users to specify their business logic using both rules and processes (where powerful interaction between processes and rules is possible) and offers a unified enviroment.

If you want to more know about Drools Introduction or its setup, read here.

This example uses the following frameworks:

  1. Maven 3.2.3
  2. Java 8
  3. Drools 6.2
  4. Eclipse  as the IDE, version Luna 4.4.1.

Drools Salience Example


via Drools Salience Example | Examples Java Code Geeks.

In this article we will look into an example of Drools Salience Example.

So what is salience and why do we need it?

Salience means to be most noticeable and important. We will usesalience keyword against a rule to set the priority. Before we start with the example, let’s work on our setup.

If you want to more know about Drools Introduction or its setup, readhere.

This example uses the following frameworks:

  1. Maven 3.2.3
  2. Java 8
  3. Drools 6.2
  4. Eclipse  as the IDE, version Luna 4.4.1.

Trace output with Drools


Trace output with Drools

Drools 6 includes a trace output that can help get an idea of what is going on in your system,  and how often things are getting executed, and with how much data.

It can also help to understand that Drools 6 is now a goal based algorithm, using a linking mechanism to link in rules for evaluation. More details on that here:
http://blog.athico.com/2013/11/rip-rete-time-to-get-phreaky.html