File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JBoss/WildFly and the fly likes JBoss drools, when to use and when to avoid? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "JBoss drools, when to use and when to avoid?" Watch "JBoss drools, when to use and when to avoid?" New topic
Author

JBoss drools, when to use and when to avoid?

az ziz
Ranch Hand

Joined: Dec 17, 2008
Posts: 50
dear all,

i have a requirement in which the users are listed with around 150 rules. these rules are fetched from the db and shown to users.
they can take any rule(s) and assign to various categories they have created. they chain the rules so that it structures like a tree. i use the web interface to allow the users to form the rules chain. here rules are a kind of conditions like "sum of the transaction done on a month by a given customer" or "threshold value of the given customer" or "average transaction value". all the rules they define has the LHS & RHS & an operand. they also say the value for each side. for my future reference i store the structure of rules, defined by the user, to the database.
at the end of the day one of my scheduler should do these operations:
* fetch the rules of a particular category from the database and do the necessary operation of the rules. i should traverse deep into the tree by the path the rules are satisfying.
* most of the rules performs the database call, the database has huge collection of data
* do some calculation based on the rules output and store it to the output to the db

now my confusion,
should i need to use the rules engine frameworks, such as jboss drools, which may reduce the work???. if so how do i generate and assign the rules at run time and how the rule engine is going to solve my case.
or
may i fetch directly the rules from the db and form a tree structure and do the work. will this way of doing consumes lot of time? am i reinventing a solved problem?

thanks in advance
Jeremy Whiting
Greenhorn

Joined: Mar 05, 2008
Posts: 10
Hi Vijay,
If you don't get a direct response to your query try targeting the drools developers on irc. There is a channel dedicated to drools chatter.

irc.codehaus.org #drools
http://jboss.org/drools/irc.html

If that fails then post a query on the user forum

http://jboss.org/drools/lists.html

Kind regards,
Jeremy
az ziz
Ranch Hand

Joined: Dec 17, 2008
Posts: 50
thank you Jeremy , il see to it.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JBoss drools, when to use and when to avoid?