My apologies if this has already been answered elsewhere -- I searched and could not find
it.
I have a java class that takes this form (simplified for purposes of this discussion):
public class MyClass()
{
public boolean isHappy();
public boolean isHealthy();
}
I have a rule that looks like this:
rule "Some rule"
salience 100
when
$obj : MyClass(happy == true || healthy == true)
then
// Do something with $obj
end rule
In Drools 4.x, this rule would perform the conclusion when either MyClass.isHappy()
returned true or MyClass.isHealthy() returned true, but not if both were false.
In Drools 5.0.1, this rule would perform the conclusion always -- regardless of the values
of isHappy() or isHealthy().
Any ideas what's going on? Is this a known problem, or is there something wrong with
my syntax and/or class?
Thanks for any help you can give -- and I can give a more concrete example if need be.
------------------------------------------------------------
Bamboo Flooring
The strong, silent type. Click here for great looking bamboo flooring!
http://tagline.excite.com/fc/FgElN1gz4wwE6UWjuk9HgExVihsl6SoJRYkCYdqtuEKv...