类 For

  • 所有已实现的接口:
    ILoopTask<For>

    public class For
    extends Task<For>
    implements ILoopTask<For>
    for 循环遍历表达式: ${workflow.input.elements} 循环体获取元素: ${eachNameRef.output.element} 循环体获取索引下标: ${eachNameRef.output.index}
     -------------------------------------
     | for(int i=0;i<$elements.size;i++) |
     -------------------------------------
     |循环调用任务节点处理                  |
     task1($elements[i],$index)          |
     |                                   |
     task2($elements[i],$index)          |
     |                                   |
     |-----------------------------------|
     |                END                |
     |-----------------------------------|
     
    • 构造器详细资料

      • For

        public For​(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} -- 接收数组元素