类 DoWhile
- java.lang.Object
-
- cn.feiliu.taskflow.sdk.workflow.def.tasks.Task<DoWhile>
-
- cn.feiliu.taskflow.sdk.workflow.def.tasks.DoWhile
-
public class DoWhile extends Task<DoWhile> implements ILoopTask<DoWhile>
do while 可以在循环中执行一组任务,直到条件不再满足 例如:${workflow.input.loopCount} 为循环遍历条件表达式---------------------------- | do | ---------------------------- | | task1 | | | task2 | | | |--------------------------| | while($loopCount) | |--------------------------|
-
-
字段概要
字段 修饰符和类型 字段 说明 static StringLOOP_COUNT
-
构造器概要
构造器 构造器 说明 DoWhile(String taskReferenceName, int loopCount)Similar to a for loop, run tasks for N timesDoWhile(String taskReferenceName, PathExpression expression)DoWhile(String taskReferenceName, String expression)Execute tasks in a loop determined by the condition set using condition parameter.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 DoWhilechildTask(Task<?> task)添加子任务StringgetLoopCondition()List<? extends Task>getLoopTasks()DoWhilesetLoopCondition(String condition)设置循环条件表达式(目前仅支持javascript)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
-
-
-
-
构造器详细资料
-
DoWhile
public DoWhile(String taskReferenceName, String expression)
Execute tasks in a loop determined by the condition set using condition parameter. The loop will continue till the condition is true- 参数:
taskReferenceName-expression- ${workflow.input.loopCount} 要求数据类型为Number类型
-
DoWhile
public DoWhile(String taskReferenceName, PathExpression expression)
-
DoWhile
public DoWhile(String taskReferenceName, int loopCount)
Similar to a for loop, run tasks for N times- 参数:
taskReferenceName-loopCount-
-
-
方法详细资料
-
setLoopCondition
public DoWhile setLoopCondition(String condition)
设置循环条件表达式(目前仅支持javascript)- 参数:
condition-- 返回:
-
getLoopCondition
public String getLoopCondition()
-
updateWorkflowTask
public void updateWorkflowTask(FlowTask workflowTask)
从类复制的说明:TaskOverride this method when the sub-class should update the default WorkflowTask generated usingTask.toWorkflowTask()- 覆盖:
updateWorkflowTask在类中Task<DoWhile>
-
-