Deleting a Case Object by Composite Case Identifier
Within a process, you can delete a single case object whose composite case identifier matches the values that you supply.
Prerequisites
The process must already contain data fields containing the composite case identifier values of the case object that you want to delete.
Each data field must be of the same type as the appropriate composite case identifier attribute in the case class.
Each case identifier value(s) must be a complete and exact match for the case object that is to be deleted. You cannot use partial matches or wildcard characters - these will result in a CaseNotFoundError runtime error.
If the case object that you want to delete has any association links to other case objects, you must delete those association links before attempting to delete that case object. If the case object has any active links to other case objects, the delete operation will fail.
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
Delete Case Object(s) by Case Identifier operation.
- (Optional) Modify any process that may need to do something if this case object is deleted:
- Add a case data signal event to the process, so that the process will be notified if the case object is deleted.
- Add suitable business logic to perform any actions that the process needs to take as a result of the case object being deleted.