AnsweredAssumed Answered

run scheduled JS script using the classpath reference

Question asked by cpenning on Mar 20, 2008
Latest reply on Mar 25, 2008 by jbarmash
I want to setup a scheduled action that will execute a script, but the script I want to execute will not reside within the repository as in the example in the wiki.

My script will be deployed as part of an AMP module so that is why it will not reside with in the repository, but rather will be in the classpath for alfresco/module/<MY-MODULE-ID>/script/scheduled/somescript.js.

I had a look at the source of org.alfresco.repo.action.executer.ScriptActionExecuter and it appears the only parameter that can be passed is a 'script-ref' so I'm not sure if what I want to do is even possible. 

Any help would be appreciated.