_ojschedule

Description

The schedule component the scheduler creates to handle a ojschedule schedule instruction.

This component supports setting certain properties at runtime which will override what have been set by the execution of the schedule instruction.

This schedules state will be

READY
When first created or when ready to run the scheduled job.
EXECUTING
When the scheduler is executing the job.
COMPLETE
If the scheduled job completes.
NOT COMPLETE
If the scheduled job fails to complete and a retry schedule is being used.
EXCEPTION
If the scheduled job fails to complete and the retry schedule has expired or the schedule job fails to complete and no retry schedule was specified.

Properties

NameDescriptionRequired
name A name, can be any text. No.
timeZone The time zone. Changes at runtime will be ignored. Set automatically.
nextDue The time the job is next due. Changing this property changes when the job is nexted schdeduled. Set automatically.
scheduleDate This is the start of the last normal schedule. The schedule date is used when the retry schedule polls past midnight, yet your business data is from the day before. The schedule date provides a consistent business date which can be useful as the date for file names etc. This property can be changed temporarily but will be reset next time the schedule runs. Set automatically.
lastComplete The interval in the normal schedule in which the scheduled job last completed. This is the interval that will be used to determine when the next normal schedule is due. It can only be changed using the reSchedule property. Read only.
clock The clock to use. Tells the current time. Set automatically.
reSchedule Allows the schedule to be set back. Unlike setting nextDue which with every successful completion will cause the schedule to move forward an interval, setting reSchedule will cause the schedule to be revaluated. If you have a schedule which runs at 7am every day, setting the reschedule property to 2am today will cause the schdule to rerun again as if it were 7am. No.

(c) Rob Gordon 2005