public class GroovyJob extends AbstractJob
Important:: Note that the script will execute in the XWiki Context that was set at the time the Job was
scheduled for execution. For example calling
context.getDoc() will return the current document that was
set at that time and not the current document that is set when the Groovy script executes...
|Constructor and Description|
|Modifier and Type||Method and Description|
Executes the Groovy script passed in the
protected void executeJob(org.quartz.JobExecutionContext jobContext) throws org.quartz.JobExecutionException
scriptproperty of the
SchedulerPlugin.XWIKI_JOB_CLASSobject extracted from the XWiki context passed in the Quartz's Job execution context. The XWiki Task object is looked for in the current document that was set in the context at the time the Job was scheduled.
jobContext- the Quartz execution context containing the XWiki context from which the script to execute is retrieved
org.quartz.JobExecutionException- if the script fails to execute or if the user didn't have programming rights when the Job was scheduled
Copyright © 2004–2021 XWiki. All rights reserved.