daily pastebin goal
35%
SHARE
TWEET

Untitled

a guest Feb 19th, 2019 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. global class abc_RiskSchedulerProcessor implements System.Schedulable {
  2.     global abc_RiskSchedulerProcessor() {
  3.  
  4.     }
  5.     global void execute(System.SchedulableContext SC) {
  6.  
  7.     }
  8. }
  9.      
  10. Datetime sysTime = System.now();
  11. sysTime = sysTime.addSeconds(5);
  12. String chron_exp = '' + sysTime.second() + ' ' + sysTime.minute() + ' ' + sysTime.hour() + ' '
  13.    + sysTime.day() + ' ' + sysTime.month() + ' ? ' + sysTime.year();
  14. abc_RiskSchedulerProcessor scheduler = new abc_RiskSchedulerProcessor();
  15. System.schedule('RiskScheduler',chron_exp ,scheduler);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top