Skip to Content

Wevo iPaaS tools: Loop

The Loop tool iterates through a list and executes repeated actions for each iteration.

It has a scope inside which you can use other tools or connectors that will make up the integration. It's important to mention that the Loop tool can be used when there's the need to pass a list during execution of the flow. Each item on the list will be executed separately.

Add the Loop tool to a flow

From the Tools menu, drag the Loop tool to the flow's grid. Inside the white area, include all processes that should be executed in a loop, then connect them. Note that you cannot move an item that's already on the grid to the scope of the Loop tool; items must be dragged directly from the menu to the scope, as shown in the animation below.

Note

You can add a loop inside another loop.

add loop tool to flow

Configure the Loop tool

Click the Loop tool to open a configuration dialog:

loop configuration dialog

These actions are available along the top of the dialog:

  • Edit: Makes the tool name editable. Enter a name and click to save or to cancel.
  • Remove: Deletes the tool from the grid.
  • Copy: Creates a copy of the tool on the grid.
  • Fullscreen: Changes the dialog view to fullscreen.
  • Close: Closes the dialog.

In the Configurations > General tab, set the following:

  • Quantity of items in parallel: Enter the number of items to be processed in parallel. If no value is entered, 1 is assumed.

    A larger quantity entered may require more memory and resources to process the flow, making it necessary to adjust the PodType configuration.

    Note that iteration processing occurs asynchronously. Therefore, the start and finish time may vary for different iterations.

    Example

    If the action receives 4 items in its input and the value 2 is entered in this field, then 2 items will be processed in parallel, simultaneously.

  • Continue when reaching the maximum iteration limit in the loop?

    By default, for flows created after the 11.40 release, a maximum of 10,000 loop iterations are allowed within the same flow execution. The limit also applies to existing flows that have been turned off and on again after the 11.40 release. The iterations of all loops count toward the limit regardless of whether this checkbox is enabled for a specific loop.

    Select this checkbox to prevent a specific loop from having its execution interrupted once the limit is met.

    Example

    Suppose there are three loops in the same flow: Loop A iterates 3 times, loop B iterates 50 times, and loop C iterates 1 time. In this example, the total iterations is 54.

    For purposes of this example, assume the maximum iteration limit is 50. If loop A has this checkbox selected, then it will iterate 3 times, loop B will stop on iteration 47, and loop C will never run.

    Note

    The default maximum iteration limit can be changed by contacting your Customer Success Manager (CSM) or LATAM Support.

In the Mapping tab, map which outputs should be sent to the loop's inputs:

loop 2