Packagecom.asfusion.mate.actions.builders
Classpublic class ServiceResponseAnnouncer
InheritanceServiceResponseAnnouncer Inheritance BaseAction Inheritance AbstractAction
ImplementsIAction

The ServiceResponseAnnouncer tag is placed inside a IActionList, so that when an object dispatches an event, and the list runs, this tag will allow you to send responses directly to the object that dispatched the event.

These responses are 3 predefined events:

Because of those predefined events, this tag is used inside a resultHandlers or faultHandlers inner-action-list that are generated after server calls.

The use of this tag will have no effect if the original event was not dispatched using the Dispatcher tag. Moreover, this tag will have no effect if no ServiceResponseHandler tag was added as an inner tag to the Dispatcher tag.

MXML Syntaxexpanded Hide MXML Syntax

The <ResponseAnnouncer> tag has the following tag attributes:

  <ResponseAnnouncer
   Properties
  type="result|fault|response"
  data="Object"
   />
  

See also

com.asfusion.mate.actions.builders.ResponseAnnouncer


Public Properties
 PropertyDefined by
  data : Object
data is a placeholder object.
ServiceResponseAnnouncer
 Inheritedproperties : Array
Properties allows you to add properties to the currentInstance.
BaseAction
  type : String
The type of response (case-sensitive).
ServiceResponseAnnouncer
Protected Properties
 PropertyDefined by
 InheritedcurrentInstance : * = null
The currentInstance is the Object that this class will use and modify to do its work.
AbstractAction
 Inheriteddocument : Object
A reference to the document object associated with the IActionList that contains this action item.
AbstractAction
Public Methods
 MethodDefined by
 Inherited
initialized(document:Object, id:String):void
Called automatically by the MXML compiler if the AbstractAction is set up by using a tag.
AbstractAction
 Inherited
trigger(scope:IScope):void
This method gets called when the IActionList (ex: EventHandlers) is running.
AbstractAction
Protected Methods
 MethodDefined by
 Inherited
complete(scope:IScope):void
The last method that trigger calls.
AbstractAction
  
createInstance(scope:IScope):Object
ServiceResponseAnnouncer
  
prepare(scope:IScope):void
The first method that trigger calls.
ServiceResponseAnnouncer
  
run(scope:IScope):void
Where all the action occurs.
ServiceResponseAnnouncer
 Inherited
setProperties(scope:IScope):void
Where all the properties are set into the currentInstance.
BaseAction
Property detail
dataproperty
data:Object  [read-write]

data is a placeholder object. This object can be used to store temporary data to pass to the ServiceResponseListener.

Implementation
    public function get data():Object
    public function set data(value:Object):void
typeproperty 
type:String  [read-write]

The type of response (case-sensitive). Possible types:

Implementation
    public function get type():String
    public function set type(value:String):void

See also

com.asfusion.mate.viewUtils.serviceResponse
Method detail
createInstance()method
protected function createInstance(scope:IScope):Object

Parameters
scope:IScope

Returns
Object
prepare()method 
protected override function prepare(scope:IScope):void

The first method that trigger calls. Usually, this is where the currentInstance is created or set if needed. In this method you can also perform any code that must be done first.

Parameters
scope:IScope
run()method 
protected override function run(scope:IScope):void

Where all the action occurs. At this moment, the currentInstance is already instantiated and all the properties are already set.

Parameters
scope:IScope