Sum

Adds the values of the specified attribute for all business objects in this business object array.

Inputs

Business object array
The business object array (specified as an object of type BusObjArray).

Attribute
A String that specifies the name of the attribute.

Output

Returns the sum (as a double data type) of the specified attribute from the list of the business objects.

Exceptions

The Sum function block can throw the following exceptions, both of which are subclassed from CollaborationException :

For each of these exceptions, the Sum function block can set the AttributeException exception type.

Related information

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

Copyright IBM Corp. 1997, 2004