类 ForkFor
- java.lang.Object
-
- cn.feiliu.taskflow.sdk.workflow.def.tasks.Task<ForkFor>
-
- cn.feiliu.taskflow.sdk.workflow.def.tasks.ForkFor
-
public class ForkFor extends Task<ForkFor> implements ILoopTask<ForkFor>
示例数据:elements: [A,B,C] 遍历数组原数,并行调用任务----------------------------- | fork-for | ----------------------------- | | | task-1('A') task-1('B') task-1('C') | | | task-2('A') task-2('B') task-2('C') | | | ----------------------------- | END | ------------------------------ 从以下版本开始:
- 2024-09-08
- 作者:
- SHOUSHEN.LUAN
-
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 ForkForchildTask(Task<?> task)添加子任务voidupdateWorkflowTask(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
-
-
-
-
构造器详细资料
-
ForkFor
public ForkFor(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} -- 遍历数组
-
ForkFor
public ForkFor(String taskReferenceName, PathExpression eachExpression)
-
-
方法详细资料
-
updateWorkflowTask
public void updateWorkflowTask(FlowTask workflowTask)
从类复制的说明:TaskOverride this method when the sub-class should update the default WorkflowTask generated usingTask.toWorkflowTask()- 覆盖:
updateWorkflowTask在类中Task<ForkFor>
-
-