-
Type: New Feature
-
Status: Open
-
Priority: Minor
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: ADDONS_7.10, ADDONS_9.10
-
Component/s: Retention
As a system, I should have a schedule triggered every hour that calls RetentionService.checkDateRules()
Add those methods to the Service:
- protected getExpiredRecords(): That query all Record with cutoff_at date over and state to undefined AND Records with dispose_at date over and state to cuted off.
- public checkRule(Record): Evaluate what to do with the Record, leaves it empty for now
- public checkDateRules(): that get all expired records and call checkRule on each
Method `getExpiredRecords` have to be tested