Validating a rule, rule set, or all rules

When you validate a rule or rule set, you confirm that the syntax and semantics of the rule are valid. You also confirm that the programming elements that the rule uses are valid. That is, for example, if the rule references a certain dimension, validation confirms that the specified dimension is present in the model that the rule belongs to.

Note

Validation can only be performed on a model that has been deployed. That is, you can only validate after you deploy the model site. In addition, if the rule references a model property, or variable, the variable must be deployed before the rule can be validated.

Validation does not guarantee that the rule generates correct results. However, only validated rules may be deployed.

In the Business Rules workspace, you can validate an individual business rules or rule set, or you can validate all rules.

To validate a rule set or rule

  1. In the Model Tasks pane, click Models.

  2. In the model site workspace, click a row in the table to open a model.

  3. Click the Business Rules tab.

  4. From the list of rule sets and rules, click to select the rule set or rule that you want to validate.

  5. Validate the rule by using one of the following methods:

    • On the Actions menu, select Rules, and then select Validate Rule Set or Rule.

    • Click the Validate the selected rule set or rule icon. The Messages dialog box is displayed.

    • Right-click the rule, and click the Validate rule set or rule icon. The Messages dialog box is displayed.

  6. View the validation results.

    Validation applies to the active rule or rule set.

  7. Click OK.

To validate all rules

  1. On the Business Rules workspace, you can validate all business rules in a model.

  2. In the Model Tasks pane, click Models.

  3. In the model site workspace, double-click a row in the table to open a model.

  4. Click the Business Rules tab.

  5. On either the Actions menu or the Model Task pane, click Check Out.

  6. Validate the rules by using one of the following methods:

    • On the Actions menu, click Validate All Rules.

    • In the Model Tasks pane, click Validate All Rules. The Messages dialog box is displayed.

    • Right-click, and then click Validate All Rules. The Messages dialog box is displayed.

  7. View the validation results.

    Validation applies to the Active rule or rule set.

  8. Click OK.

See Also

Other Resources

About business rules