To create and test a schedulable class, let’s take a look at how to schedule the class using the user interface.
- Create an apex which implemented the schedulable.
global class ScheduleServiceExample implements Schedulable { global void execute(SchedulableContext SC) { YourServiceClass.serviceExecute(); } }
- Your Name -> Setup
- App Setup -> Develop -> Apex Classes
- Schedule Apex button at the top -> Click Schedule Apex button
- Here you can manually schedule an apex class which implemented the schedulable interface.