ActionScript® 3.0 Reference for the Adobe® Flash® Platform
Home  |  Show Packages and Classes List |  Packages  |  Classes  |  What's New  |  Index  |  Appendixes
lc.procmgmt.commands 

TaskCommand  - AS3 ADEP Workspace

Packagelc.procmgmt.commands
Classpublic class TaskCommand
InheritanceTaskCommand Inheritance Object
Implements ICommand
Subclasses AbandonCommand, ClaimAndOpenCommand, ClaimCommand, CompleteCommand, EditDescriptionCommand, InitiateFromStartTaskCommand, LockCommand, RejectCommand, SetVisibleCommand, TaskUserCommand, UnlockCommand

Language Version: ActionScript 3.0
Product Version: Adobe Digital Enterprise Platform Document Services - Workspace 9
Runtime Versions: AIR (unsupported), Flash Player 9, Flash Player 10

The TaskCommand class is a generic command that has direct association with a Task object. The TaskCommand class should not be used directly but extended by different types of commands for tasks.



Public Properties
 PropertyDefined By
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
  name : String
[read-only] The name of the command for the task.
TaskCommand
  task : lc.procmgmt.domain:Task
The task that is associated with the command.
TaskCommand
Public Methods
 MethodDefined By
  
Constructor.
TaskCommand
  
Retrieves a Token object to allow the caller to be notified when the execution is complete.
TaskCommand
 Inherited
Indicates whether an object has a specified property defined.
Object
 Inherited
Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter.
Object
 Inherited
Indicates whether the specified property exists and is enumerable.
Object
 Inherited
Sets the availability of a dynamic property for loop operations.
Object
 Inherited
Returns the string representation of this object, formatted according to locale-specific conventions.
Object
 Inherited
Returns the string representation of the specified object.
Object
 Inherited
Returns the primitive value of the specified object.
Object
Property Detail

name

property
name:String  [read-only]

Language Version: ActionScript 3.0
Product Version: Adobe Digital Enterprise Platform Document Services - Workspace 9
Runtime Versions: AIR (unsupported), Flash Player 9, Flash Player 10

The name of the command for the task.



Implementation
    public function get name():String

task

property 
public var task:lc.procmgmt.domain:Task

Language Version: ActionScript 3.0
Product Version: Adobe Digital Enterprise Platform Document Services - Workspace 9
Runtime Versions: AIR (unsupported), Flash Player 9, Flash Player 10

The task that is associated with the command.

The default value is null.

Constructor Detail

TaskCommand

()Constructor
public function TaskCommand(task:lc.procmgmt.domain:Task, name:String)

Language Version: ActionScript 3.0
Product Version: Adobe Digital Enterprise Platform Document Services - Workspace 9
Runtime Versions: AIR (unsupported), Flash Player 9, Flash Player 10

Constructor.

Parameters
task:lc.procmgmt.domain:Task — Specifies the task to be associated with the command.
 
name:String — Specifies the name of the command.
Method Detail

execute

()method
public function execute():lc.foundation.util:Token

Language Version: ActionScript 3.0
Product Version: Adobe Digital Enterprise Platform Document Services - Workspace 9
Runtime Versions: AIR (unsupported), Flash Player 9, Flash Player 10

Retrieves a Token object to allow the caller to be notified when the execution is complete. The execute method must be overridden by the subclass.

Classes that extend the TaskCommand class should write their own execution code within the execute method.

Returns
lc.foundation.util:Token — A token that allows the caller to be notified when the execution is complete.