Hi there,
er.. why don't you remove your "eval" and just evaluate in the object
binding?
$var = TypeOfObject( netRepaymentAmountAbilityIncludingLiabilities <= 0.65)
Other than that, i don't think a lotta people are still using drools4 and i
have no idea why that is happening. Apparently, it makes no sense :-/
_ miguel
On Thu, May 6, 2010 at 5:53 AM, Shai Bentin <shai(a)centimia.com> wrote:
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
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
--
"To understand what is recursion you must first understand recursion"