Previous Topic: While and Do While LoopsNext Topic: Loop a Process


The Logical Sequence of a Loop Operator

A Pre-execution code and Post-execution code field are available in the Loop operator properties. You can enter JavaScript code in these fields to run with each iteration of the loop. CA Process Automation runs any pre and post execution code for a Loop operator for each iteration of the loop.

Note: In content developed before an upgrade to CA Process Automation 4.0, loop operators will have empty Pre-execution code and Post-execution code fields.

The processing sequence of any Pre and Post conditions depends on the type of loop.

While Loop Operators:

  1. Run Pre condition.
  2. Check while loop condition as indicated by the Repeat Count field.

Do While Loop Operators:

  1. Reset the operators inside the Loop operator.
  2. Execute Pre condition.
  3. Execute the operators inside the Loop operator.
  4. Execute Post condition.
  5. Check do while loop condition as indicated by the Repeat Count field.