public void addReferences(IProcessparent, String refOwnerName, Long refOwnerId, String refOwnerAttr, EntityIdAndName [] refsToAdd)
throws ServerTimeOutException, AccessDeniedException,ExecutionException;

This method adds the specified references to the specified instance of the business object. There are two ways references can be added to a business object. The instance of the object can be obtained using the call to the getEntity or getEntities methods and then references can be set using the setReferences method of the IEntity interface. However, the setReferences method requires that all references are set into the business object and therefore all the existing references must be obtained before adding the new ones. This is, of course, very inefficient. The addReferences method does not require that the existing references of the business object are retrieved and allows adding the specified references to the existing ones.

Parameters

refOwnerNamethe instance of the business object that references are added to
refOwnerAttrthe name of the attribute of the business object the references of which are being modified (must be of the reference type)
refOwnerIdthe unique ID of the instance of the business object that the references are added to
refsToAddthe references to be added as an array of business object names and ID's
  • Last modified: 2023/05/08 06:29