Previous Topic: Loop Errors and ExceptionsNext Topic: While and Do While Loops


Loop a Series of Operators

You can also loop a series of operators inside a Loop operator.

Follow these steps:

  1. Open a process.
  2. Drag the Loop operator from the Standard operators group onto the process.
  3. Resize the bounding box for the Loop operator to accommodate the sequence of operators that you want to add to the loop.
  4. Drag operators into the box.

    The bounding box color changes to indicate it is the selected destination for operators you drag.

  5. Add ports and links.
  6. Link the entry point on the box to the first icon in the branch and link the last icon to the exit port on the box.
  7. Add links to and from the Loop operator:
    1. Link at least one operator outside the box to the entry port.
    2. Link the exit port to at least one operator outside the box.

    This graphic shows an example of looping a sequence of operators in a process.

  8. Double-click the Loop operator to view its Properties.

    The Properties palette for the Loop operator appears. If it does not appear, choose Properties from the View menu.

  9. Set the Loop Properties and click Apply.

    Note: You can create an infinitely looping branch by selecting the Infinite Loop check box. As with any infinitely looping operator, you can stop the loop by adding a Stop link from another operator.

    Note: Values for the CurrentLoopIteration and OverallLoopDuration system variables are updated for each process instance and appear in the dataset. Even if the Repeat Count for the Loop operator is set to 1, CurrentLoopIteration shows 1 and OverallLoopDuration shows 10 at the end of a single instance. By contrast, the CurrentLoopIteration and OverallLoopDuration system variables are only updated for other operators when Repeat Count is greater than 1. This is because the Loop operator always loops, even if it is only one time.

More information:

Interrupt a Looping Operator