Hi everyone! We have some stale versions of a bpmn process definition deployed. For some of them there are incompleted process instances. We can not forcibly stop the instances and remove old versions. But we want to remove any historic data for completed instances. These process definition versions haven’t TTL set. For the latest deployed version the TTL is set and current cleanup strategy is set to
- Will switching the cleanup strategy to
endTimeBased lead(help) to remove history data for the completed process instances/vars and so on without TTL?
- Is it safe to switch cleanup strategy from
endTimeBased and back to
removalTimeBased for the production environment?
Yes, please check (1)
Changing the TTL of a definition also affects already written history data.
I personally won’t recommend that I would propose another option:
You could set the removal time via batch operation, you could find it as an option in the limitations of the removal strategy (2)
However, it is possible to Set a Removal Time via Batch Operations.
Batch operation docs: Java API (3) and REST API (4). (Available in Cockpit only for enterprise edition (5))
I hope that helps.