Succeed a RelationshipAttribute and notify peer
This use case allows the owner to update a RelationshipAttribute, while automatically handling the coherent versioning at both your and your peer’s side.
Succeeding an own RelationshipAttribute, a new LocalAttribute with the updated content will be created at your side.
In its succeeds property it links to the predecessing version, which in turn is also updated and links to the newly created version in its succeededBy property.
Thus, a doubly linked list is established, ensuring every version to have not more that one predecessor or successor.
Once the succession at your side is completed, a Notification is sent automatically to your peer.
It triggers the succession of their peer shared RelationshipAttribute in the same manner as described above, such that both your succession chains match.
Parameters
predecessorId: theidof the LocalAttribute with the RelationshipAttributecontentyou want to succeed- The updated
successorContentlimited to thevalue,validFromandvalidToproperties of a RelationshipAttribute that may be changed by a succession
On Success
- The response returns a
predecessorand asuccessorLocalAttribute, as well as thenotificationIdof the Notification sent to the peer. - The
predecessoris an updated version of the own shared RelationshipAttribute, having thesucceededByfield set to thesuccessor’sid. - The
successoris a new own shared RelationshipAttribute version with the specifiedsuccessorContent. Itssucceedsproperty links to thepredecessor.
On Failure
- The response cannot be created if the
predecessorIddoesn’t belong to a valid own LocalAttribute with RelationshipAttributecontent. - The response cannot be created if the LocalAttribute belonging to the
predecessorIdalready has a successor. - The response cannot be created if the LocalAttribute belonging to the
predecessorIdhas adeletionInfowithdeletionStatusother than"DeletionRequestRejected". - The response cannot be created if the parameters are malformed.