cancel
Showing results for 
Search instead for 
Did you mean: 

How to implement Custom scheduled job (cron/quarz)

simo2010
Champ in-the-making
Champ in-the-making
Hi,
I am relativelly newbie to Alfresco, and i want implement a  custom job (cron/quarz) that run action at folder level. the requerments.:

- the action must run periodicaly(each 30 min)
- the Action will be performed only for PDF files in that folder
please how to extends alfresco/spring to accomplish this requerment. I know how to define a scheduled job in Spring, but don't know it in the context of Alfresco.
Is there config files for doing that?

please help me is urgent.
thanks
5 REPLIES 5

ssaravanan
Champ in-the-making
Champ in-the-making
You can create a custom action , which then could be configured as a rule - to look for pdfs at a particular folder.
As you already know how to configure cron with spring, the wiki guide will help you do that http://wiki.alfresco.com/wiki/Custom_Actions

Hi,

I want to run my cron job on start up of server. How can i achieve that?

Thanks

simo2010
Champ in-the-making
Champ in-the-making
Hi,
thank you for quick reply.
In Alfresco there are two files that seem to be involved in job scheduling: Alfresco\tomcat\webapps\alfresco\WEB-INF\classes\alfresco\scheduled-jobs-context.xml and Alfresco\tomcat\shared\classes\alfresco\extension\scheduled-action-services-context.xml.sample (i use Alfresco 3.3.2 EE bundle). So, I don't know which file to use an how to set up my  scheduled action.

please can you give me more information or step by step guide or a link where i can fin more information. the Link  http://wiki.alfresco.com/wiki/Custom_Actions explains only how to implements custom Action but not how to schedule a action

thanks in advance for any help.

dafyddjames
Champ in-the-making
Champ in-the-making
Hi, try looking at this page: http://wiki.alfresco.com/wiki/Scheduled_Actions