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

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

0 votes



14 answers

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

0 votes


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

0 votes


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

0 votes


Permanent link
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 AND+ Remove
OR
policy 1 is approve AND+ Remove
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 :(

0 votes


Permanent link
Which Browser are you using?

0 votes


Permanent link
I am using Internet Explorer 8

0 votes


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

0 votes


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

0 votes


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

0 votes


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

Step 1: I configured 4 policies (All of which are the default policies in RAM). Please see the screenshot below of the policy configuration in the lifecycles tab http://dl.dropbox.com/u/4463205/PoliciesInLifecycle.png
Step 2: I configured the AND/OR conditions of the policies for action. Please see the screenshot:- http://dl.dropbox.com/u/4463205/Actions_Configuration.png
Step 3: I submitted an asset of Asset type :- "Service"
Step 4: The asset went into the draft state and in the Collaborators section it showed Policy 4 failed.
Step 5: when i tried to manually transition the asset to the next state, the transition also failed and the asset remained in the original state. Please refer the screenshot attached:- http://dl.dropbox.com/u/4463205/Error_Message_Screenshot.png

Final Result:
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?

0 votes

1–15 items
page 1of 1 pagesof 2 pages

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: Aug 03 '11, 7:50 a.m.

Question was seen: 12,135 times

Last updated: Aug 03 '11, 7:50 a.m.

Confirmation Cancel Confirm