Removing an independent relationship between process instances by using JavaScript
Use JavaScript API to remove an independent relationship between two process instances.
To remove an independent relationship between two process instances, complete the following steps.
- Decide if you want to check the user's authorization.
- Get the instance ID of the instance with which you have the independent relationship that you want to remove.
- Remove the relationship using the removeRelatedProcessRelationship() method,
which has the following signature:
TWProcessInstance.removeRelatedProcessRelationship(processInstanceId, checkAuthorization)
- processInstanceId
- The ID of the instance with which the relationship exists.
- checkAuthorization
- A boolean value that the method uses method to determine whether it should check the user's authorization. The default is false.
TWProcessInstance.removeRelatedProcessRelationship(processInstanceId, true);