Thanks,
I did this and saw that 'amount' was 0, although netRepayment.... was
1.04, after looking at it a bit further I found the problem.
When I create the workspace I insert EnrichedApplicationVersion, I run
some rules from a different agenda and then I cleared the agenda
(however did not retract the enrichedApplication).
I then do some more things and insert the value of NetRepayment value to
the EnrichedApplication, I re insert it to the workspace and then I run
the rules.
It seems that drools did not re evaluate the EnrichedApplication again
and thus the value of NetRepayement as fas as it was concerned was 0.
retracting EnrichedApplication or creating a new workspace solves this
problem.
Thanks.
Shai
בתאריך 06/05/10 17:13, ציטוט Jared Davis:
Could the rules be changing the values outside of a modify block?
Please try this (untested) rule as a test.
It binds the value on the left hand side.
rule "netRepaymentWithLiabilities1TEST"
agenda-group "autoUnderwriting"
when
ea: EnrichedApplicationVersionTO(amount :
netRepaymentAmountAbilityIncludingLiabilities
<= 0.65)
decision: Decision()
then
System.out.println("!!!!!!!!!!!!!!! " + amount +
" !!!!!!!!!!! " +
ea.getNetRepaymentAmountAbilityIncludingLiabilities() );
decision.setDecision("APPROVED", "NetRepaymentWthLiblt");
end
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users