Scheduler写法

Scheduler中添加batch(批处理)

globalwithsharingclass SchedulerRunSendMessageBatch implements Schedulable

{

    globalvoid execute(SchedulableContext sc)

    {

        BatchSendMessage bcrbatch = new BatchSendMessage();

         Database.executeBatch(bcrbatch);

    }

}


你可能感兴趣的:(Scheduler写法)