Uploaded by Niranjan Reddy

validation rule

advertisement
Identity Create Policy:
Import java.util.ArrayList;
ArrayList Messages = new ArraList();
String inputval =(String)value;
if (inputVal.indexOf("@")<0)
{
messages.add("need an @sign in a valid email");
}
if (inputVal.indexOf("Techno.com")<0)
{
messages.add("need an .Techno sign in a valid email");
}
return messages;
Download