task-registry-isdk-tasks
execute sequence tasks with the aOptions of the tasks if the first task has no arguments.
- pipeline series: execute tasks with aOptions if the first task has no arguments.
- non-pipeline series: execute tasks with aOptions if the task has no arguments.
Usage
var Task = var register = Taskregister {}{ aOptionsdata++ return aOptions}register ATask {}{ aOptionsdata += 2 return aOptionsdata} var tasks = var aObject = data: 123 tasks: 'ATask' 'BTask'var result = tasks //result=[aOptions, 126] aObject = data: 123 tasks: 'ATask' 'BTask' pipeline:trueresult = tasks //result=126 //the inherited options passed to 'ATask'aObject = data: 123 tasks: 'ATask': '>': b:12 pipeline:trueresult = tasksObjectshouldbeequal aObjectresultdatashouldbeequal 124resultbshouldbeequal 12
API
TODO
Changes
v0.2
- Task Options inheritence Flag: "<"
aObject = data: 123 a: 4 tasks: 'ATask': '>': a:6 'BTask' result = tasksexecuteSyncaObject
The inherited aObject
options should be passed to ATask and the a
is 6 : {a:6}
License
MIT