Configuring conditions while setting up lifecycle
Hi,
Can you please help me with the below doubt regarding configuring conditions for check during state transitions. Once the policy is configured when i try to configure conditions to be checked during state transition, I am facing a problem. Consider Condition 1 , Condition 2 and Condition 3 are policies, I want a state transition to happen if and only if Condition 1 is true AND either of Condition 2 OR Condition 3 is true. Is this possible? I am not really able to understand how the OR conditions actually work. Appreciate your help! Thanks, Sripriya |
14 answers
Yes, this is possible. In the condition editor follow these steps.
1. Click 'Add Condition', select policy 1, and click 'Add' 2. Select 'AND' from the drop down menu in the policy 1 row and click the plus icon 3. In the new row, choose policy 2 and click 'Add' 4. In the row with policy 2, select 'OR' from the drop down menu and click the plus icon. 5. In the new row, select policy 3 and click the 'Add' button. |
Hi!
Thanks for the reply. I followed the steps but I am facing 2 issues while doing this: 1. In the row with policy 2, after selecting OR button and clicking on the plus icon, a new row appears. I select policy 3 and click on the ADD button. The OR condition automatically chages to AND. Is that correct? 2. Suppose only policy 1 and policy 2 passes and policy 3 fails, this action should logically execute and state transition must happen, but when i tested it, the state transition seems to fail and it says policy 3 hasnt executed. I am confused! Can you please advise. Regards, Sripriya. |
1. ... It should not change. Assume you clicked the OR on the pol. 2, and really clicked the Add on that row.
2. 3 failed, or not executed. |
1. Ideally yup it should not change. I choose the OR from the dropdown in policy 2, a new row appears, i selected policy 3 click on ADD.
NOW, the OR in policy 2 automatically changed to AND and the new row also has AND condition. However, there is a ORANGE bar on the left of these 2 policies which has OR written on it. The condition is something as follows: policy 1 is approve OR policy 1 is approve Hope I am not too confusing! :roll: 2. policy 3 failed. But since I have configured policy 2 or policy 3 condition as shown above, i thought the transition might happen. But it didnt :( |
Which Browser are you using?
|
I am using Internet Explorer 8
|
The ANDs and ORs in the drop down menus are just for adding new rules. They do not define the rules. You want to look at the ANDs and ORs in the blue and orange boxes to see the current rules. Here's a screenshot of what it should look like after you have defined your rules.
http://dl.dropbox.com/u/127747/RAM/screenshots/policyConfig.png |
After I add the rules, I see the AND written in the drop box
Here's the screenshot below: http://dl.dropbox.com/u/4463205/Policy_Conditions.PNG Is that fine? Will that create a problem when the transition happens? |
Do not worry about the combos on the right hand side ... they are there to enable you to add more predicates. It is the left hand side the specifies what is it going to do.
Are you saying that it does not (assuming you saved it). Note: when you change the community configuration, existing life cycles (pre 7.5.1) will not pick this up. ... you will have to go to the asset -> Collaboration and edit the specific lifecycle. |
Yeah, even if one of the policies in the OR condition becomes true, the transition doesn't happen unless policies passes.
The steps i took were as follows: The asset did not transition to the next state of the lifecycle. As per the conditions configured since the asset submitted is of type "Service" and the Policy 3 passed and Policy 1, and 2 passed, shouldn't the transition have happened? |
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.