Packagecom.esri.bacore
Classpublic class BATaskCompletedEvent
InheritanceBATaskCompletedEvent Inheritance flash.events.Event

The BATaskCompletedEvent event is dispatched when a Community Analyst Task is successfully completed.

See also

BATask
BACommand


Public Properties
 PropertyDefined By
  messages : Array
[read-only] Array of TaskMessage items returned by the task.
BATaskCompletedEvent
  requestUrl : String
[read-only] Human readable URL of the request completed or null.
BATaskCompletedEvent
  result : *
[read-only] Task execution result.
BATaskCompletedEvent
  taskName : String
[read-only] Task name.
BATaskCompletedEvent
Public Methods
 MethodDefined By
  
BATaskCompletedEvent(name:String, result:*, messages:Array = null, requestUrl:String = null)
Creates a new instance of the BATaskCompletedEvent class.
BATaskCompletedEvent
  
clone():Event
[override] Creates a clone of the event.
BATaskCompletedEvent
  
toString():String
[override] Gets the description of the event.
BATaskCompletedEvent
Public Constants
 ConstantDefined By
  COMPLETE : String = taskCompleted
[static] The BATaskCompletedEvent.COMPLETE constant defines the value of the type property of the event object for a taskCompleted event.
BATaskCompletedEvent
Property Detail
messagesproperty
messages:Array  [read-only]

Array of TaskMessage items returned by the task.


Implementation
    public function get messages():Array

See also

requestUrlproperty 
requestUrl:String  [read-only]

Human readable URL of the request completed or null.


Implementation
    public function get requestUrl():String
resultproperty 
result:*  [read-only]

Task execution result.


Implementation
    public function get result():*
taskNameproperty 
taskName:String  [read-only]

Task name.


Implementation
    public function get taskName():String
Constructor Detail
BATaskCompletedEvent()Constructor
public function BATaskCompletedEvent(name:String, result:*, messages:Array = null, requestUrl:String = null)

Creates a new instance of the BATaskCompletedEvent class.

Parameters
name:String — Task name.
 
result:* — Task result.
 
messages:Array (default = null) — Array of task messages.
 
requestUrl:String (default = null) — URL
Method Detail
clone()method
override public function clone():Event

Creates a clone of the event.

Returns
Event — Shallow copy of the event.
toString()method 
override public function toString():String

Gets the description of the event.

Returns
String — String representation of the event.
Constant Detail
COMPLETEConstant
public static const COMPLETE:String = taskCompleted

The BATaskCompletedEvent.COMPLETE constant defines the value of the type property of the event object for a taskCompleted event.

The properties of the event object have the following values:

PropertyValue
babblesfalse
cancelablefalse
currentTargetThe Object that defines the event listener that handles the event.
targetThe BATask object that dispatched the event. This is an instance of a Community Analyst Task that was executed.
taskNameName of a Community Analyst Task that was executed.
resultTask execution result object.
messagesOptional array of TaskMessage objects received.

The currentTarget and target properties are specified after the event was dispatched. A responder object passed in parameters of a Community Analyst Task execute method receives the event before it is dispatched.