Configure a Loop activity

  1. Add an activity to the map.

    By default, the Configuration tab is open in the properties panel of the activity.

  2. Change the default Name of the activity to something meaningful.
  3. On the Type list, select Common > Loop.
  4. Configure the following properties.

    Complex variable

    A Complex variable. It can be a Process or Server variable or Document set.

    Current index

    A variable to set the index at which data will be retrieved. It is usually the same variable that will be used for Updated index.

    Updated index

    A variable to map the updated index count (the row+1). It is usually the same as the Current index.

    Row found

    A variable to check whether a row is found.

    • When a row is found at runtime, all process variables mapped to variable member columns are updated with the contents of the columns from the row indicated. For example, if complex variable data has a number of rows with email IDs for resources, when the row is found, the email ID value is set to the process variable member and the email ID is used to send email.

    • When a row is not found, all process variables display the same values they had prior to calling the node.

    If you try to access a column that does not exist, the job is suspended and a message appears.

    Number of columns

    The number of columns to check within the loop.

    Enter the number of columns and click Set columns. The specified number of columns appears in the Variable members list.

    Variable members

    The actual variables to be set with the required data from complex variable data columns.

    The number of columns value should be equal to the number of variable members that exist while configuring the loop node.

  5. Map each column of variable members to a variable of the required type in the Mappings box.
  6. Save the process map.