Types of Validation Rules
The two types of validation rules are as follows:
cim1265
The two types of validation rules are as follows:
- Task-level validation-- validates an attribute value against other attributes in the task. For example, you can verify that the area code in a user-supplied telephone number is appropriate for the user’s city and state.During task-screen configuration, task-level validation rules are directly associated with task screen fields.You can use this type of validation to enforce data integrity.
- Directory-level validation-- validates the attribute value itself, and not in the context of other attributes in the task. For example, you can verify that a user-supplied telephone number matches the nnn-nnn-nnnn format used in the directory.In directory.xml, directory-level validation rules are mapped to a managed object attribute through a rule set. The rules in the rule set are applied to any task screen field configured with the attribute.You can use this type of validation to enforce user directory requirements.
Identity Manager
executes task-level validation rules before directory-level validation rules.Example Comparing Directory-Level Validation and Task-Level Validation
In this example, a telephone attribute is mapped in directory.xml to a directory-level validation rule requiring telephone numbers to be formatted as nnn-nnn-nnnn. All fields configured with the telephone attribute are validated against the nnn-nnn-nnnn format whether the field appears in a Create User task screen, a Create Supplier task screen, or any other task screen.
If a Telephone Number field appears on a Create Customer task screen, like telephone number fields in other task screens, this field is configured with the telephone attribute that requires the nnn-nnn-nnnn telephone number format. However, because some of the company’s customers are located in other states, the Telephone Number field on the Create Customer task screen is also associated with the following task-level validation logic:
- Check the value in the State field.
- When the customer is located out of state, be sure that the area code of the customer’s telephone number is appropriate for the customer’s state.