Folks,
How can I negate the matches?, like for those that don’t match certain criteria do that
I tried something like this but it doesn’t work:
rule "SupplierView: Supplier code's first two characters should be numeric."
when
$s : SupplierView(!(suppCode matches "\\d\\d.*"))
then
ValidationErrorFacade.getInstance().registerError($s, new ValidationError("Supplier code's first two characters should be numeric."));
end
Thanks,
-Sergey