Created
October 22, 2014 04:15
-
-
Save dhoechst/55d1859390a5261e0199 to your computer and use it in GitHub Desktop.
SchedulableDemo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class SchedulableDemo implements Schedulable{ | |
public Integer counter; | |
public void execute(SchedulableContext sc) { | |
if (counter == null) { | |
counter = 1; | |
} else { | |
counter ++; | |
} | |
System.debug(counter); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment