Hello,
I have scheduled a campaign which have 2 cron expressions, lets say( 0 14 15 26 6 ? and 0 14 15 3 7 ?) and it created 2 triggers also : (92caa011-1575-42d5-bda6-0c8cdfeba03f, d21422e9-35b4-4c7c-9ed6-c7dcaa78e193)
I have written code in Java inside a :
public void execute(JobExecutionContext context) throws JobExecutionException {
Trigger trigger = context.getTrigger();
}
In trigger, i should get two values , both : 92caa011-1575-42d5-bda6-0c8cdfeba03f, d21422e9-35b4-4c7c-9ed6-c7dcaa78e193
Also,getting only cron from the following code.
if (trigger instanceof CronTriggerImpl) {
CronTriggerImpl cronTrigger = (CronTriggerImpl) trigger;
cronExpression = cronTrigger.getCronExpression();
log.info(“Cron in batch sms job :” + cronExpression);
}
but I am getting only one value i.e. d21422e9-35b4-4c7c-9ed6-c7dcaa78e193 and its respective cron expression.
Kindly help with this like how can i get both the trigger name values and its respective cron expressions.