[rules-users] negation for matches
Manukyan, Sergey
SManukyan at lear.com
Fri Jul 13 16:49:08 EDT 2007
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
**********************
** LEGAL DISCLAIMER **
**********************
This E-mail message and any attachments may contain
legally privileged, confidential or proprietary
information. If you are not the intended recipient(s),
or the employee or agent responsible for delivery of
this message to the intended recipient(s), you are
hereby notified that any dissemination, distribution
or copying of this E-mail message is strictly
prohibited. If you have received this message in
error, please immediately notify the sender and
delete this E-mail message from your computer.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20070713/b071189c/attachment.html
More information about the rules-users
mailing list