Home / Features / Validation Rules

Validation Rules

Additional standards that are applied during model checks

Built-in rules

When Model Expert validates a diagram or package, it applies a set of built-in validation rules.

These are a set of built in rules, covering element and relationship types and stereotypes which are allowed /not allowed or are mandatory, incorrect multiplicity and direction for connectors, attributes and tagged values that have or have not been populated, classifiers and messages. Each rule has a severity associated with it, so, for example, using the wrong element type is more serious than a missing Tagged Value. When models or diagrams are checked and these rules are run, violations are shown on diagrams with color coding, depending on the severity that has been set.

You can update these rules to suit your modelling standards and save them in your Reference Models. Updates can include:

  • change the severity of each type of error: some values are provided by default
  • (set the severity to zero and the rule will not be applied when the Reference Model is used for validation)
  • change the ‘Rule Text’ to have an alternative explanation of the rule, or translate into your national language

Scripted rules

Model Expert provides lots of validation rules, but it can’t implement every kind of rule you might ever need. So you can create your own scripts which can run for either all meta-model types (not recommended), all instances of a specific element type, or instances of a specific meta-model type and stereotype. You can also create scripts to validate diagrams.

The types of rules you might add could check, for example:

  • for specific values in a variable,
  • whether users have obeyed a naming standard,
  • whether some kinds of connector exist.
  • any combination of the above.
  • how many elements in a diagram
  • whether the notes for a diagram are suitable

To add scripting rules to Model Expert, you will need knowledge of the EA Scripting languages, as well as some knowledge of the EA programming model.

More features like this

Compare pricing and features

The Standard edition of Model Expert is completely free – and it comes with 30 days of all the Premium features too. Find out what’s included…

Compare Pricing

Download Model Expert

Register and download now РFREE. Discover how Model Expert can improve your model quality. Add a Model Expert to your team.

Download