Creating an Association Link
From within a process, use a Global Data Operations service task to link one case object to another. 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
Add 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 necessary, examine the case data to check that no significant changes have occurred.
- Retry the Add Link(s) To Other Case Object(s) operation.
UserApplicationError (CaseNotFoundError) The source case object referenced from the Case Reference Field does not exist. UserApplicationError (AlreadyLinkedError) The link to the destination case object cannot be created because it already exists. UserApplicationError (NoTargetsError) The link cannot be created 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 created:
- Add a case data signal event to the process, so that the process will be notified when the association link is created.
- Add suitable business logic to perform any actions that the process needs to take as a result of the association link being created.
Copyright © Cloud Software Group, Inc. All rights reserved.