Revenue Management API Developer Reference


global 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);



global ScheduleJobScheduler(Schema.SObjectType groupName)

Input Parameters

Name Type Description
groupName Schema.SObjectType The sobject type of the records that should be repopulated in the staging tables.


global void execute(SchedulableContext sc)

© Copyright 2009–2017, inc. Confidential – all rights reserved. Various trademarks held by their respective owners.