We need to terminate running process instances after some specific interval of time, for example, if the process instances are active for more than 14 days then we need to terminate(delete from runtime tables ACT_RU_* only).
There is a way by adding interrupt events to clean this data up. But we have many workflows/Modeler defined so we don’t want to make the same changes in multiples workflows. We do have such an option for history table clean-up by adding the below properties and defining the same in the model.
Are there any possibilities to clean the long-running instances by adding some config properties in the properties/YAML file for running instances?
Please suggest to me the best option.