Updated on 2025-08-19 GMT+08:00

Configuring a Loop Processor

The Loop processor iterates over each element in the input array, executing a subprocess or function once per loop.

Notes and Constraints

  • Function flows created in Data Workroom (DWR) can only be viewed on the FunctionGraph console; editing and deletion must be done within DWR.
  • The subflows in a loop must satisfy the following rules:
    • Start with a function or wait node.
    • Only include function, wait, and error handling nodes.

Prerequisites

Configuration Description

In the flow orchestration area, click the loop component and configure it.
Figure 1 Configuring the loop component
Table 1 Loop component parameters

Parameter

Description

Array Path

JSONPath expression used to obtain an array from the input. For an input of {"arr": [1,2,3]}, set Array Path to $.arr to obtain the array.

Iteration Variable

Temporary variable for each element in the array during the traversal of the array. For example, if item is used as the temporary variable, set this parameter to $.item.

Result Output Path

JSONPath expression used to output results in JSON format. For a Result Output Path of $.result, the output result will be {"result": [2,3,4]}.

Parallel Iterations

Range: 0 to 100, where 0 means no limit on the number of parallel iterations.

Iteration Interval (s)

Interval between parallel iterations.

Input Filter Expression

JSONPath expression used to filter the input information of the node.

Output Filter Expression

JSONPath expression used to filter the output information of the node.