I have a multitenancy environment, in which incidents have been neglected for a long time. Due to that I need to cancel approximately 100 k running process instances across multiple tenants (from business perspective retrying is not an option). I’m working on Camunda 7.15, Community version.
I was planning to do it in batches using the async call:
But many of my instances have IO mapping on the activity that has the incident and the REST async call doesn’t seem to have the option that a singular delete has (skipIoMappings as per Delete Process Instance | docs.camunda.org). Because of that my batches are failing to complete.
I’d really appreciate any suggestions how I could cancel the instances other than manually or via a script that invokes the synchronous delete by id in a loop.