cancel
Showing results for 
Search instead for 
Did you mean: 

Move/Deleting documents based on define date/time

garimabhandari
Champ in-the-making
Champ in-the-making
I am new to alfresco and I have client requirement to move/delete documents(placed in a certain document library folder) after specific time/date .
As per my knowledge to achieve this firstly I need to add one field name as "end date/time" in document property.
And then need to create a rule which will perform move action  based "end date".

Please let me know how to do this in alfresco as this required changes in code base?
And please let me know if any other option is available for this.



Thanks
4 REPLIES 4

niketapatel
Star Contributor
Star Contributor
I would suggest to implement scheduler which runs may be daily or as per your requirement. Please check this for implemeting scheduled actions - https://wiki.alfresco.com/wiki/Scheduled_Actions

You can follow below
1)Add you custom property. Ex: retentionDate
2)Implement scheduler which runs may be daily night and gets all contents which needs to be moved/deleted based on retention date
3)Move/delete content as per your requirement.

mrogers
Star Contributor
Star Contributor
You could also look at RM if the requirements for document destruction become more complex.    But for just that use-case its probably over-kill.

IIRC there's already an aspect defined for content expiry.

mrogers
Star Contributor
Star Contributor
You could also look at RM if the requirements for document destruction become more complex.    But for just that use-case its probably over-kill.

IIRC there's already an aspect defined for content expiry.

garimabhandari
Champ in-the-making
Champ in-the-making
Can we achieve this using Workflow? Like "When workflow due date get expired,workflow should be removed/canceled."