Skip to main content
Is there any way to run an schedule job code wwithout using a developer window.

I have the next code in my Developer organization:

global with sharing class SCH implements Schedulable{

    global void execute(SchedulableContext sc){

        PruebaSCH c = new PruebaSCH();

        c.PruebaSCH();

    }

    

    Public void SchedulerMethod() {   

        system.schedule('Proceso SCH 00', '0 0 * * * ?', new SCH());

        system.schedule('Proceso SCH 10', '0 15 * * * ?', new SCH());

        system.schedule('Proceso SCH 20', '0 30 * * * ?', new SCH());

        system.schedule('Proceso SCH 30', '0 45 * * * ?', new SCH());

   }

}

And when i want to activate job to place a proccess (PruebaSCH()) every 15 minutes, the only way that i found was to run the next command in an anonymous window:

ScheduleCallbackProcess epa = new ScheduleCallbackProcess();

epa.SchedulerMethod();

The problem comes when I include this class in an Manage Package so the code becomes hidden (protected). When I install this package in another ORG, I have no way to launch the schedule job via Anonymous window.

Is there any other way to bypass this issue?
2 answers
0/9000