Task Initialization

Services Framework invokes the initialize( ) method before invoking runTask, endOfDayQuery, endOfDayExec, or cleanup methods for a task. This allows it to initialize its own resources. To prevent static variables for sub-tasks from being initialized multiple times in the initialize( ) method, a check must be performed. If sub-tasks use static variable initialization inside the initialize( ) method and should not initialize more than once, the duplicate initialization check must be performed on a static variable.
public  void  initialize()
Note: If invoked inside the initialize method, the following methods have no effect:
  • saveTaskMessage( )
  • saveTaskMessages( )