Criteria (Profile)

Criteria subclassify metaclasses so that extensions are applied to objects only if they satisfy conditions. You can test an object instance against multiple criteria, and for sub-criteria, its condition and any conditions specified by its parents must be met for its extensions to be applied to the instance.

  1. Right-click a metaclass and select New > Criterion.
  2. Enter the following properties as appropriate:

    Property

    Description

    Name

    Specifies the name of the criterion.

    Condition

    Specifies the condition which instances must meet in order to access the criterion extensions. You can use any expressions valid for the PowerDesigner GTL .if macro (see .if Macro). You can reference any extended attributes defined at the metaclass level in the condition, but not those defined under the criterion itself.

    For example, in a PDM, you can customize the symbols of fact tables by creating a criterion that will test the type of the table using the following condition:

    (%DimensionalType% == "1")

    %DimensionalType% is an attribute of the BaseTable object, which has a set of defined values, including "1", which corresponds to "fact". For more information, select Help > Metamodel Objects Help, and navigate to Libraries > PdPDM > Abstract Classes > BaseTable.

    Parent

    Specifies the parent criterion of the criterion. To move the criterion to under another parent, select the parent in the list. Click the Properties tool to open the parent and view its properties.

    Comment

    Specifies additional information about the criterion.



  3. Click Apply to save your changes.