Chapter 4 Extending your Models with Profiles


Criterion properties

The following properties are available for criteria:

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 the Generation Reference Guide chapter). You can reference the extended attributes defined at the metaclass level in the condition, but not those defined in 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 a parent criterion of the criterion. You can select a criterion defined in the same metaclass or in a parent metaclass. Click the Properties tool to go to the parent in the tree and view its properties.
Comment Additional information about the criterion.

 


Copyright (C) 2008. Sybase Inc. All rights reserved.