<?xml version="1.0" encoding="ISO-8859-1"?>

<xwikidoc>
<web>XWiki</web>
<name>SchedulerJobSheet</name>
<language></language>
<defaultLanguage>en</defaultLanguage>
<translation>0</translation>
<parent>XWiki.SchedulerJobClass</parent>
<customClass></customClass>
<title></title>
<template></template>
<defaultTemplate></defaultTemplate>
<validationScript></validationScript>
<comment></comment>
<minorEdit>false</minorEdit>
<object>
<class>
<name>XWiki.TagClass</name>
<customClass></customClass>
<customMapping></customMapping>
<defaultViewSheet></defaultViewSheet>
<defaultEditSheet></defaultEditSheet>
<defaultWeb></defaultWeb>
<nameField></nameField>
<validationScript></validationScript>
<tags>
<cache>0</cache>
<displayType>input</displayType>
<multiSelect>1</multiSelect>
<name>tags</name>
<number>1</number>
<prettyName>Tags</prettyName>
<relationalStorage>1</relationalStorage>
<separator> </separator>
<separators> ,|</separators>
<size>30</size>
<unmodifiable>0</unmodifiable>
<values></values>
<classType>com.xpn.xwiki.objects.classes.StaticListClass</classType>
</tags>
</class>
<name>XWiki.SchedulerJobSheet</name>
<number>0</number>
<className>XWiki.TagClass</className>
<property>
<tags/>
</property>
</object>
<content>#if($doc.getObject('XWiki.SchedulerJobClass'))
*Job name :*

$!doc.display('jobName')

*Job description :*

$!doc.display('jobDescription')

*Job cron expression :*

$!doc.display('cron')

*Job script :*

#if($context.action=="inline")
$!doc.display('script')
#elseif($context.action=="view" &amp;&amp; $doc.display('script')!="")
#set($codevar = "{CODE}")
$codevar.toLowerCase()
$!doc.display('script')
$codevar.toLowerCase()
#end

#if($context.action=="inline")
#info("The script is the code that will be executed when the job will be triggered by the scheduler. It should be written in the groovy language. XWiki api is available through the *xwiki* et *context* pre-defined variables.")

#info("Below some example of valid cron expression, from the official quartz scheduler documentation :
{table}
Cron expression|Meaning
*{pre}0 15 10 * * ?{/pre}*|Fire at 10:15am every day
*{pre}0 15 10 ? * MON-FRI{/pre}*|Fire at 10:15am every Monday, Tuesday, Wednesday, Thursday and Friday
*{pre}0 0/5 14 * * ?{/pre}*|Fire every 5 minutes starting at 2pm and ending at 2:55pm, every day
*{pre}0 15 10 ? * 6L{/pre}*|Fire at 10:15am on the last Friday of every month
{table}
Please refer to quartz official documentation for more details.
")
#elseif($context.action=="view")
[Back to the job list&gt;Scheduler.WebHome]
#end
#else
 #warning("This sheet must be applied to a document that holds a scheduler job object.")
#end</content>
</xwikidoc>
