I have list of templates and each has different set of parameters , and each template has to execute at specific time.How do i approach this problem in Quartz scheduler
Template Parameters list Time of execution
T1 ['date','frequency'] 3:30 AM
T2 ['Id'] 10:20 AM
T3 ['customerid','houseNo','Info'] 6:06 PM
and execute() method will perform some operation on parameter list for each template.I want to do this in a single Quartz job. I was trying something like this :
def list = ["*/2 * * * * ?","*/10 * * * * ?","*/20 * * * * ?"]
String triggerName;
int j=0;
for(cronExpr in list)
{
j++;
triggerName="trigger"+Integer.toString(j)
triggerName = new CronTrigger();
triggerName.setName(triggerName);
triggerName.setGroup(job.getGroup());
triggerName.setJobName(job.getName());
triggerName.setJobGroup(job.getGroup());
triggerName.setCronExpression(cronExpr);
}
I have asked similar question before without any satisfactory answer ,it would be very helpful if someone can provide a better way to approach this problem along with some guide or useful link on quartz scheduling which can walk me through basic and advanced topics so that i have better understanding on how to use multiple triggers or some way to approach the above problem.