SpringProcessEngineConfiguration config = new SpringProcessEngineConfiguration();
config.setHistoryTimeToLive(historyTimeToLive);
StandaloneProcessEngineConfiguration configuration2 = new StandaloneProcessEngineConfiguration();
configuration2.setHistoryTimeToLive(historyTimeToLive);
Also, you can set it via rest api also and in bpmn model also you can configure it.
https://docs.camunda.org/manual/7.11/reference/deployment-descriptors/tags/process-engine/
@aravindhrs We are using 7.10 version. And it is now possible to set ttl via REST, because we cannot use REST API.
I have config from context, so, this process engine takes from method params. ProcessEngineConfigurationImpl
.
Yes, i am already checked StandaloneProcessEngineConfiguration and SpringProcessEngineConfiguration. For my case there is no method setHistoryTimeToLive. It’s strange.
@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.
aravindhrs:
setHistoryTimeToLive at process engine level applicable across all process definition
@aravindhrs
setHistoryTimeToLive at process engine level applicable across all process definition
Yes, it’s correct case for me. And version 7.11 works. But another my question about cleanup strategy above comment. Please, can you check it?