The insertAttribute() method provides the following forms:
- The first form specifies the attribute to add by its attribute
name. When you use this form, insertAttribute() inserts the specified attribute at the position immediately above the ObjectEventId attribute in the business object's attribute list.
- The second form specifies the attribute to add and the ordinal
position within the attribute list at which to add this attribute.
When you specify an ordinal position, insertAttribute() inserts the specified attribute at the specified pos position
in the business object definition's attribute list, and
moves down by one position every attribute that follows in the list.
Important:
If you specify an ordinal position, make sure that the
specified position is above the ObjectEventId attribute.