Loop
  • 24 Sep 2021
  • 3 Minutos para leer
  • Colaboradores
  • Oscuro
    Ligero

Loop

  • Oscuro
    Ligero

The content is currently unavailable in Spanish. You are viewing the default English version.
Resumen del artículo

Definition


A Loop works based on Data Set Variables, so it is frequently used after Form and Document Data Lookup actions, however this is not mandatory, since you can use manually created Data Set Variables as well.

Other actions can be added inside a Loop. It will be configured as to compare the information with conditions you will establish and, as long as the break out condition is not met, the Loop will go to the next action inside its own flow.  After all of the inside actions are completed, the Loop End is reached and the next action on the Workflow can be started.

Instructions


Drag and drop the Loop action from the list on the left into the diagram, under the correspondent “+” icon.

8_bbNNQugvjFgtYGL-lMVb7phemB6NiTFA

Name and Description of both, Loop Start and Loop End boxes, can be customized on the Step Properties panel to the right.

9L4VPLdOqNpw48PsZvQAlc3KqHSMQiEXcg

In order to add actions inside the loop, simply drag and drop them under the square icon with a "+" sign.

wI8p4ke3AARTgSYuY5NYmjPujqTdng-s8A

The Loop will read the information contained on the Data Set Variable selected, run the comparisons, and as long as the break out condition is not met, it will execute the first action on its course. After that action is concluded, the comparisons will be checked again and if the break out condition is once more not met, the second action will be executed, and so on, until it reaches the Loop End. 

If at some point the break out condition is met, the action will not be executed and it will go directly to the Loop End.

Configure


To set up the conditions that will make the action stop looking for information and break out the loop, click on Configure.

AWxt9cdvNKGLNKTJ-AQg_-gOnGXv4jg_5A

Select the Data Set Variable that will be used as main data source.

t3GNef2-qBwVs6oBnnxnoWeoW8E2Zp-Ngw

Then click on + New Condition in order to get the first line of comparison.

6nP_jl4ubSXbLMnSBIiwG7MWjGj24PFrng

Select your first source for the comparison.

m029qhLXC_koGtPIRM1XBsSAe7fgG4t6UA

  • WF Variable: Variables created inside the Workflow you are working on.
  • DS Variable: Group of variables created inside the Workflow you are working on.

Select the specific Variable you would like to use.

Q3XbaycHTH23SMz4e2UtdvpaBSgYWiogaw

Indicate the kind of comparison you would like to apply.

_zAswmKvcfUUlORVCDyz4yDE6t7-Fe0lcA

The comparison options available on the drop-down list will be subjected to the type of data contained on the first field.

  • = : Equal
  • <> : Not Equal
  • > : Greater Than
  • < : Less Than
  • >= : Greater Than or Equal
  • <= : Less Than or Equal
  • Range
  • contains
  • notcontains
  • begins with
  • ends with

Select the second source for your comparison.

oWuPDBJdkSUhShi_-R43E5zMD660lLknAA

  • WF Variable: Variables created inside the Workflow you are working on.
  • DS Variable: Group of variables created inside the Workflow you are working on.
  • Value: Compare it with a specific value.

Then select the specific Variable or type in the Value you would like to use.

23vM9W6A8gzaDbhPeKsksyIfqxnDegkXRg

  • If you select incompatible fields for comparison, you will receive an error message on the top of the screen and won't be able to continue.  Make sure you select fields that contain the same kind of data.   Z2Ui7NY8PZmtoPLJTyURXmMDrX_zr-mhJg
  • You can add more comparison lines by clicking on the + New Condition and remove them by selecting it on the left side of the item and clicking on Remove Condition.   Fn5LmVTvrGcS1dw5M3Zr58KENVcTa18QoQ

Operators

When more than one line of comparison is added, they can be separated with operators in order to indicate the server exactly what needs to be searched and compared, as well as in which order.

  • And: all comparisons, or sets of comparisons, followed by AND need to be TRUE in order for the query to be TRUE. 
  • Or: if at least one of the comparisons, or set of comparisons, followed by OR is TRUE, the query will be TRUE.
  • Parenthesis: are available in case you need to set priority between the different lines or set of lines. Once you open parenthesis at the beginning of a line, it needs to be closed at the end of the same line or at the end of the group of lines you would like to prioritize. HDd3AL8Rd-IHG0OqKIZFzeprByl46PywPg

After all comparisons have been established, click on Save to commit the changes and return to the workflow diagram.  

uGj9Dxd2o-Y31NNllrdrirTqgHvJX_Cvow



¿Te ha sido útil este artículo?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.
ESC

Eddy AI, que facilita el descubrimiento de conocimiento a través de la inteligencia conversacional