@Sland function setHistoryTimeToLive is available in camunda version 7.11. Its not available in 7.10. Anyway camunda 7.11 is stable version you can easily upgrade to latest version.
@aravindhrs Okay, thank you, i will try and notify about result.
And one more question. If I want to delete history data, is it enough for me to have only one TTL parameter?Or cleanup strategy required? Because i can set TTL using bpmn files of processes. But in ACT_HI_PROCINST database there is only start time (show attachment). So, can you clarify this information. please?
setHistoryTimeToLive at process engine level applicable across all process definitions. Instead if you want to configure different TTL at process definition level you can configure it in bpmn file itself. Even you can narrow down to specific process instance level to set TTL. It’s upto you which level you want to set TTL. e.g, ProcessEngine level/Process definition level/Process instance level.
@Sland you need to setup cleanup strategy and History TTL in process definition also. For the strategy HISTORY_CLEANUP_STRATEGY_REMOVAL_TIME_BASED, once process instance is completed, the removal time will be updated.