- java.lang.Object
-
- cn.feiliu.taskflow.sdk.workflow.def.tasks.Task<For>
-
- cn.feiliu.taskflow.sdk.workflow.def.tasks.For
-
public class For extends Task<For> implements ILoopTask<For>
for 循环遍历表达式: ${workflow.input.elements} 循环体获取元素: ${eachNameRef.output.element} 循环体获取索引下标: ${eachNameRef.output.index}------------------------------------- | for(int i=0;i<$elements.size;i++) | ------------------------------------- |循环调用任务节点处理 | task1($elements[i],$index) | | | task2($elements[i],$index) | | | |-----------------------------------| | END | |-----------------------------------|
-
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 For
childTask(Task<?> task)
添加子任务void
updateWorkflowTask(FlowTask workflowTask)
Override this method when the sub-class should update the default WorkflowTask generated usingTask.toWorkflowTask()
-
从类继承的方法 cn.feiliu.taskflow.sdk.workflow.def.tasks.Task
description, getChildrenTasks, getDescription, getInput, getName, getParentTasks, getStartDelay, getTaskReferenceName, getType, getWorkflowDefTasks, input, input, input, input, input, input, input, input, input, input, isOptional, name, setName, setOptional, setStartDelay, setTaskReferenceName, toWorkflowTask
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 cn.feiliu.taskflow.sdk.workflow.def.ILoopTask
childTasks, getElementExpression, getIndexExpression, getTaskReferenceName
-
-
-
-
构造器详细资料
-
For
public For(String taskReferenceName, String eachExpression)
Execute tasks in a loop determined by the condition set using condition parameter. The loop will continue till the condition is true- 参数:
taskReferenceName
-eachExpression
- 根据循环类型确定参数名称及数据类型 例如: elements: ${workflow.input.elements} -- 接收数组元素
-
For
public For(String taskReferenceName, PathExpression expression)
-
-
方法详细资料
-
updateWorkflowTask
public void updateWorkflowTask(FlowTask workflowTask)
从类复制的说明:Task
Override this method when the sub-class should update the default WorkflowTask generated usingTask.toWorkflowTask()
- 覆盖:
updateWorkflowTask
在类中Task<For>
-
-