[rules-users] Help needed - Problems with forall operator

Tom.E.Murphy at wellsfargo.com Tom.E.Murphy at wellsfargo.com
Fri Nov 6 14:23:26 EST 2009


I have the following rule:
rule "somerule"
        when
                forall
                (
                        CreditReport( $parentCreditReport_1_Id : myId)
                        FICO( parentId == $parentCreditReport_1_Id, validScoreIndicator == false)
                )
        then
                System.out.print("Fired");
end

The meaning of the rule is that if all the FICO scores on the credit report are invalid, then fire the rule.
My data at run time has three FICO objects related to one CreditReport, two of which have validScoreIndicator set to false, and one of which has it set to true.
The rule fires, and I don't understand why.
Can anyone enlighten me?



Tom Murphy
Business Process Consultant
Wells Fargo HCFG - CORE Deal Decisioning Platform
800 S. Jordan Creek Parkway | West Des Moines, IA 50266
MAC: X2301-01B
Office: 515 324 4853 | Mobile: 941 320 8014
This message may contain confidential and/or privileged information.  If you are not the addressee or authorized to receive this for the addressee, you must not use, copy, disclose, or take any action based on this message or any information herein.  If you have received this message in error, please advise the sender immediately by reply e-mail and delete this message.  Thank you for your cooperation.



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20091106/e608cfee/attachment.html 


More information about the rules-users mailing list