Blog Archives

♥ 01: Drools tutorial with Maven and Eclipse

Drools is an open source rules engine that allows you to externalize the business rules. This tutorial assumes that you have gone through “Setting up Java, Maven, and Eclipse.” Once you have gone through the following steps, you should have a project structure as shown below. Step 1: Create a

Read more ›

Posted in Drools Tutorial

02: Drools tutorial — A non trivial example with step by step instructions

Drools allow you to externalize business rules to a database, excel spreadsheet, etc. In this tutorial let’s look at an OrderItem scenario where  each OrderItem needs to be put through a couple of rules to determine its discounted price. Step 0: Dependency jars an structure Step 1: OrderItem.java. Step 2:…...

Members Only Content

This content is for the members with any one of the following paid subscriptions:

30-Day-Java-JEE-Career-Companion, 90-Day-Java-JEE-Career-Companion, 180-Day-Java-JEE-Career-Companion, 365-Day-Java-JEE-Career-Companion and 2-Year-Java-JEE-Career-Companion Log In | Register | Try free FAQs | Home
Posted in Drools Tutorial, member-paid

03: Drools with Decision tables (Excel spreadsheet) tutorial

This is an extension to Drools tutorial with Maven. This externalize the rules criteria to an Excel spreadsheet license.xls. This means the age condition is supplied in the xls file under src/main/resources/drools/license.xls. Step 1: Maven pom.xml file dependencies. Add dependencies including the decision tables. Step 2: The license.xls file where rule…...

Members Only Content

This content is for the members with any one of the following paid subscriptions:

30-Day-Java-JEE-Career-Companion, 90-Day-Java-JEE-Career-Companion, 180-Day-Java-JEE-Career-Companion, 365-Day-Java-JEE-Career-Companion and 2-Year-Java-JEE-Career-Companion Log In | Register | Try free FAQs | Home
Posted in Drools Tutorial, member-paid

04: Drools with rules in an excel spreadsheet – Data validation

This tutorial uses Drools as a validation engine to validate an input csv file. The rules are maintained externally in an excel spreadsheet. Step 1: Create a new Maven project “-B” means interactive mode is false. Import it into eclipse or IDE of your choice as a maven project. Step…...

Members Only Content

This content is for the members with any one of the following paid subscriptions:

30-Day-Java-JEE-Career-Companion, 90-Day-Java-JEE-Career-Companion, 180-Day-Java-JEE-Career-Companion, 365-Day-Java-JEE-Career-Companion and 2-Year-Java-JEE-Career-Companion Log In | Register | Try free FAQs | Home
Posted in Drools Tutorial, member-paid

05: Drools with rules in an excel spreadsheet – Global variables & variable capture

This extends 04: Drools with rules in an excel spreadsheet – Data validation . Step 1: Enhance the Trade.java POJO with “actualValues” field and “getFieldValue(String fieldNames)” method. Step 2: trades-rules.xls with “variables” column. Step 3: The trades.drt template file invoking the “getFieldValues(…)” method & declaring global variables. Step 4: Finally,

Read more ›

Posted in Drools Tutorial

800+ Java Q&As – ♥Free | ♦FAQs

open all | close all

100+ Java Tutorials – Step by step

open all | close all

How good are your

open all | close all