| java.lang.Object com.opensymphony.workflow.util.ScheduleJob
ScheduleJob | public class ScheduleJob implements FunctionProvider(Code) | | Schedules a job in the Quartz job scheduler to be executed one or more times in the future.
The following arguments are required:
- triggerId - the id of the trigger function defined in the XML workflow
- jobName - the name to be given to the job
- triggerName - the name to be given to the trigger
- groupName - the group given to both the job and the trigger
The following arguments are optional:
- username - the system account's username that will execute the function in the future.
If this is not specified value from WorkflowContext.getCaller() is used
- password - the system account's password
- local - if set to the true, a LocalWorkflowJob is used, bypassing the need for SOAP support.
Will be ignored if "workflowClass" is specified.
- jobClass - the class implementing 'Job' to run, defaults to WorkflowJob. If not specified,
defaults to either a WorkflowJob or a LocalWorkflowJob if "local" is set to true.
- schedulerName - the name of an existing scheduler to use
- schdulerStart - if "true", start the scheduler if it hasn't been started already
- txHack - set this to true if you are getting lockups while running with transactions (defaults to false)
If you are using a cron trigger, the following is required:
- cronExpression - the Cron expression
If you are using a simple trigger, the follow are all optional:
- startOffset - the offset, in milliseconds, from the current time. (default is 0)
- endOffset - the offset, in milliseconds, from the current time. (default is infinity)
- repeat - the repeat count (default is 0). Can also be REPEAT_INDEFINITELY
- repeatDelay - the time delay, in milliseconds, between repeats (default is 0)
author: Michael G. Slack author: Pat Lightbody |
Method Summary | |
public void | execute(Map transientVars, Map args, PropertySet ps) |
execute | public void execute(Map transientVars, Map args, PropertySet ps)(Code) | | |
|
|