[rules-users] rule fires while condition is false

Shai Bentin shai at centimia.com
Thu May 6 00:53:29 EDT 2010


I'm running drools 4. It has been running for a long time with no issues.

I have this weird issue now and I'm wondering what can explain this.

I have the following rule defined.

rule "netRepaymentWithLiabilities1"
     agenda-group "autoUnderwriting"
     when
         #conditions
         enrichedApplication: EnrichedApplicationVersionTO()
         eval 
(enrichedApplication.getNetRepaymentAmountAbilityIncludingLiabilities() 
<= 0.65)
         decision: Decision()
     then
         #actions
         System.out.println("!!!!!!!!!!!!!!!!!!!!!!!!!! " + 
(enrichedApplication.getNetRepaymentAmountAbilityIncludingLiabilities() 
<= 0.65));
         decision.setDecision("APPROVED", "NetRepaymentWthLiblt");
end

This rule invokes although 
'enrichedApplication.getNetRepaymentAmountAbilityIncludingLiabilities()' 
 > 1.
More over in the then part it prints 'false', so how come it invoked 
while the condition is not fulfilled? What can cause this?

Shai






More information about the rules-users mailing list