Creating a group validation rule
To create a group validation rule, use the Group Validations page to add a new rule.
Procedure
- Select Rules > External
Validation > Group Validations.
The Group Validations page opens.
- Click Add.
The Add Group Validation page opens.
- Select the business object that you want this validation rule to apply to from the Group list.
- Select the validation function that you want to use to
power this rule from the Function list.
Note: While you can create your own functions to use with external validation, InfoSphere® MDM provides you with prebuilt functions that encompass common validation tasks, such as checking for minimum and maximum field lengths. For a list of the prebuilt functions that come with InfoSphere MDM, see External validation functions. For more information on creating your own validation functions, see the developer topics.
- Select a conditional evaluation from the Rule
Set Name list if you want to make this validation rule
conditional.
When validation rules are conditional, they execute only if certain user-defined criteria are met. For example, a validation rule may only be applicable if Line of Business is equal to Property and Casualty. In this case, the conditional evaluation would check that the "LoB=P&C" condition is true, and, if it is, would then trigger the external validation rule.
- Select the transaction type that this validation rule applies
to from the Applies To list.
InfoSphere MDM comes with four generic predefined transaction types: Create, Delete, General, and Update. Transaction types are defined in the V_TRANSACTION database table. For more information about how to edit these transaction types or how to create your own transaction types for defining validation rules, see the developer topics about validating data.
- Select an error message ID from the Error Message list
to associate an error message with this validation rule.
If the rule does not validate, the user will receive the error message specified here. Once you select an error message ID, you can view the message's text by clicking Show Message.
- Click Add Parameter.
- Specify the name of the type of data that is used for this parameter under Parameter Type.
- Specify the value for the parameter under Parameter Value.
- Specify a concise, meaningful comment that accurately describes the parameter under Description.
- Repeat steps 7 to 10 to add additional parameters to this
validation rule.
You can add as many parameters to the rule as necessary. Before you submit the rule, you can also remove parameters that you have added by clicking the Scissors icon.
- Click Submit.
A confirmation message asks you to confirm your action.
- Click OK.