Control manages the flow of execution within automation workflows, utilizing activities like loops, conditional statements, and delays to direct the process.
The Control category has the following sub activities:
Assign: This activity can be used to assign a value to a variable.
Input Properties:
To: Specifies the variable to which the value is added or assigned.
Value: The value to assign to the specified variable.
Break: This activity can be used to exit from the current iteration if the condition given in the loop is true and it will proceed to the next activity in the workflow.
Comment: This activity can be used to add a specific comment to the workflow.
Input Properties:
Comments: The text to display as a comment, entered as a string.
Continue: This activity can be used to skip the current iteration and continue to the next iteration if the condition given in the loop is true.
Decision: This activity controls the flow of a workflow by specifying a single condition that will be evaluated as true or false. The set of activities within the decision activity will only execute If the condition is true.
Input Properties:
Condition: Contains boolean expression which returns either true or false.
Decision Switch: This activity controls the flow of a workflow by specifying multiple conditions that will be evaluated to true or false. Depending on the condition that is true, the set of activities under that particular condition will execute.
Input Properties:
Expression: contains boolean expression which returns either true or false and used to control the flow of execution of sequence based on certain condition.
Delay: This activity suspends the execution of the next activity in the workflow for the specified period.
Input Properties:
Duration: The time, in milliseconds, for which the delay is to be executed.
Execute Code: This activity can be used to execute a specific code in a script format.
Input Properties:
Script: The code to be executed as a string.
Parameters: Input or Output parameters to be passed between the script and robot.
ForEach: This activity is used to iterate through every element of a collection to perform a series of actions for each item.
Input Properties:
Collection: Enables stepping through arrays, lists, data tables, or other types of collections to iterate through the data and process each piece of information individually.
Output Properties:
Item: An object variable where the result is stored.
Index: Zero based Index of the item in the collection.
Loop: This activity is used to perform iterations and execute a series of activities while the given condition is true.
Input Properties:
Condition: Contains Boolean expression which returns either true or false.
Output Properties:
Index: Zero based Index of the item in the collection.
Multiple Assign: This enables the user to assign values to multiple variables simultaneously.
Input Properties:
Assignments: Assign values to a multiple variable.
Rethrow: This activity is commonly used within the On-Error block to re-throw the exception message that was previously captured by the studio.
Retries the Sequence: This activity is used to retry the sequence when an error occurs during the execution of a normal set of activities.
Options Properties:
NumberOfRetries: The number of times to retry the sequence.
RetyInterval: Specify the time between each retry.
Rethrow: Select the checkbox if you want to throw an error, else uncheck.
Terminate Job: This activity stops the automation intentionally.
Input Properties:
Reason: A string that describes the reason for terminating the job.
Throw Error: This activity is used to throw custom exception messages during the execution.
Input Properties:
Message: Specify the text to be displayed in exception block.