Please note : This help page is not for the latest version of Enterprise Architect. The latest help can be found here.

Define Validation Configuration

The Model Validation Configuration dialog can be opened using the Project | Model Validation | Configure... menu option. Using this dialog, you can choose which sets of validation rules are and are not executed when a user performs a validation. Rather than perform this configuration manually and potentially have to change the settings every time Enterprise Architect is started and a different technology is set active, you can define the configuration settings within the MTS file.

To specify a set of rules as a white-list (that is, anything added to this list is turned ON), open your MTS file in a text editor and copy and paste the following <ModelValidation> block at the top level inside the <MDG.Selections> block:

<ModelValidation>

       <RuleSet name="BPMNRules"/> <!-- ruleset ID defined in the Project.DefineRuleCategory call -->

       <RuleSet name="MVR7F0001"/> <!-- notice you can turn on/off system rules as well! -->

</ModelValidation>

Ensure that the ruleset IDs do not contain any spaces.

To specify a set of rules as a black-list (that is, anything added to this list is turned OFF), open your MTS file in a text editor and copy and paste the following <ModelValidation> block at the top level inside the <MDG.Selections> block:

<ModelValidation isBlackList="true">

       <RuleSet name="BPMNRules"/>

       <RuleSet name="MVR7F0001"/>

</ModelValidation>

In the examples above, "BPMNRules" is the rule-set ID defined in the Project.DefineRuleCategory call - see Project Interface for details. "MVR7F0001" is one of Enterprise Architect's built-in rule-sets. These validation options are applied when you activate the appropriate technology. The global (default) technology has all rules turned on.