+ Start a Discussion
sai kumar 49sai kumar 49 

what is schedulablecontext? in execute method

Best Answer chosen by sai kumar 49
Jayant JadhavJayant Jadhav
@Sai,

global void execute(SchedulableContext sc){}

The parameter of this method is a SchedulableContext object. It provides the getTriggerId method that returns the ID of the CronTrigger API object. After a class has been scheduled, a CronTrigger object is created that represents the scheduled job.
The CronTrigger object is queried to get additional information about the scheduled job. The Cron expression and the number of times the job has been run already is written to the debug log.