You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

To validate elements that are not used in a diagram


  1. Create a Package and apply the «ValidationSuite» stereotype.
  2. Right-click the Package to open its Specification window
  3. On the left side menu, select Constraints → Create.
  4. Click three dots  next to the Applied Stereotype property and set it to «validationRule». Click Apply.

    If you cannot see the Traceability node, make sure the Expert or All mode is enabled.

  5. Click three dots  next to the SeverityError Message, and Abbreviation properties to specify them for the created validation rule.
  6. Click three dots  next to the Constrained Element property to specify the metaclasses and stereotypes whose instances are validated if not used in the diagram.
  7. Click three dots  next to the Specification property. Specification dialog opens.
  8. From the Language drop-down list, select StructuredExpression.

  9. On the left side of the dialog, click Create Operation → Operation from Model → Not. 

    If you cannot see the Operation from Model operation under Operations, make sure the Expert mode is enabled.

    If you cannot see the Not operation, make sure the Apply Filter box is not checked.

  10. Select A → Reset.
  11. Select A → Operation from Model → IsEmpty.

  12. Select Input → Operation from Model → UsageInDiagramsWithSymbols.

  13. Select Element → Reset.
  14. Select Element → Contextual Variable.
  15. Click OK.

Sample model

The model used in these examples is the Case Studies for Querying the Model sample model. To open this model, you need to download case studies for querying the model.mdzip