-
Sub-task
-
Resolution: Fixed
-
L3 - Default
-
None
-
None
Context:
- given:
- Optimize runs already for a while and has imported a lot of data
- when:
- I configure a time to life (TTL) for the data
- then:
- all data that is older then the defined data, is going to be removed
AT:
- Configuration should be disabled as default
- Time to live period (TTL) from which process instances should get cleaned up can be defined for all definitions with one property, additionally process definition keys can overwrite this config
- TTL property refers to the process instance end time/date
- For configuring the TTL we should use the https://en.wikipedia.org/wiki/ISO_8601#Durations format as done in the engine
- Cleanup job Start Time can be configured in configuration. Job runs periodically automatically based on this configuration.
- As User I can decide if want to delete all data related to the process or only variables
- If there is a specific configuration present for a process definition key that is not present in the database the cleanup run should get aborted and an error logged, to avoid loosing data due misconfiguration