com.waveset.task
Class DeferredScanner

java.lang.Object
  extended bycom.waveset.task.Executor
      extended bycom.waveset.task.DeferredScanner

public class DeferredScanner
extends Executor

A task that walks over objects in the repository looking for deferred task triggers, and launching other tasks to handle them. This is a general mechanism that can be used for a variety of applications including Start Date Enable, Sunset Dates, and Transition Periods.

Enhanced for IdPak 2005Q4M3 to perform a "background refresh" of Type.USER. DeferredScanner can query for users with deferred tasks that are ready to run (rather than getting and examining the properties of each object) to the extent that Type.USER has been refreshed.


Field Summary
static java.lang.String ATT_DATE
          Deprecated. 2005Q4M3 - If you need a public constant, use com.waveset.object.Attribute.DATE.getName().
static java.lang.String ATT_DESCRIPTION
           
static java.lang.String ATT_EXECUTE_ONCE
          When 'true' causes a task trigger to be removed following a successful invocation
static java.lang.String ATT_ORGANIZATION
           
static java.lang.String ATT_OWNER
           
static java.lang.String ATT_TASK_DEFINITION
          Various other attributes of deferred tasks.
static java.lang.String ATT_TASK_NAME
           
static java.lang.String code_id
           
static java.lang.String PROP_TASKS
          Deprecated. 2005Q4M3 - If you need a public constant, use com.waveset.object.Constants.DEFERRED_TASKS_PROPERTY.
static java.lang.String VAR_ID
          Launch variables we pass to the triggered task.
static java.lang.String VAR_TYPE
          Input variable specifying the type of object to iterate over.
static java.lang.String XML_HEADER
          The XML header for reports.
 
Fields inherited from class com.waveset.task.Executor
_monitor, _suspendRequested, _terminateRequested, trace
 
Constructor Summary
DeferredScanner()
           
 
Method Summary
 void execute(TaskContext context, TaskInstance task)
          The main task execution method.
 
Methods inherited from class com.waveset.task.Executor
addExtendedResult, delete, doRealWork, getExtendedResult, getPool, isSuspendRequested, isTerminateRequested, println, processEvent, setPool, setSuspendRequested, setTerminateRequested
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

code_id

public static final java.lang.String code_id
See Also:
Constant Field Values

VAR_TYPE

public static final java.lang.String VAR_TYPE
Input variable specifying the type of object to iterate over.

See Also:
Constant Field Values

VAR_ID

public static final java.lang.String VAR_ID
Launch variables we pass to the triggered task.

See Also:
Constant Field Values

PROP_TASKS

public static final java.lang.String PROP_TASKS
Deprecated. 2005Q4M3 - If you need a public constant, use com.waveset.object.Constants.DEFERRED_TASKS_PROPERTY.

Object property we look at for the task list.

See Also:
Constant Field Values

ATT_DATE

public static final java.lang.String ATT_DATE
Deprecated. 2005Q4M3 - If you need a public constant, use com.waveset.object.Attribute.DATE.getName().

Attribute of a deferred task ("trigger"). This attribute represents the date a deferred task should start.


ATT_TASK_DEFINITION

public static final java.lang.String ATT_TASK_DEFINITION
Various other attributes of deferred tasks.

See Also:
Constant Field Values

ATT_TASK_NAME

public static final java.lang.String ATT_TASK_NAME
See Also:
Constant Field Values

ATT_OWNER

public static final java.lang.String ATT_OWNER
See Also:
Constant Field Values

ATT_ORGANIZATION

public static final java.lang.String ATT_ORGANIZATION
See Also:
Constant Field Values

ATT_DESCRIPTION

public static final java.lang.String ATT_DESCRIPTION
See Also:
Constant Field Values

ATT_EXECUTE_ONCE

public static final java.lang.String ATT_EXECUTE_ONCE
When 'true' causes a task trigger to be removed following a successful invocation

See Also:
Constant Field Values

XML_HEADER

public static final java.lang.String XML_HEADER
The XML header for reports. Do we want a separate DTD for these?

See Also:
Constant Field Values
Constructor Detail

DeferredScanner

public DeferredScanner()
Method Detail

execute

public void execute(TaskContext context,
                    TaskInstance task)
The main task execution method.

Overrides:
execute in class Executor
See Also:
Executor.doRealWork(TaskContext, TaskInstance)