Validate Policy Deactivation
Verifies that a policy is not currently in-progress (that is, undergoing execution) and can therefore be successfully deactivated. If the policy is in-progress when this action is executed, this action fails.
You should include this action in any policy that is triggered by a lifecycle state change that subsequently deactivates the policy. Executing this action before the state change occurs helps ensure that the stage change (and subsequent policy deactivation) does not take place if the target policy is in-progress.
Note:
A policy that initiates an approval workflow is considered to be in-progress until the required approvals are obtained for the workflow. Therefore, if the Validate Policy Deactivation action is triggered for a policy that is associated with one or more pending approval workflows, the action fails.
This action is executed by the default Validate Policy Deactivation policy that is installed with CentraSite. The Validate Policy Deactivation policy executes on the Pre-State Change event that occurs when a policy switches to the Revising or Retired state. The Validate Policy Deactivation action in this policy ensures that a policy is not switched to the Revising or Retired state (and consequently, deactivated) while it is undergoing execution.
Event Scope
Pre-State Change
Object Scope
Policy
Input Parameters
None.