What Happens When the Policy is Executed?
When you run a policy on demand, CentraSite executes the policy against each object in the target set. Results are written to the policy log and are also displayed in the results window in the user interface.
For example, if you have a policy that contains actions 1, 2 and 3 and the target set contains objects A, B and C, the policy will iterate over the objects in the target set as follows:
Iteration 1: Execute actions 1, 2 and 3 on object A
Iteration 2: Execute actions 1, 2 and 3 on object B
Iteration 3: Execute actions 1, 2 and 3 on object C
If an action returns a failure code during an iteration of the policy, CentraSite writes the failure message to the policy log and immediately exits that iteration of the policy. If the target set contains additional objects, CentraSite applies the policy to the next object in the target set.
There is one exception, namely if the Send Email Notification action returns a failure code; in this case, CentraSite writes the failure message to the policy log and performs the next action in the policy (if one exists).