General Actions:
Log-in
Wiki:
L3D's Wiki
▼
:
Document Index
»
Space:
XWiki
▼
:
Document Index
»
Page:
SchedulerJobSheet
Search
Page Actions:
Export
▼
:
Export as PDF
Export as RTF
Export as HTML
More actions
▼
:
Print preview
View Source
XWiki Scheduler Job Class
»
Scheduler Job Sheet
Wiki source code of
Scheduler Job Sheet
Last modified by
Administrator
on 2011/03/02 17:34
Content
·
Comments
(0)
·
Attachments
(0)
·
History
·
Information
Show line numbers
{{velocity}} #if($doc.getObject('XWiki.SchedulerJobClass')) #set($job = $doc.getObject("XWiki.SchedulerJobClass")) **$msg.get("xe.scheduler.job.name")** $!doc.display('jobName') **$msg.get("xe.scheduler.job.description")** $!doc.display('jobDescription') **$msg.get("xe.scheduler.job.expression")** $!doc.display('cron') **$msg.get("xe.scheduler.job.script")** #if($xcontext.action=="inline") $!doc.display("script") #elseif($xcontext.action=="view" && "$!job.getProperty('script').value" !="") {{code language="java"}} $job.getProperty('script').value {{/code}} #end #if($xcontext.action=="inline") {{info}}$msg.get('xe.scheduler.job.scriptexplanation')){{/info}} {{info}}"Below some example of valid cron expression, from the [[official quartz scheduler documentation>>http://www.opensymphony.com/quartz/api/org/quartz/CronExpression.html>_blank]]: |= Cron expression |= Meaning | **0 15 10 * * ?** | Fire at 10:15am every day | **0 15 10 ? * MON-FRI** | Fire at 10:15am every Monday, Tuesday, Wednesday, Thursday and Friday | ** 0 0/5 14 * * ?** | Fire every 5 minutes starting at 2pm and ending at 2:55pm, every day | ** 0 15 10 ? * 6L** | Fire at 10:15am on the last Friday of every month {{/info}} #elseif($xcontext.action=="view") [[$msg.get("xe.scheduler.job.backtolist")>>Scheduler.WebHome]] #end #else {{warning}}$msg.get('xe.scheduler.job.object'){{/warning}} #end {{/velocity}}
Quick Links
L3D Calendar
Wiki Dashboard
Document Index
Blog
Sandbox