Loop

 

Introduction

A Loop task is used to iterate the data one by one. It helps to perform the same action for each entry.

 


Description

To configure Loop you first need to define the iteration object. Further, you can add any task as per the requirement into the loop and define the actions, you would like to perform on each item in that iterable object.

Loop tasks will be executed multiple times. The number of times those tasks will be executed depends upon the size of the Array, Hence Iteration Object only accepts the Array type of data slot.

After you complete the configuration for the Loop task, a set of data slots gets generated for further use in the automation-

  • Records: It is the data provided by you in the automation.

Steps to configure

  1. Drag and drop the Loop task from the helper section and click on it to start configuring it. The following form will appear on the screen

     

  2. In the input array field, add the desired data from the data slot. Click on the data slot, In it, you will get all the output data of previous tasks. To take input of an array, we must ask the user about the length of the array. After that, we use a Java for loop to take the input from the user and the same for loop is also used for retrieving the elements from the array. You can drag and drop the file and add it to the input field. Iteration object only accepts the array type of data slot.

  3. Click on save to successfully save the configuration.