Identifying Run Requests

Tasks can run in several different modes:
  • New, which means this is the first time this task is running. The task is to start processing from the beginning.
  • Restart, which means the task has run at least once and was requested to restart the process again from the beginning. A restart occurs when the task errors out from the previous run and is being restarted from the Services Framework user interface.
  • Resume, which means the task has run at least once and was requested to resume where it last successfully completed. A task can resume only if it keeps track of its resume points and one exists for this run. For more information, see Resume Points.
When a task is processing, the Base Task offers methods for identifying the mode in which it is running. The task may change its processing behavior based on the run request mode. The modes are:
  • isNew()
  • isRestart()
  • isResume()

Refer to the Javadoc information for additional information about methods and signatures.