类 ForkFor

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

    public class ForkFor
    extends Task<ForkFor>
    implements ILoopTask<ForkFor>
    示例数据:elements: [A,B,C] 遍历数组原数,并行调用任务
     -----------------------------
     |          fork-for         |
     -----------------------------
     |             |             |
     task-1('A')   task-1('B')   task-1('C')
     |             |             |
     task-2('A')   task-2('B')   task-2('C')
     |             |             |
     -----------------------------
     |           END            |
     -----------------------------
     
    从以下版本开始:
    2024-09-08
    作者:
    SHOUSHEN.LUAN
    • 构造器详细资料

      • ForkFor

        public ForkFor​(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} -- 遍历数组