Deleting an Association Link
From within a process, use a Global Data Operations service task to delete an existing association link between two case objects. Association links allow you to navigate from one case object to another, from any process that has access to the case references of the source and destination case objects.
Prerequisites
Procedure
What to do next
- (Optional) Add appropriate error handling to the service task boundary to deal with the following specific errors that may be returned by the
Remove Link(s) To Other Case Object(s) operation.
Error (Error Code) Description Possible solutions CaseOutOfSyncError (CaseOutOfSyncError) The source case object referenced from the Case Reference Field has been modified in some way since the field was last populated. That is, the case reference is stale. This could be either a change to the data held in the case object, and/or a change in the object's internal version number.
- Re-read the case object.
- If necssary, examine the case data to check that no significant changes have occurred.
- Retry the Remove Link(s) To Other Case Object(s) operation.
UserApplicationError (CaseNotFoundError) The source case object referenced from the Case Reference Field does not exist. UserApplicationError (NotLinkedError) The link to the destination case object cannot be deleted because it does not exist. UserApplicationError (NoTargetsError) The link cannot be deleted because the case reference specified in the Case Object Reference(s) field has a null value. - (Optional) Modify any process that may need to do something if this association link is deleted:
- Add a case data signal event to the process, so that the process will be notified when the association link is deleted.
- Add suitable business logic to perform any actions that the process needs to take as a result of the association link being deleted.
Copyright © Cloud Software Group, Inc. All rights reserved.