Set Value

Sets a business object's attribute to a specified value of a particular data type.

Inputs

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

Attribute
A String that specifies the name of the attribute you want to set.

Value
The value for the attribute. Must be of the appropriate type (boolean, double, float, int, long, Object, String, or BusObj) for the attribute.

Exceptions

The Set Value function block can set the following exception type for a CollaborationException exception:

Notes

The Set Value function block sets an attribute value in the current business object. It sets an object reference when it assigns the value to the attribute. It does not clone the attribute value from the source business object. Therefore, any changes to value in the source business object are also made to the attribute in the business object that calls the Set Value function block.

The Set Value function block provides the following forms:

Related information

This function block is based on the BusObj.set() method. For more information, see set().

Copyright IBM Corp. 1997, 2004