类 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 String
FORK_TASK_INPUT_PARAM
static String
FORK_TASK_PARAM
-
从类继承的字段 cn.feiliu.taskflow.sdk.workflow.def.tasks.Task
taskInput, taskOutput
-
-
构造器概要
构造器 构造器 说明 DynamicFork(String taskReferenceName, SimpleTask 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.String
getForkTasksInputsParameter()
String
getForkTasksParameter()
Join
getJoin()
protected List<FlowTask>
getParentTasks()
void
refreshInput(Function<org.apache.commons.lang3.tuple.Pair<String,String>,Object> function)
void
updateWorkflowTask(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, 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, SimpleTask 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 asDynamicForkInput
to specify which tasks to fork.
-
-
方法详细资料
-
getJoin
public Join getJoin()
-
getForkTasksParameter
public String getForkTasksParameter()
-
getForkTasksInputsParameter
public String getForkTasksInputsParameter()
-
updateWorkflowTask
public void updateWorkflowTask(FlowTask task)
从类复制的说明:Task
Override this method when the sub-class should update the default WorkflowTask generated usingTask.toWorkflowTask()
- 覆盖:
updateWorkflowTask
在类中Task<DynamicFork>
-
getChildrenTasks
protected List<FlowTask> getChildrenTasks()
从类复制的说明:Task
Override 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>
-
-