File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JBoss/WildFly and the fly likes Rules Engine Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Rules Engine" Watch "Rules Engine" New topic

Rules Engine

Ash Kondhalkar
Ranch Hand

Joined: Jun 14, 2006
Posts: 43

In our application we have some formulae to be used. But we don't want this code to be inside java because these formulae are subject to change with time. So we want to externalize this code.
I heard that we need to use some Rules engine for the same. My question is will Drools engine meet my requirement?
Kindly reply at the earliest.

Thanks in anticipation
Mark Spritzler

Joined: Feb 05, 2001
Posts: 17276

Rules based engines are great for what they do. Meaning if you have say a product that has different configurations and certain parts won't work with other parts, and others must have other parts, and these rules change with new products, or changes in time, then a Rules based engine is what you really want. That is an example of a great reason to use a Rules based engine. You can try Jess, or JRules for JBoss to find the one that you like the best, both are really good.


Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
If these are purely mathematical formulas (as opposed to logical rules which Mark talked about), you might look into packages like JEP which interpret Strings as formulas and calculate their value based on a set of variables.
[ June 22, 2006: Message edited by: Ulf Dittmer ]
I agree. Here's the link:
subject: Rules Engine
It's not a secret anymore!