类 DynamicFork
- java.lang.Object
-
- cn.feiliu.taskflow.sdk.workflow.def.tasks.Task<DynamicFork>
-
- cn.feiliu.taskflow.sdk.workflow.def.tasks.DynamicFork
-
public class DynamicFork extends Task<DynamicFork>
-
-
字段概要
字段 修饰符和类型 字段 说明 static StringFORK_TASK_INPUT_PARAMstatic StringFORK_TASK_PARAM
-
构造器概要
构造器 构造器 说明 DynamicFork(String taskReferenceName, WorkTask forkPrepareTask)Dynamic fork task that executes a set of tasks in parallel which are determined at run time.DynamicFork(String taskReferenceName, String forkTasksParameter, String forkTasksInputsParameter)Dynamic fork task that executes a set of tasks in parallel which are determined at run time.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected List<FlowTask>getChildrenTasks()Override this method when sub-classes will generate multiple workflow tasks.StringgetForkTasksInputsParameter()StringgetForkTasksParameter()JoingetJoin()protected List<FlowTask>getParentTasks()voidrefreshInput(Function<org.apache.commons.lang3.tuple.Pair<String,String>,Object> function)voidupdateWorkflowTask(FlowTask task)Override this method when the sub-class should update the default WorkflowTask generated usingTask.toWorkflowTask()-
从类继承的方法 cn.feiliu.taskflow.sdk.workflow.def.tasks.Task
description, getDescription, getInput, getName, getStartDelay, getTaskReferenceName, getType, getWorkflowDefTasks, input, input, input, input, input, input, input, input, input, input, isOptional, name, setName, setOptional, setStartDelay, setTaskReferenceName, toWorkflowTask
-
-
-
-
构造器详细资料
-
DynamicFork
public DynamicFork(String taskReferenceName, String forkTasksParameter, String forkTasksInputsParameter)
Dynamic fork task that executes a set of tasks in parallel which are determined at run time. Use cases: Based on the input, you want to fork N number of processes in parallel to be executed. The number N is not pre-determined at the definition time and so a regular ForkJoin cannot be used.- 参数:
taskReferenceName-
-
DynamicFork
public DynamicFork(String taskReferenceName, WorkTask forkPrepareTask)
Dynamic fork task that executes a set of tasks in parallel which are determined at run time. Use cases: Based on the input, you want to fork N number of processes in parallel to be executed. The number N is not pre-determined at the definition time and so a regular ForkJoin cannot be used.- 参数:
taskReferenceName-forkPrepareTask- A Task that produces the output asDynamicForkInputto specify which tasks to fork.
-
-
方法详细资料
-
getJoin
public Join getJoin()
-
getForkTasksParameter
public String getForkTasksParameter()
-
getForkTasksInputsParameter
public String getForkTasksInputsParameter()
-
updateWorkflowTask
public void updateWorkflowTask(FlowTask task)
从类复制的说明:TaskOverride this method when the sub-class should update the default WorkflowTask generated usingTask.toWorkflowTask()- 覆盖:
updateWorkflowTask在类中Task<DynamicFork>
-
getChildrenTasks
protected List<FlowTask> getChildrenTasks()
从类复制的说明:TaskOverride this method when sub-classes will generate multiple workflow tasks. Used by tasks which have children tasks such as do_while, fork, etc.- 覆盖:
getChildrenTasks在类中Task<DynamicFork>- 返回:
-
getParentTasks
protected List<FlowTask> getParentTasks()
- 覆盖:
getParentTasks在类中Task<DynamicFork>
-
-