The ScheduleJob FunctionProvider
has two modes of operation, depending on whether you specify the jobClass
parameter or not. If you declare the jobClass
parameter, ScheduleJob
will create a JobDetail
with jobClass
as the class implementing the job interface.
<pre-functions> <function type="class"> <arg name="class.name">com.opensymphony.workflow.util.ScheduleJob </arg> <arg name="jobName">Scheduler Test </arg> <arg name="triggerName">SchedulerTestTrigger</arg> <arg name="triggerId">10 </arg> <arg name="jobClass">packtpub.osw.SendMailIfActive </arg> <arg name="schedulerStart">true </arg> <arg name="local">true </arg> </function> </pre-functions>
This fragment will schedule a job based on the SendMailIfActive
class with the current time as the start time. The ScheduleJob
like any FunctionProvider
can be declared as a pre or a post function.
On the...