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

The BATaskCompletedEvent event is dispatched when a Business Analyst task is successfully completed.

See also

BATask
BACommand


Public Properties
 PropertyDefined by
  messages : Array
[read-only] Array of the TaskMessage type items.
BATaskCompletedEvent
  result : *
[read-only] Task execution result.
BATaskCompletedEvent
  taskName : String
[read-only] Task name.
BATaskCompletedEvent
Public Methods
 MethodDefined by
  
BATaskCompletedEvent(name:String, result:Array, messages:* = null)
Creates a new instance of the BATaskCompletedEvent class.
BATaskCompletedEvent
  
clone():Event
Creates a clone of the event.
BATaskCompletedEvent
  
toString():String
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 the TaskMessage type items.

Implementation
    public function get messages():Array

See also

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:Array, messages:* = null)

Creates a new instance of the BATaskCompletedEvent class.

Parameters
name:String — Task name.
 
result:Array — Task result.
 
messages:* (default = null) — Array of the TaskMessage type items.
Method detail
clone()method
public override function clone():Event

Creates a clone of the event.

Returns
Event — Shallow copy of the event.
toString()method 
public override 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 Business Analyst task that was executed.
taskNameName of a Business 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 Business Analyst task execute method receives the event before it is dispatched.