DMExec Class
Constructor of execution manager
Used as this context for the all (add, before, after) execution callbacks
Constructor
DMExec
(
-
module -
inst -
finish
Parameters:
-
moduleDMModule -
instObject- {node:Element, args:Array, data: *}
-
finishFunction- execution finish callback
Item Index
Methods
_execute
(
DMExec
protected
-
type
Proceed callback execution
internal use only
Parameters:
-
typeString?
Returns:
children
()
Object
Return children elements data
Structure:
Object {
module_name : Array.<
{
node : Element
args : Array
}
>,
...
}
Returns:
Object:
dependency
(
Object?
-
name
Return dependency information
Structure:
Object {
name : String - name of the module
data : * - Global (per module) execution context (mixed data)
instances: Array.<
{
node : Element
args : Array
data : *
}
>
}
Parameters:
-
nameString
Returns:
Object?:
next
()
Force current execution manager instance to execute next callback
stop
()
Stops current execution
wait
(
-
timeout -
stop
Initiate execution timeout
Parameters:
-
timeoutNumber?- wait timeout in ms;
default: 5000
- wait timeout in ms;
-
stopBoolean?- will abort execution if timeout reached & value is true;
default: false
- will abort execution if timeout reached & value is true;
Properties
STATES
INITIAL: number, BEFORE: number, MAIN: number, AFTER: number, FINISHED: number
static
Internal execution states;
internal use only
INITIAL- initial stateBEFORE- execution of before callbacksMAIN- execution of add callbackAFTER- execution of after callbacksFINISHED- finished state
TYPES
NEXT: string, STOP: string
static
Execution types
internal use only