<font size="2"><font face="verdana,sans-serif"><div><font size="2"><font face="verdana,sans-serif">Hi there,</font></font></div><div><font size="2"><font face="verdana,sans-serif"><br></font></font></div>er.. why don't you remove your "eval" and just evaluate in the object binding?</font></font><div>
<font size="2"><font face="verdana,sans-serif"><br></font></font></div><div><font size="2"><font face="verdana,sans-serif">$var = TypeOfObject( netRepaymentAmountAbilityIncludingLiabilities <= 0.65)</font></font></div>
<div><font size="2"><font face="verdana,sans-serif"><br></font></font></div><div><font size="2"><font face="verdana,sans-serif">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 :-/</font></font></div>
<div><font size="2"><font face="verdana,sans-serif">_ miguel</font></font></div><div><font size="2"><font face="verdana,sans-serif"><br></font></font><br><div class="gmail_quote">On Thu, May 6, 2010 at 5:53 AM, Shai Bentin <span dir="ltr"><<a href="mailto:shai@centimia.com">shai@centimia.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I'm running drools 4. It has been running for a long time with no issues.<br>
<br>
I have this weird issue now and I'm wondering what can explain this.<br>
<br>
I have the following rule defined.<br>
<br>
rule "netRepaymentWithLiabilities1"<br>
agenda-group "autoUnderwriting"<br>
when<br>
#conditions<br>
enrichedApplication: EnrichedApplicationVersionTO()<br>
eval<br>
(enrichedApplication.getNetRepaymentAmountAbilityIncludingLiabilities()<br>
<= 0.65)<br>
decision: Decision()<br>
then<br>
#actions<br>
System.out.println("!!!!!!!!!!!!!!!!!!!!!!!!!! " +<br>
(enrichedApplication.getNetRepaymentAmountAbilityIncludingLiabilities()<br>
<= 0.65));<br>
decision.setDecision("APPROVED", "NetRepaymentWthLiblt");<br>
end<br>
<br>
This rule invokes although<br>
'enrichedApplication.getNetRepaymentAmountAbilityIncludingLiabilities()'<br>
> 1.<br>
More over in the then part it prints 'false', so how come it invoked<br>
while the condition is not fulfilled? What can cause this?<br>
<br>
Shai<br>
<br>
<br>
<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>"To understand what is recursion you must first understand recursion"<br>
</div>