Skip to content

Instantly share code, notes, and snippets.

@dhoechst
Created October 22, 2014 04:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dhoechst/55d1859390a5261e0199 to your computer and use it in GitHub Desktop.
Save dhoechst/55d1859390a5261e0199 to your computer and use it in GitHub Desktop.
SchedulableDemo
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