While Activity

The While activity repeats the execution of a workflow subsection as long as a specified condition is true. The condition is checked each time the activity begins.

When configuring a While activity, ensure that the While condition eventually resolves to False; otherwise, the execution of the While branch will repeat indefinitely.

Properties of activities inside a While loop are not available to activities outside of the loop. If values in a While loop need to be accessed, they can be stored in local variables allowing binding from activities outside the local variable.

Important: A condition must be set on the While loop in order to be valid.

Conditions

While activity conditions are created through the Workflow Expressions builder. Enter a valid expression for the condition using a combination of the functions, variables, completion codes, and operators.

TabValuesDescription
OperatorsUser-definedEnter a valid expression to calculate or evaluate the results to equal true.
ExpressionsSystem-definedA default set of functions that can be added to the expression.
Workflow VariablesUser-definedParameter, activity, and workflow properties that can be added to the expression.
Completion CodesUser-definedSelect the preconfigured completion code suitable for the While loop.