类 Switch
- java.lang.Object
-
- cn.feiliu.taskflow.sdk.workflow.def.tasks.Task<Switch>
-
- cn.feiliu.taskflow.sdk.workflow.def.tasks.Switch
-
public class Switch extends Task<Switch>
+----------------------+ | switch (expression) | +----------------------+ | v +----------------------+ | case 张三 | +----------------------+ | v +----------------------+ | do something task | +----------------------+ | v +----------------------+ | default: | +----------------------+ | v +----------------------+ | do something task | +----------------------+
-
-
字段概要
字段 修饰符和类型 字段 说明 static String
JAVASCRIPT_NAME
static String
VALUE_PARAM_NAME
-
构造器概要
构造器 构造器 说明 Switch(String taskReferenceName, PathExpression expression)
Switch(String taskReferenceName, PathExpression expression, boolean useJavascript)
Switch(String taskReferenceName, String caseExpression)
Switch case (similar to if...then...else or switch in java language)Switch(String taskReferenceName, String caseExpression, boolean useJavascript)
Switch case (similar to if...then...else or switch in java language)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 Switch
decisionCases(Map<String,List<Task<?>>> branches)
Switch
defaultCase(Task<?>... tasks)
Switch
defaultCase(String... workerTasks)
Switch
defaultCase(List<Task<?>> defaultTasks)
Map<String,List<Task<?>>>
getBranches()
List<Task<?>>
getDefaultTasks()
Switch
switchCase(String caseValue, Task... tasks)
Switch
switchCase(String caseValue, String... workerTasks)
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
-
-
-
-
构造器详细资料
-
Switch
public Switch(String taskReferenceName, String caseExpression, boolean useJavascript)
Switch case (similar to if...then...else or switch in java language)- 参数:
taskReferenceName
-caseExpression
- An expression that outputs a string value to be used as case branches. Case expression can be a support value parameter e.g. ${workflow.input.key} or ${task.output.key} or a Javascript statement.useJavascript
- set to true if the caseExpression is a javascript statement
-
Switch
public Switch(String taskReferenceName, PathExpression expression, boolean useJavascript)
-
Switch
public Switch(String taskReferenceName, String caseExpression)
Switch case (similar to if...then...else or switch in java language)- 参数:
taskReferenceName
-caseExpression
-
-
Switch
public Switch(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<Switch>
-
-