Loop

Executes a block of code a specified number of times or based on a range of values.

Options

  • Iterable - Iterable element which can be traversed or looped through its items one at a time.

    You can select the previous node value from the data hub or you can provide it directly.

  • Batch Processing - Allows processing a group of records in batches, rather than one by one.

  • Batch size - Single batch size. To be provided, only if batch processing is enabled. The batch size should be a minimum of 100.

Examples

[11,12,13,14,15]

No

Number of iterations: 5

Iteration 1: {'item': 11, 'index': 0}

Iteration 2: {'item': 12, 'index': 1}

Iteration 3: {'item': 13, 'index': 2}

Iteration 4: {'item': 14, 'index': 3}

Iteration 5: {'item': 15, 'index': 4}

[11,12,13,14,15]

Yes.

Batch size: 3

Number of iterations: 2

Iteration 1: {'item': [11,12,13], 'index': 0} Iteration 2: {'item': [14,15], 'index': 1}

[{"name": "abc", "age": 20}, {"name": "def", "age": 25}, {"name": "ghi", "age": 30}, {"name": "jkl", "age": 35}, {"name": "mno", "age": 40}]

Yes.

Batch size: 3

Number of iterations: 2

Iteration 1:

{'item': [{"name": "abc", "age": 20}, {"name": "def", "age": 25}, {"name": "ghi", "age": 30}], 'index': 0}

Iteration 2: {'item': [{"name": "jkl", "age": 35}, {"name": "mno", "age": 40}], 'index': 1}

{{1.response.products}}

Yes.

Batch size: 100

It will return each product data with index.

Batch size 3 is used for illustration purpose only. Minimum Batch Size allowed is 100.

Last updated