Time to live for called activities

Hi everyone,
I was wondering what would happen in the following scenario:

  • a root process with a certain time to live
  • the root process calls a called activiti in which a different time to live is customized

Does anybody know which time to live wins?

Many thanks,
Christian

1 Like

Hi @cjacobme,

This depends on the Cleanup Strategy you use (more here: https://docs.camunda.org/manual/7.12/user-guide/process-engine/history/#cleanup-strategies).

If you’re using the Removal-Time-based Strategy, the root process TTL wins.

Best,
Nikola

Hi @nikola.koevski,
From your words, it seems that if I am using the End-Time-based Strategy then called activity’s TTL wins. Is it like that or I am wrong? Sorry if it is a stupid question, but I am really lost in the documentation :slight_smile:

Hi @Yurii_Shchur,

Sorry for the delayed response. Yes, you’re right. When using the End-Time-based Strategy, the cleanup time is determined for each Process Definition individually. So the called activity’s TTL wins.

You can see it here: https://docs.camunda.org/manual/7.12/user-guide/process-engine/history/#end-time-based-strategy (“Limitations” paragraph, second point).

Best,
Nikola

1 Like