CentraSite 10.3 | CentraSite User’s Guide | Policy Management | Managing Design Time Policies through CentraSite Business UI | Configuration of Policies that Execute on Lifecycle State Changes
 
Configuration of Policies that Execute on Lifecycle State Changes
If you create a policy that executes on the Pre-State Change or Post-State Change event type, you must configure the States profile of the policy. These settings identify the specific state changes that triggers the policy. This setting also specifies whether the policy is to be executed before or after the object is switched to a specified state.
When creating policies that execute on state changes, remember the following points:
*Policies that are triggered by a state change execute when an object switches to a specified state (called the target state). The state of the object prior to the change is immaterial. For example, if you have a lifecycle model with the states: Test, Production, and Offline and you have a policy that specifies the Offline target state, that policy executes anytime the object switches to the Offline state. It does not matter whether the transition occurs from the Test state or the Production state.
*Policies that are triggered by a state change are executed regardless of whether the state change is initiated from the CentraSite Business UI, the API (for example, a custom client program) or another policy.
*You cannot specify a target state on the States profile unless that state has already been defined in a lifecycle model. Additionally, the lifecycle model must be active. In other words, you cannot completely configure a policy that executes on a state change until you have created and activated the lifecycle model whose state(s) triggers the policy.
*If you configure the policy to execute before the state of the object is changed (that is, on a Pre-State Change event) and if any action in the policy fails, the state change does not occur.