Drools: Decision Tables and MVEL – Quirk? Feature? Consequence?

drinkingrules I had a very interesting experience today with Drools Decision Tables and MVEL. My Decision Table has a consequence that refers to $person.name - using MVEL. It compiled, it ran and it worked. But, I had a setup.drl File in the same rule package as the Decision Table, and in that setup.drl I set... Continue Reading →

Drools 6.x Decision Table Example

Creating the Project Open EclipseNew -> Maven Project (simple project)Simple ProjectGroup Id: com.skills421.examples.droolsArtifact Id: Drools6.xDecisionTableExampleFinish Structure pom.xml Facts Fact.java Person.java RuleResponse.java RuleRunner RuleRunnerException.java RuleRunner.java Rules Setup.drl DrinkingRules.xls drinkingrules Main Main.java kmodule.xml kmodule.xml Output

Drools 6.x Basic Example

Creating the Project Open EclipseNew -> Maven Project (simple project)Simple ProjectGroup Id: com.skills421.examples.droolsArtifact Id: Drools6.xExampleFinish Structure pom.xml Rule Runner src/main/java com.skills421.examples.drools.controller.RuleRunner RuleRunnerException src/main/java com.skills421.examples.drools.exceptions.RuleRunnerException Fact src/main/java com.skills421.examples.drools.facts.Fact RuleResponse src/main/java com.skills421.examples.drools.facts.RuleResponse Person src/main/java com.skills421.examples.drools.facts.Person Rules src/main/resources/com/skills421/examples/drools/people DrinkingRules.drl kmodule.xml src/main/resources/META-INF kmodule.xml Main src/main/java com.skills421.examples.drools.Main Output

Drools Core is in a class of its own when it comes to Batch Processing

Like most things in the Java arena, Drools now comes with a plethora of tools and APIs to integrate with just about anything. But, let's be honest, Drools Core is where all the magic happens. Everything else just hooks into it somehow, and if you can lift the hood on Drools Core you have access... Continue Reading →

Drools volume testing gets great results for batch processing

We've recently been developing a batch processing system for a client in the finance sector that uses Drools. Subject to a few constraints our system is developed in Drools 5.6 with Java 1.7 and makes use of Drools Templates which generate several thousand rules in total. The batches are passed through a chain of several... Continue Reading →

Drools6.1 Workbench on JBoss AS7.1.1

Objective In this post we are going to install JBoss AS 7.1.1 and Drools 6.1 Workbench. In subsequent posts we will create and deploy rules, decision tables, and workflows with human interaction. Download JBoss AS 7.1.1 Download JBoss AS 7.1.1.Final from here: http://jbossas.jboss.org/downloads/Unzip it into your destination folder Start JBoss AS 7.1.1 JBoss AS 7.1.1 will... Continue Reading →

Up ↑

%d bloggers like this: