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.
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.
Tab | Values | Description |
---|---|---|
Operators | User-defined | Enter a valid expression to calculate or evaluate the results to equal true. |
Expressions | System-defined | A default set of functions that can be added to the expression. |
Workflow Variables | User-defined | Parameter, activity, and workflow properties that can be added to the expression. |
Completion Codes | User-defined | Select the preconfigured completion code suitable for the While loop. |