On 29/11/2012, dec <[email protected]> wrote: > See attached DRL. input is: condFt="supportedValue" > I have a rule with the following 'when' part which will not hit, though it > should: > > $supportFT: supportFT() > condFT(value == $supportFT.getValue()) > $conclusion: testInferred() > > while the following one will hit, even though the two seems equivalent: > > $supportFT: supportFT(value == null || value !=null) > condFT(value == $supportFT.getValue()) > $conclusion: testInferred() >
This could be due to a misuse, e.g., a change of a fact without update/modify. > another one that seems equivalent that will hit: > $supportFT: supportFT() > supportFT(value == $condFt.getValue()) > $conclusion: testInferred() > This is either incomplete or illegal: undeclared $condFt. -W > Not sure if it is indeed a bug, or a misuse on my part, > but I can't understand why the first rule will not hit. And even stranger, > why the second and third which seems the same will. > > testInferred3.drl > <http://drools.46999.n3.nabble.com/file/n4021003/testInferred3.drl> > > > > -- > View this message in context: > http://drools.46999.n3.nabble.com/Inconsistent-behavior-of-a-rule-tp4021003.html > Sent from the Drools: User forum mailing list archive at Nabble.com. > _______________________________________________ > rules-users mailing list > [email protected] > https://lists.jboss.org/mailman/listinfo/rules-users > _______________________________________________ rules-users mailing list [email protected] https://lists.jboss.org/mailman/listinfo/rules-users
