Winter '12 Force.com Platform Release
New System Methods

The following methods have been added to the System class:

  • isBatch: Determines if the currently executing code is invoked by a batch Apex job.
  • isFuture: Determines if the currently executing code is invoked by code contained in a method annotated with @future.
  • isScheduled: Determines if the currently executing code is invoked by a scheduled Apex job.

These methods can be used to determine the execution context for Apex code.


Release Webinar
watch now