Previous Topic: Loop OperatorNext Topic: Output Parameters


Input Parameters

Repeat Count

Specifies the number of times that an operator repeats. The following two options are available:

This value can also be specified using the loop variables in the dataset of the Loop operator:

Set the Repeat Count to:

Process[OpName].CurrentLoopIteration < x

where

x is the number of times to run the operator.

Or, set Repeat Count to:

Process[OpName].OverallLoopDuration < x

where

x is the number of seconds to loop the operator. The operator does not stop at the number of seconds specified when it is in the middle of an iteration. Instead, if OverallLoopDuration is greater than the number of seconds specified, the operator does not execute the next iteration.

CA Process Automation checks the loop condition between iterations.

Infinite Loop

When selected, Repeat Count is ignored and an infinite loop is created. The operator keeps repeating until either:

Delay between iterations

Specifies the delay in seconds between each loop iteration.

While loop

When selected, the Loop operator behaves as a while loop. If unselected, the Loop operator behaves as a do while loop.

While loop

The Loop operator checks the loop condition specified in the Repeat Count field before it executes any iteration, including the first iteration.

Do while loop

The Loop operator checks the loop condition specified in the Repeat Count field at the end of every iteration, so it is guaranteed to execute at least the first iteration of the loop.

Note: All existing loop operators that are imported from CA Process Automation before v4 have the While Loop field unchecked. These existing operators continue to work as Do while loops, as they did in previous versions.

Pre- and Post execution Code

Use these fields to execute JavaScript code to execute with each iteration of the loop.

The processing sequence of any Pre and Post condition depends on the type of loop. See the Content Designer Guide to learn more about the logical sequence of a loop.