In System Center Orchestrator 2012, looping can be configured for any runbook. By using loops, you can build automatic retries and monitor at any location in a runbook.
Use the following procedure to configure looping.
To configure looping
Right-click an activity in your runbook, and then click Looping to open the Looping Properties dialog box.
On the General tab click Enable.
In the Delay between attempts box, type the number of seconds to delay looping.
Exit and Do Not Exit Tabs
With Orchestrator, you can configure conditions for exiting the loop.
The Exit tab specifies the conditions that determine whether the loop exits. The Do Not Exit tab specifies the conditions that cause the loop to continue.
|The rules on the Do Not Exit tab supersede the rules on the Exit tab.|
The rules within each tab are joined by using an Or condition. Only one of the conditions on a tab must be true for the entire tab to be true.
Use the following procedure to add or remove an Exit condition.
To add an exit condition
From the Looping Properties dialog box, select either the Exit tab or Do Not Exit tab, and then select the condition listed in the box or click Add to add a condition.
Important To change the values that make up the rule, you need to select each underlined portion of the link condition.
Click the listed activity in the condition to open the Returned Data dialog box.
Check the Show common Returned Data box.
From the Name column, select a name that begins with Loop such as Loop: Enabled.
To change the result in the link condition, click the returned result that is underlined, such as success to open the Results dialog box.
You can select the success, warning, or failed result.
To remove an exit condition
From the Looping Properties dialog box, select either the Exit tab or Do Not Exit tab.
To highlight the condition you want to remove, click to the right of the link condition with the word Or, and then click Remove.