Revenue Management API Developer Reference
|
ffrr.ScheduleJobSchedulerglobal with sharing class ScheduleJobScheduler implements Schedulable This class executes the Async Apex Job that clears the old data and repopulates with new data in the staging tables for the specified group type. It is used as the object parameter to the System.schedule method that schedules the class to run at the time specified by the cron expression. Sample Code//Note: This sample code is for demonstration purposes only. It is not intended for //use in a production environment, is not guaranteed against defects or errors, and //is in no way optimized or streamlined. //Create an instance of the class for project__c sObject type. ffrr.ScheduleJobScheduler scheduleJobSchedulerSample = new ffrr.ScheduleJobScheduler(Opportunity.SObjecttype); //Create the cron expression for every day for the whole year of 2013. String sampleCronExpression = '0 0 0 * * ? 2017'; //Run the System.schedule method and get the Job id. ID cronJobID = System.schedule('Test schedule', sampleCronExpression, scheduleJobSchedulerSample); Methods
ScheduleJobSchedulerglobal ScheduleJobScheduler(Schema.SObjectType groupName) Input Parameters
executeglobal void execute(SchedulableContext sc) |