public class XMonthlyScheduleSequence extends Object implements ScheduleSequence
Logic wrapper filters dates, to generate schedule for every month, every other month, etc ...
This implementation is very specifically addressed to deal with monthly, quarterly, annually, etc date filtering requirements. Implementation uses org.quartz.TriggerUtils class to generate List of dates from Cron expression.
It uses current time zone, where application is hosted.
Note: Dates used in generating schedule must be wrapped with required time accuracy. e.g. Start Date: 02/01/09 10:10 End Date: 02/05/09 10:10 Generated Dates will be in between 02/01/09 10:10 and 02/05/09 10:10. Any date expected before 02/01/09 10:09 will be ignored. Date 02/01/09 10:00 will be ignored. Any date expected after 02/05/09 10:11 will be ignored. Date 02/05/09 12:00 will be ignored.
GROUP, JOBGROUP, JOBNAME, NAME| Constructor and Description |
|---|
XMonthlyScheduleSequence(Integer frequency)
Constructs a XMonthlyScheduleSequence.java.
|
public XMonthlyScheduleSequence(Integer frequency)
frequency - can be 1(monthly), 2(bi-monthly), 3(quarterly) etc..public List<Date> executeScheduleSequence(String expression, Date startDate, Date endDate) throws ParseException
ScheduleSequenceexecuteScheduleSequence in interface ScheduleSequenceParseException - can thrown in case of invalid expression.ScheduleSequence.executeScheduleSequence(java.lang.String, java.util.Date, java.util.Date)Copyright © 2013 The Kuali Foundation. All Rights Reserved.