[rules-users] Rules selection logic

Greg Barton greg_barton at yahoo.com
Sat Nov 13 13:24:10 EST 2010


Also, the use of doubles in an == test is problematic.  Not that it would cause this particular problem, but it will cause others.

GreG

On Nov 13, 2010, at 11:52, Wolfgang Laun <wolfgang.laun at gmail.com> wrote:

Are you using the latest (5.1.1) release?

Is the duplicated rule in another DRL file and does it have exactly the same name? If so, it simply overwrites the first rule.

If it's different, please create a JIRA with a minimized example reproducing the error.

-W


On 13 November 2010 14:12, balagh <bala.ganesh at accenture.com> wrote:

Hi,

 Below is the DRl used. When i have two different rules with the same below
DRL, only one rule is getting executed. I could find that in my logs. If i
change the line to Ransome(amr <= 10) in any one of the rule, both of them
are getting executed.

I am having the rules in db and the execution trace log will have the rules
no which gets executed

  Rule "rule -1"
    when
        loose : Loose()
        ransome : Ransome(amt == 6.15) from loose.getRansomeArray(0)
        util : Util()
   then
       util.doIt(loose, "Hello");
  end


Thanks,
Bala

--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Rules-selection-logic-tp1894132p1894257.html
Sent from the Drools - User mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
rules-users at lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

_______________________________________________
rules-users mailing list
rules-users at lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20101113/c59177fe/attachment.html 


More information about the rules-users mailing list