On Mon, Nov 16, 2009 at 7:16 AM, Greg Barton <greg_barton@yahoo.com> wrote:
The answer to both questions is basically the same: use the "this" reference.
rule CheckValidBinNumber
when
$br:BillingRecord(cardNo!=null || cardNo!="")
$valid: Boolean(this == false) from checkValidity($br.cardNo)
then
error(BillingRecordHelper.BIN_NO_INVALID_ERROR,log);
end