[jboss-user] [JBoss Tools Users] - rule traversal/execution order i drools

shashank.rudra do-not-reply at jboss.com
Wed Sep 2 08:53:29 EDT 2009

Hi Guys

I have started to use Drools engine. I set it up in Eclipse using Jboss Tools package distribution. Now I am having difficulty understanding how to specify the rules, in the rule.drl files. Here are the points that I am mostly confused about

1. what is the order in which the rules are fired. (I have multiple rules defined in the same file.)
2. In case I want to put some rules in other rule file. How to load them in working memory and what will be order in which rules in these two separate files will run.
3. I don't want to modify the object. This object attributes are being used as driving conditions in these rules. So of the rules are being reentered the condition will be true again. This is leading to unending loop. 
4. I want to visit rules in the order they are specified in the rule file- from top to bottom. And I want to enter each loop only once. 

Any pointer to the document that gives information on the way drool rule engine works will be very helpful. I appreciate your efforts guys. Thanks in advance. 

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4253065#4253065

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4253065

More information about the jboss-user mailing list