Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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?

0 votes



2 answers

Permanent link
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.

0 votes


Permanent link
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.

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.

0 votes

Your answer

Register or log in to post 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Apr 07 '11, 1:51 a.m.

Question was seen: 8,484 times

Last updated: Apr 07 '11, 1:51 a.m.

Confirmation Cancel Confirm