The validation suite defines the set of validation rules applied when running the validation. The purpose of the validation suites is to group validation rules (constraints) without duplicating them. When creating a new validation suite you must choose the active or inactive validation suite you want to create, depending on the applied stereotype:

You can:


Sharing

You can share validation suites by exporting validation suites Package and then use it in another project.


To create a new validation suite


  1. Open the Validation Suites dialog. How to open the Validation Suites dialog >>
  2. Do the one of the following:
     - In the toolbar, click Create New Validation Suite and select Validation Suite or Active Validation Suite command.
     - Right-click the Validation Suites area and select Create Validation Suite or Create Active Validation Suite command.
  3. In the Select Owner dialog, choose the owner for the new validation suite Package, and click OK.
  4. In the Rename dialog, type the name of the new validation suite Package, and click OK.
    An empty validation suite Package is created and is located in your model. You can include validation rules from other validation suites. How to include validation rules >>

    Alternative

    An alternative way is to create a new or select existing Package element and apply one of the following stereotypes:

     - «validationSuite»
     - «activeValidationSuite»

    How to apply a stereotype >>


To clone existing validation suites


  1. Open the Validation Suites dialog. How to open the Validation Suites dialog >>
  2. In the Validation Suites area, select the validation suite Package you want to modify.
  3. Do the one of the following:
     - In the toolbar, click  .
     - Right-click it and select Clone Validation Suite command.
  4. In the Select Owner dialog, choose the owner for the cloned validation suite Package, and click OK.
  5. In the Rename dialog, type the name of the cloned validation suite Package, and click OK.
    The clone of the existing validation suite Package is created and contains the same validation rules as the original. You can include or exclude validation rules from the cloned validation suites Package. How to include/exclude validation rules >>


To include/exclude the validation rules to/from a validation suite Package


  1. Open the Validation Suites dialog. How to open the Validation Suites dialog >>
  2. In the Validation Suites area, select the newly created or cloned validation suite Package.

    You cannot include/exclude the validation rules to/from read-only validation suites.

  3. In the Validation Rules area, select/clear the check boxes for the entire Package or an appropriate validation rule to include/exclude validation rules to/from the new validation suites Package.
    The validation suites Package contains only selected validation rules.

    Additional information

    After you include/exclude the validation rules (constraints), the appropriate Package Import relation is created/deleted in the model. You can check that in the Containment tree, under newly created or cloned validation suites Package, Relations group. In the image below, the Numbering Validation, Path Overlapping, and Pins Displaying validation suites with all Constraints are included in the newly created Specific constraints validation suite via the Package Import relation.