Get Object

Retrieves the value of a single attribute, as an object, from a business object.

Inputs

Business object
The current business object (a BusObj object).

Attribute
Either a String that specifies the name of the attribute, or an integer that specifies the ordinal position of the attribute in the business object's attribute list.

Output

Returns the value of the specified attribute as an object.

Exceptions

The Get Object function block can set the following exception type for a CollaborationException exception:

Notes

The Get Object function block retrieves an attribute value from the current business object and returns a copy of the attribute value. It does not return an object reference to this attribute in the source business object. Therefore, any change to the attribute value in the source business object is not made to the value that the function block returns. Each time this function block is used, it returns a new copy (clone) of the attribute.

Related information

This function block is based on the BusObj.get() method. For more information, see getBoolean(), getDouble(), getFloat(), getInt(), getLong(), get(), getBusObj(), getBusObjArray(), getLongText(), getString().

Copyright IBM Corp. 1997, 2004