Working with agent properties

There are two situations in which an ODA provides agent properties to Business Object Wizard:

To represent an agent property, the ODK API defines an agent-property object, which is an instantiation of the AgentProperty class. When you instantiate the agent-property object, you initialize some or all of its member variables, shown in Table 49.

Table 49.

Contents of an agent-property object
Member variable Description
propName
The name of the agent property
description
A text string that describes the purpose of the agent property
type
The data type of the agent property, as represented by a property-type constant
cardinality
The cardinality of the agent property; that is, whether the property can have one or multiple values
isHidden
Determines whether Business Object Wizard displays the property value as normal text or in an encrypted format.
isMultiple
Determines whether Business Object Wizard displays a drop-down list of valid values for the agent property, for users to choose from
isReadOnly
Determines whether the agent property's value is read-only; that is, whether users can change the displayed value
isRequired
Determines whether the agent property's value is required; that is whether users are required to specify a value
allDefaultValues
An array of default values for the agent property
allDependencies
An array of conditions for the agent property
allValidValues
An array of valid values for the agent property
allValues
An array of user-initialized values for the agent property

To instantiate an agent-property object, use one of the forms of the AgentProperty() constructor:

Copyright IBM Corp. 1997, 2003