AnsweredAssumed Answered

Scheduled Job

Question asked by lascaux on Nov 21, 2006
Latest reply on Nov 22, 2006 by kevinr
Hi,

I would like to create some scheduled job which will call a javascript …

I would like to do the following :

1) every x minutes, check in a specific space if some documents have a specific value for a property.
2) call a JS script that will perform some tasks on the documents found by the search.


My questions are :
1) is it possible ?
2) Do I need to perform the search in the JS script or in the <bean id="runScript" class="org.alfresco.repo.action.scheduled.CronScheduledQueryBasedTemplateActionDefinition">
in the "queryTemplate" property ?
3) if the search is performed by the scheduled job, how the script could get the "result" of the search ?

Thanks for your reply

Sylvain

Outcomes