[rules-users] Does when order matter?

Ronald R. DiFrango ron.difrango at gmail.com
Thu Jul 26 13:49:56 EDT 2007


All,

I was wondering [and maybe this has be answered before] ,but does the order
of the rules in the when clause matter?

For example I have the following:

        rtvHeader : RtvHeader( headerRtvNumber : rtvNumber )
        repaymentCode : RepaymentCode( actualCode : code, matchApprv != "Y"
)
        lineCharge : HeaderAdditionalCharge( rtvNumber == headerRtvNumber,
originalRepaymentCode == actualCode )

In my case there is a higher likelihood that I will have more RepaymentCodes
than RtvHeaders [1 of these guys] and likely less HeaderAdditionalCharge
objects.  So should the order be more like:

        rtvHeader : RtvHeader( headerRtvNumber : rtvNumber )
        lineCharge : HeaderAdditionalCharge( rtvNumber == headerRtvNumber,
originalRepaymentCode : originalRepaymentCode)
        repaymentCode : RepaymentCode( actualCode == originalRepaymentCode,
matchApprv != "Y" )

Or does it not really matter?

Thanks in advance,

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


More information about the rules-users mailing list