I want to be able to valid
Rules ..without having to check each single field th
Object.
Example:
If we have a domain object say
P
String Name
String
phoneNumber
And you have a form with the fields represented as Strings
in a request.
Name
PhoneNumber
And if the user enters his phone number I just want to run
the rule about phonenumber without firing the rule for name.
The first idea was to cre
When
P\(?\d{3}\)?
?\d{3}[-.]\d{4}”)
||
PhoneNumber(value
not m
“ \(?\d{3}\)?
?\d{3}[-.]\d{4}”
Then
InsertLogical(Message(“Bad
Phone”)
But th
Is there a better design?