Define Model Validation Configuration

Return to Introduction  Previous page  Next page

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 a technology.

To specify a set of rules as a white-list (i.e. anything added to this list is turned ON), open your technology file in a text editor and copy and paste the following <ModelValidation> block at the top level inside the <MDG.Technology> 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>

To specify a set of rules as a black-list (i.e. anything added to this list is turned OFF), open your technology file in a text editor and copy and paste the following <ModelValidation> block at the top level inside the <MDG.Technology> 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.