Fixed problem that JobExecutionContext.getPreviousFireTime() returns the actual execution time.
This seems to be because the trigger is updated before the TriggerFiredBundle, is created.
I assume the TriggerFiredBundle holds the data available later in a job implementation via JobExecutionContext.
Thus the update of the trigger needs to happen after the TriggerFiredBundle has been created with trigger values.
Fixed problem that JobExecutionContext.getPreviousFireTime() returns the actual execution time.
This seems to be because the trigger is updated before the TriggerFiredBundle, is created. I assume the TriggerFiredBundle holds the data available later in a job implementation via JobExecutionContext.
Thus the update of the trigger needs to happen after the TriggerFiredBundle has been created with trigger values.