Deleting Case Objects

You should set a case to a terminal state and allow auto case purge to purge cases. You delete directly from a process if you want to remove a case from the system immediately.

Cases are automatically deleted ('auto-purged') at a set interval (for example, 90 days) after they enter a terminal state, as long as they are not referenced by processes. The interval at which auto-purging happens is configurable via a global configuration setting. See "Case Data Management Configuration" in the TIBCO® BPM Enterprise Administration guide.

For example, if an Order transitioned to a 'COMPLETED' state (a terminal state) at 8am on 1st January, then, assuming the system has been configured to auto-purge cases after 28 days, this case is removed at 8am on 29th January (or in the next auto-purge cycle that occurs after that point in time).

A case is not purged if any processes remain that reference it.

Within a process, you can use a case data service task to delete one or more case objects. You can identify the case objects to be deleted using either case references or case identifiers.

  • Reasons to Avoid Deleting Case Objects The best practice is to not delete case objects as part of a normal operation. If you do delete case objects, the best practice is to only delete using a single case reference from within a service task in a business process.
  • Deleting Case Objects by Case Reference Within a process, you can delete one or more case objects for which you have the identifying case reference(s).