my dog learned polymorphism
The moose likes Java in General and the fly likes Rules engines: develop or open source? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Rules engines: develop or open source?" Watch "Rules engines: develop or open source?" New topic

Rules engines: develop or open source?

William Stafford
Ranch Hand

Joined: Dec 13, 2004
Posts: 109
My group is working on the design of a data scrubber utility. This application will basically be making decisions about the validity of data received from contributers on a collaborative project. The validity will be based on rules about the data. For example, if column A is present column B must be greater than zero.

This would be simple to do from scratch but potentially there could be hundreds of rules so I'm wondering if some sort of Java based rules engine would be the best solution for this.

I would like to hear any from anyone with experience doing this sort of thing either in Java or with some sort of rules engine.

Francesco Bianchi
Ranch Hand

Joined: Jun 22, 2007
Posts: 62
Since Java 6 you have a script engine built in JVM. Googling, some months ago I have found an Open Source implementations of such an engine capable to interpret script written with JavaScript syntax. As long as it is approved and sponsored by Sun itself (if I well remember), it SHOULD be well done.
I cannot assure anything about it...I have never had a look at Java 6 up to now nor to this project.

But if you want.. try have a look here: Project homepage

and here: Sun Article

Maybe this could be a nice solution... many people knows javascript, you don't have to re-invent a new language ex-novo, almost no effort in implementing a parsing/executing engine..

Hope it helps,

SCJP 5 & 6, SCWCD 5, SCBCD 5
Amit M Tank
Ranch Hand

Joined: Mar 28, 2004
Posts: 257
You can use Ilog Jrules but I don't think its free.

JRules Site

Amit Tank
Linked In
Kaydell Leavitt
Ranch Hand

Joined: Nov 18, 2006
Posts: 689

I've heard of the rules-based engine and scripting language Jess:


Jess was developed by Dr. Ernest Hill-Friedman. Check out the book reviews on

Book: "Jess In Action"

Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 15082

Another open source rules engine: JBoss Rules

Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
I agree. Here's the link:
subject: Rules engines: develop or open source?
It's not a secret anymore!