Packagecom.rosettastone.library.taskmanager
Interfacepublic interface IDecoratorTask extends ITask, flash.events.IEventDispatcher
Implementors FactoryTask, InnocuousTaskDecorator, InterruptibleDecoratorTask, RetryOnFailureDecoratorTask, TaskWithTimeout

Special interface for tasks that decorate other tasks. This interface can assist external code in getting to the lowest-level failing task in the event of an error.



Public Properties
 PropertyDefined By
 Inheriteddata : *
[read-only] Optional data parameter passed to the Task complete/error/interruption method.
ITask
  decoratedTask : ITask
[read-only] Inner (decorated) Task.
IDecoratorTask
 InheritedisComplete : Boolean
[read-only] The current task has successfully completed execution.
ITask
 InheritedisErrored : Boolean
[read-only] The current task failed.
ITask
 InheritedisRunning : Boolean
[read-only] The task is currently running.
ITask
 Inheritedmessage : String
[read-only] Optional message parameter passed to the task complete/error/interruption method.
ITask
 InheritednumInternalOperations : int
[read-only] Number of internal operations conducted by this task.
ITask
 InheritednumInternalOperationsCompleted : int
[read-only] Number of internal operations that have completed.
ITask
 InheritednumInternalOperationsPending : int
[read-only] Number of internal operations not yet completed.
ITask
 InheritednumTimesCompleted : int
[read-only] Number of times this task has completed.
ITask
 InheritednumTimesErrored : int
[read-only] Number of times this task has errored.
ITask
 InheritednumTimesInterrupted : int
[read-only] Number of times this task has been interrupted.
ITask
 InheritednumTimesReset : int
[read-only] Number of times this task has been reset.
ITask
 InheritednumTimesStarted : int
[read-only] Number of times this task has been started.
ITask
 Inheritedrunning : Boolean
[read-only] The task is currently running.
ITask
 Inheritedsynchronous : Boolean
[read-only] The current task can be executed synchronously.
ITask
 InheritedtaskIdentifier : String
(Optional) human-readable label for task.
ITask
 InheriteduniqueID : Number
[read-only] Unique ID for a task.
ITask
Public Methods
 MethodDefined By
 Inherited
and(... chainedTasks):ITask
Executes the specified tasks when the current task is executed.
ITask
 Inherited
or(... chainedTasks):ITask
Executes the specified tasks if the current task fails.
ITask
 Inherited
reset():void
Resets the task to it's pre-run state.
ITask
 Inherited
Starts a task.
ITask
 Inherited
then(... chainedTasks):ITask
Executes the specified tasks once the current task has completed successfully.
ITask
 Inherited
withCompleteHandler(completeHandler:Function):ITask
Although tasks dispatch TaskEvents to indicate completion, this method may also be used for notification purposes.
ITask
 Inherited
withErrorHandler(errorHandler:Function):ITask
Although tasks dispatch TaskEvents to indicate failure, this method may also be used for notification purposes.
ITask
 Inherited
withFinalHandler(finalHandler:Function):ITask
This handler is invoked upon either success or failure of the Task.
ITask
 Inherited
withStartedHandler(startedHandler:Function):ITask
Although tasks dispatch TaskEvents to indicate starting, this method may also be used for notification purposes.
ITask
Property Detail
decoratedTaskproperty
decoratedTask:ITask  [read-only]

Inner (decorated) Task.


Implementation
    public function get decoratedTask():ITask