Fail Policy on State Transition
I am using RAM 7.5.
I do not seem to be able to associate a policy with a lifecycle state transition; only an actual state. Should I be able to associate a policy with a state transition? I was hoping that if the policy failed, I could prevent the state change. Is there anyway to do this? If not, is it possible to determine the old state, so that the asset can be updated back to the old state? |
2 answers
Yes, what you want to accomplish, preventing a state change on a failed policy, is possible.
Assuming your states are Submitted and Approved with a Publish transition between the Submitted and Approved states the instructions are as follows. 1) Add the policy to the Submitted state. The policy must run on 'Action' but you may also want to check the 'Asset Save' and 'Entrance to state' checkboxes so you can see the result before you perform an action. 2) From the dropdown or lifecycle diagram, select the Publish transition. On the right side of the screen you will see a dropdown with a green plus image next to it. Choose AND from the dropdown and click the green plus. A new row should appear. From the dropdown on the left side of the new row choose the policy you just added. Now select 'is' and 'Approve' from the next two dropdowns. It's now only possible to change the state from Submitted to Approved if the policy passes. |
Great. Thanks for that. I had been putting the policies on the target state. Now that I put them on the origin state, I can see the policy as a condition for the transition.
Yes, what you want to accomplish, preventing a state change on a failed policy, is possible. |
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.