MINOR: Handle Flowable History Cleanup #18990
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR aims to do two different things:
First of all, it aims to provide a good default for keeping the flowable historic tables nice and tidy to avoid them growing way too much
This is done by setting the following config, with the default being cleaning history of processes after 7 days they ended.
Second, it parametrizes the main configurations that should be defined depending on the different use cases
This was done by setting a new SystemSetting: WorkflowSetting.
The main thing I'm not sold on is how I'm updating the
ProcessEngine
after a setting change is done. I'd love any inputs since it seems it is the first time we are doing this.Type of change:
Checklist:
Fixes <issue-number>: <short explanation>