Previous Topic Next topic Print topic


Property

A property describes an attribute that can be assigned to nearly all data model types. The value of a property can only assigned at run time.

Each referenced property displays with its property value (if available) in the Eclipse Property View when the referencing object is selected.

The display names of elements in the Team Developer Tree view are also property values that have been referenced with special attributes in the relationship Element Type has Property, as shown in this graphic.

Display names of Elements in the tree view

The elements (left) all originate from the element type (center) and share properties (right). The property values can be different, however. The element display name is defined via the relationship with the Tree View Label attribute (top center).

Different attributes can be set when defining a property. One is the type of the property. This attribute defines how a property value will be interpreted at run time. It's main impact on how a modeled dialog field is displayed and how input fields are validated. The definition of Boolean properties have an impact on the enabled condition checking.

Note: The type attribute defined in the model does not necessarily insist that an AWM managed property value is of this type at run time. If, for example, a property is defined as numeric but a tool returns a character string value, AWM will accept this value.

The following property types are supported:

Type Description
String This is the default type.  

The property value can contain a text string which can be entered at runtime in a modeled input dialog.

Boolean At run time a control box is displayed in modeled dialogs.
Select_Value At run time a selection box is displayed for modeled input dialogs and the user can only select a value which has been defined in the AWM model.  

The values that the user can select are defined by key values.

As an option, key labels can also be given, which overwrite the display text of the key values in the selection box. If key labels are used, the number of defined labels must match with the number of key values.

Date In modeled input dialogs with date fields, the date can be chosen from a graphical calendar.

The stored date format can be configured in the AWM model. The default format is yyyyddMM.

Time Time properties are used to support time specifications in a modeled input dialog.

The property value is stored using the format HHmmSS.

Password Password properties create non-readable password fields in input dialogs. They do not offer any other password security such as encryption. If AWM is started in debug mode, entered passwords will appear in the Eclipse error log.
Numeric Numeric properties are used to support numeric values. A modeled dialog validates numeric input fields and adds leading zeros, if necessary, corresponding to the minimum value length attribute.
Text Area A text area property can be used to enter formatted text in a modeled input dialog. It can be modeled using the maximum lines attribute and the maximum characters per line attribute.

Depending on their values, the Input dialog box generates a multi-line text field.

At runtime a non-empty line is filled with trailing blanks.

Text Array Text array properties can be used to store a variable number of values. There are two ways to set the values of a text array property:
  • Using a file input parameter for a modeled input dialog. The structure attribute must be set to Table and at least one property relationship must be defined, referencing a text array property.
  • Using a text array property as an input parameter in a modeled input dialog. A retrieve all values action must be referenced in the property definition to retrieve valid values.

Both scenarios generate a selection table within a modeled input dialog so the user can choose which values to apply.

For more information about modeled dialogs and dialog fields, see Input Dialog and Output Dialog in the AWM function package description.

A further property attribute used in context with dialog boxes is Retrieve_All_Values. Here, as an option, an action descriptor can be referenced associated with a tool which returns a list of all valid values for this property (one line per value). The action is called via a Retrieve button in the input dialog box, and returns the valid values as a selection list in the combo box field. The tools of the referenced action descriptor have access to all the input fields of the dialog box. User inputs can therefore be used as input parameters.

Retrieve button in a Filter dialog

The combo box is populated with the returned values when the Retrieve action executes. Any field values entered in the dialog box can used as tool input parameters for the retrieve action.  

Attribute Type Description
ID * ID * The ID of the property.
Default_Value [O] String The standard value of the property serves as the default entry for input fields or input parameters. As soon as a tool has assigned a property value to this property, the default value is no longer used.
Special_Property Selection Indicates whether this property has a special meaning. See Special Properties for more information.

Valid values are:

  • NONE (default)
  • element type
  • Element_Suffix
  • MarkerLineNumber
  • Property Group
Resource Identifier * (if visible) Selection Only relevant for linked properties which require an additional link to a property which identifies a corresponding linked element. It is not displayed in the model editor's property view if it is not relevant.

Example: all linked properties defined in the Eclipse function package need a resource identifier the modelled property which identifies an Eclipse resource (project, folder or file). Otherwise the function package would not be able to get or set a linked property value.

Label [O] String The display text of the property in the Properties view and the default display text, if the property is used in modeled dialogs. If not specified, the property ID will be used as display text.
Value_Keys [D] String [] The permitted property values for a property if it has the typeSelectValue. If no labels are defined for the key values, the key values will be used at run time to create the selection list for this property in the input dialog box.

The value must not contain any white spaces.

Label_Keys [D] String [] Defines the display texts for each defined value key. This attribute is only relevant if the property has the type Select Value and it is optional. If labels are specified, the number of labels must match the number of the key value.

The labels must not contain any white spaces. Underscore characters (_) can be used instead as they are converted to white spaces at run time.

RetrieveAll Values [O]   Action Descriptor     Reference to an action descriptor that returns the valid values of this Property. See Retrieve All Values for more information.  
Upper case [O] Boolean The value of this property is always converted to upper case if entered in a modeled dialog box.

The default value is false.

Type Selection The type of the property.  

Valid values include:

  • String
  • Boolean
  • SelectValue
  • Date
  • Time
  • Password
  • Numeric
  • Text Area
  • Text Array
Max Lines Integer Limits the number of lines of a text area property.  

The default value is 0 (unlimited)

Chars Per Line Integer Defines the length of every line of a text area property. Non-empty lines are populated with blanks on dialog box confirmation.  

The default value is 80.

Value Max Length [O] Integer Limits the permitted length of a value within an input field for this property.  

The default value is 0 (unlimited)

Value Min Length [O]     Integer       Defines a minimum length for a value within an input field for this property.  

The default value is 0 (unlimited)

False Value [O] String Only relevant for properties of type Boolean. Specifies the value returned from dialog boxes when the property value is false. In addition, this is the value used to check an enabled condition, if the operator false has been used.
True value [O] String Only relevant for properties of type Boolean. Specifies the value returned from dialog boxes when the property value is true. In addition, this is the value used to check an enabled condition, if the operator true has been used.
Date Format [O] String Only relevant for properties of type Date. Specifies the format of the date for creation and validation in dialog boxes. See Date format for more information.  

Default value: yyyyMMdd

Example: MM/dd/yyyy

String Delimiter String Only relevant for properties of type TextArray. This value is used to delimit the values of a text array when passed as parameter values to a tool.
Previous Topic Next topic Print topic