MagicDraw 18.4 Documentation

Skip to end of metadata
Go to start of metadata

Specifying criteria is necessary to

  • Associate row and column elements in a dependency matrix.
  • Represent relations between elements in a relation map.
  • Gather the contents of a smart package.
  • Calculate/gather the value of a derived property.

A structured expression can also be the body of the executable opaque behavior, metric definition or validation rule, when the StructuredExpression language is selected for specifying that body.

The criteria can be as simple as a UML relationship or as complex as an OCL 2.0 expression.

To specify the criteria, you can use one of the following operation types:

  • Simple navigation
  • Metachain navigation (indirect relations through chains of properties)
  • Find
  • Union
  • Exclude
  • Filter
  • Various scripts

Also, you can use custom operation types. Moreover, a criterion can be an expression, which combines several operations by passing the results of one operation call to another operation.

If multiple criteria (operations) are specified, the result will be calculated according to all these criteria (operations).


For better understanding of the further material, first of all read the following description.



The element, from which begins the calculation of the result, according to the specified criteria. In a dependency matrix, the context is row or column element. In a relation map, this is every node of the structure. A smart package is the context itself, and the context of a derived property is the target of the customization element that owns this derived property.
  • No labels