The next area we need to look at are flow controls. These are Steps that control the flow of your workflow. They can be located in the Flow Control menu in the Canvas Dock.
Conditions
A condition step can be selected from the bottom bar flow control menu. This step allows a user to route the workflow depending on whether certain conditions are met.A condition step can have up to 16 outputs links, where each output leads to a different subsequent step which is each evaluated by conditions set by the user.
Logic
Here are some examples of how it works:If no condition is set on an output link, then all data will pass through, as there is no condition present.So, let's take a look at an example on the canvas.
Example
1. We add the condition step from our Control Flows menu.2. Link up the previous step to our condition step. You will notice that we cannot define conditions yet. First, we need to link the outputs to the steps we want to output to.3. Once we have all the output steps on the canvas, we can link them up and define the condition logic for each output link.4. The conditions have been assigned to each output link, so we're ready to go. In this example, my condition is simply checking whether the text evaluated is English or not.
Delay
A delay step allows you to add a timed delay to a workflow. The maximum delay you can add is 15 minutes.
Asynchronization
In more sophisticated workflows, we may need tasks to execute in parallel. The next step in the workflow must therefore know whether to begin if one of those tasks has been fulfilled or both. This is where the All or Any labels are used. These can be found on a step’s input terminal that has more than one input and can be toggled by simply clicking the All or Any label.Using the Any scenario like above, the next step is triggered immediately after any of its previous steps has completed executing.Using the All label, the next step is only executed after all its inputs have completed executing. This is especially useful if a step requires multiple pieces of data from multiple different sources for its execution.
Loops
Loops are added through the flow controls menu in the dock.Once selected, the start and end loop steps will appear on your canvas.From here, you can place any steps that you wish to be iterated through within them. You can either choose to iterate through those steps an explicit number of times, or the number of times determined by the array or list you have selected in the data select menu.Nested loops are color coordinated accordingly: