Details
-
New Feature
-
Status: Closed
-
Normal
-
Resolution: Fixed
-
None
-
None
Description
I have an improvement idea about "Version Cleaner" thing (ref: https://documentation.bloomreach.com/library/administration/maintenance/cleaning-up-version-history.html).
Basically we provide a groovy script for an admin to (schedule to) execute it periodically to clean up versions.
But if we provide a generic (forge) workflow event listener which listens to (de)publication events on a document and check/remove older versions based on configurations automatically, it could be helpful, IMHO. Also, as it's looking at single document, the code would be much easier to maintain.
The configuration could include default.max.days or default.max.revisions or myproject:newsdocument.max.days or myproject:newsdocument.max.revisions (the last two are for document type specific), etc.
BTW, HippoEvent (workflow event bus) processes events asynchronously, so the event listener module wouldn't affect the response directly.