Previous Topic: The Logical Sequence of a Loop OperatorNext Topic: Daemons and Other Looping Processes


Loop a Process

To run a process many times, create a cyclical branch in a process object instead of using the Start Process operator to call a process repeatedly from another process. This method involves looping a process cyclically by placing two Start operators. One Start operator goes at the beginning and another Start operator goes at the end.

Follow these steps:

  1. Open and check out a process.
  2. Place the following operators:
    1. Start
    2. Stop Success
    3. Stop Failure
    4. A series of operators that you want to repeat.
  3. Add a Start operator at the point in the sequence where it ends and where you want to restart the branch.
  4. Link the last operator in the branch to the second Start operator. The Start operator has an entry link that allows it to be placed at the end of a sequence of steps.

    Note: When the processing sequence arrives at the second Start operator shown in the figure, it reinitializes all operators and restarts the process.

  5. To interrupt this type of cyclical process, incorporate logic that leads out of the cyclical branch. Add an exit port on an operator which leads directly to a Stop operator or a different branch.