SEDRIS Reference Manual
APPENDIX A - Transmittal Access Level 0 API Functions SE AddComponentRelationship |
---|
extern SE_Return_Code | |||
SE_AddComponentRelationship | |||
( | |||
SE_Object | aggregate_object, | 1 | |
SE_Object | component_object, | 2 | |
SE_Object | link_object | 3 | |
); |
Adds a composition relationship from aggregate_object to component_object, provided that the following criteria are met.
Either aggregate_object or component_object shall be a resolved object, or both shall be resolved objects. If both aggregate_object and component_object are resolved, then link_object (if provided) shall be a resolved object; otherwise, link_object may be unresolved.
aggregate_object shall reside in a transmittal that has been explicitly opened with either SE_AM_CREATE or SE_AM_UPDATE.
component_object, if not in the same transmittal as aggregate_object, shall be a published object.
link_object, if not in the same transmittal as aggregate_object, shall be a published object.
NOTE: | Relationships between objects in different transmittals are not implicitly bi-directional, so if the component object is unresolved, then the relationship will be uni-directional from the aggregate to the component. |
---|
SE_RETCOD_SUCCESS | and the requested relationship is added, if valid parameters were passed in and all operations succeeded. |
SE_RETCOD_FAILURE | and the status code is set appropriately if the call failed. |
SE_Status_Code(s) when SE_RETCOD_SUCCESS is returned:
SE_STATCODE_SUCCESS | set upon successful completion |
SE_Status_Code(s) when SE_RETCOD_FAILURE is returned:
SE_STATCODE_UNPUBLISHED_OBJECT | set if component_object is in another transmittal than aggregate_object, but is not published by that transmittal or vice-versa. |
SE_STATCODE_UNRESOLVED_INPUT_OBJECT |
set if
|
SE_STATCODE_INVALID_ACCESS_MODE |
set if
|
SE_STATCODE_INACTIONABLE_FAILURE |
set if
|
1 object to which a component is being added
2 component object being added
3 the link object that will be traversed to reach the component object, if applicable; must be resolved, if provided.
Prev: SE_AddAssociateRelationship.
Next: SE_AllocDataTableData.
Up:Index.
|