I am using alfresco community edition 4.2c and i want to write a scheduled action for modified date. i.e i want to write a action which checks everyday for the documents which are not modified by the last six months.
You run an action that simply queries for documents older than the modification date and processes them. If it could be a large number of documents you will need to think about how you "page" through the data and do that query efficiently. You may also want to run an action that then generates actions to run on the documents that are older than the specified date. IIRC that's how RM's cut off works.
I have defined scheduled process that execute the action defined in xml but still my documents which are older than six months are not moving to an archive store.
It is giving ERROR [freemarker.runtime] Template processing error: "No nodes selected"
Below is my scheduled-action-services-context.xml and my javascript.
<beans> <!– Define the model factory used to generate object models suitable for use with freemarker templates. –> <bean id="templateActionModelFactory" class="org.alfresco.repo.action.scheduled.FreeMarkerWithLuceneExtensionsModelFactory"> <property name="serviceRegistry"> <ref bean="ServiceRegistry"/> </property> </bean> <!– run the script–> <bean id="runscript" class="org.alfresco.repo.action.scheduled.CronScheduledQueryBasedTemplateActionDefinition">