How it Works
The Loop action lets you run an action or a set of actions in a Loop. When you drag this action to the canvas, it looks like a block within which you can add multiple actions and create a mini-workflow. You can then connect this Loop action to other actions of your workflow. When you execute the workflow, IBM® webMethods Integration executes this mini-workflow repeatedly till it reaches the specified count. You can also add loop within loop to create complex workflows.
To use Loop in your workflow, add this action to your canvas and double-click it. This will open the loop canvas where you can add the action you want to execute in loop. The loop canvas consists the following:
Loop Breadcrumbs: At the top-left corner, you can see the loop breadcrumbs. Whenever you create a loop within loop, the breadcrumb for that loop is appended here. You can use this breadcrumb to navigate to any particular loop level.
Loop Start: This is the starting point of the loop.
Loop Stop: This is the last point of the loop.
From the list of connectors panel on the right, you can add relevant connectors between Loop Start and Loop Stop icons, and configure them as you would normally do for a workflow.
Close Loop Canvas: You can navigate back to the workflow canvas by clicking this icon.
Loop Settings: You can configure the current loop action by clicking this icon.
To configure Loop settings, hover on the Loop action and click the Settings icon that appear. The Loop configuration window will appear on screen. On the right-hand side you can see the Action Configure panel where you can provide inputs to execute the Loop action.