[rules-users] 4.0 Language Updates

Ronald R. DiFrango ron.difrango at gmail.com
Mon Jul 9 12:19:59 EDT 2007


All,

I have the following rule:

rule "Repayment Code Requires Approval"
    salience 60

    when
        repaymentCode : RepaymentCode( code == "MD", matchApprv == "Y" )
        mdOutput : ModelDiscrepancyOutput( $amt1 : sumRTVQty, $amt2 :
sumCmAndRnr)
        eval($amt1.doubleValue() == $amt2.doubleValue())
    then
        System.out.println("Repayment Code Requires Approval");
        processMDAdjustments(drools.getWorkingMemory().getQueryResults( "MD
Adjustments" ), StatusConstants.APPROVAL);
        System.out.println("mdOutput: " + mdOutput);
end

If I remember correctly, there was going to be an update to the rules
language that would allow me to eliminate the eval.  Is this true and if so
what is the syntax that accomplishes this?

Ron
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20070709/5d4c783a/attachment.html 


More information about the rules-users mailing list