Package | com.asfusion.mate.actions |
Class | public class DataCopier |
Inheritance | DataCopier AbstractAction |
Implements | IAction |
IActionList
is running.
The DataSaver tags is a handy tag to quickly save values into some storage.
You can use the IActionList
"data" as a temporary storage from where action that follow in the IActionList
can read values.
You can also use some other external variable as the storage.
Property | Defined by | ||
---|---|---|---|
destination : Object
The destination attribute specifies where to store the data coming from the source.
| DataCopier | ||
destinationCache : String
The destinationCache is only useful when the destination is a class.
| DataCopier | ||
destinationKey : String
If you want to set the value of a property of the destination object, instead of the destination itself,
you need to specify this attribute.
| DataCopier | ||
source : Object
The source attribute specifies where to get the data to copy from.
| DataCopier | ||
sourceCache : String
The sourceCache is only useful when the source is a class.
| DataCopier | ||
sourceKey : String
If you need a property from the source instead of the source itself, you need to specify this attribute.
| DataCopier |
Method | Defined by | ||
---|---|---|---|
The last method that
trigger calls. | AbstractAction | ||
getRealObject(obj:*, scope:IScope, cache:String):*
Helper function to get the source or destination objects
from either a String value, a SmartObject or other.
| DataCopier | ||
The first method that
trigger calls. | AbstractAction | ||
Where all the action occurs.
| DataCopier | ||
setProperties(scope:IScope):void
Where all the properties are set into the
currentInstance . | AbstractAction |
destination | property |
destination:Object
[read-write]The destination attribute specifies where to store the data coming from the source. It can be one of this options: event, data, result, or another object.
Implementation public function get destination():Object
public function set destination(value:Object):void
destinationCache | property |
destinationCache:String
[read-write]The destinationCache is only useful when the destination is a class. This attribute defines which cache we will look up for a created object.
Implementation public function get destinationCache():String
public function set destinationCache(value:String):void
destinationKey | property |
destinationKey:String
[read-write]If you want to set the value of a property of the destination object, instead of the destination itself, you need to specify this attribute.
Implementation public function get destinationKey():String
public function set destinationKey(value:String):void
source | property |
source:Object
[read-write]The source attribute specifies where to get the data to copy from. It can be one of this options: event, data, result, fault, lastReturn, message, scope, or another object.
Implementation public function get source():Object
public function set source(value:Object):void
sourceCache | property |
sourceCache:String
[read-write]The sourceCache is only useful when the source is a class. This attribute defines which cache we will look up for a created object.
Implementation public function get sourceCache():String
public function set sourceCache(value:String):void
sourceKey | property |
sourceKey:String
[read-write]If you need a property from the source instead of the source itself, you need to specify this attribute.
Implementation public function get sourceKey():String
public function set sourceKey(value:String):void
getRealObject | () | method |
protected function getRealObject(obj:*, scope:IScope, cache:String):*
Helper function to get the source or destination objects from either a String value, a SmartObject or other.
Parametersobj:* |
|
scope:IScope |
|
cache:String |
* |
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.
scope:IScope |