Re: Shedule lenya 2.1.X

Andreas Hartmann <[email protected]> Tue, 28 Jun 2011 18:10:37 +0200
Newsgroups gmane.comp.cms.lenya.user
Message-ID <[email protected]>
Hi Martin,

Am 28.06.11 09:09, schrieb [email protected]:
> I wonder if there is a working scheduler in lenya2.1.X  like in lenya
> 1.2.4.
> In the workflow menu there is no entry but in the site area there ist an
> entry "Scheduler".

yes, there is a scheduler in the usecase module. It is not properly 
integrated in the GUI, but you can easily call it from your usecase 
code. Check out package "org.apache.lenya.cms.usecase.scheduling" in the 
usecase module API:

http://lenya.apache.org/apidocs/2.0/modules/usecase/index.html

Usage is very simple – just call the UsecaseScheduler.schedule() method 
to schedule a usecase execution, and getJobs() to get the status info 
for existing jobs.

HTH,

-- Andreas



-- 
Andreas Hartmann, CTO
BeCompany GmbH
http://www.becompany.ch
Tel.: +41 (0) 43 818 57 01