You are viewing the documentation for Blueriq 17. Documentation for other versions is available in our documentation directory.
Description
With the help of the Scheduler Quartz Component generic Blueriq jobs can be scheduled unscheduled or rescheduled. This jobs does not need to have knowledge about the specific job scheduler used (in our case about Quartz), they only need to implement the scheduling interfaces defined in Blueriq. This interfaces and the how the jobs should be implemented and scheduled are detailed below.
Creating custom jobs
A custom jobs should implement in both Java and .Net the IJob Blueriq interface. The execute(IExecutionContext context) method defined in the IJob interface is going to be executed when the job is executed. The job's scheduler and the job's parameters can be accessed from the execution context: context.getParameters() and context.getScheduler().
Example
Scheduling, unscheduling and rescheduling custom jobs
Scheduling custom jobs
The scheduling method of the IScheduler has four parameters:
- the class of the job
- the paramteres of the job
- can be created by calling the IScheduler.createJobParameters().
- the schedule of the job
- can be created by calling IScheduler.getScheduleBuilder().onDate(Date date) or IScheduler.getScheduleBuilder().now() methods
- the ID of the job
- can be created by calling the IScheduler.createJobId(String jobId)
Unscheduling custom jobs
Rescheduling custom jobs