Sunday, February 7, 2010

Working with Multiple Constraints in Precedence Constraint Editor

The below section in Precendence Constraint Editor is to manage Multiple constraints. We can understand the effect of Logical AND and Logical OR using following example.

image

In this diagram three precedence constraints connecting 4 tasks. These three precedence constraints have three expressions (@a=1, @b=2, @c=3) as shown in diagram. In all three By default these all three logically related with AND operator and looks as in below screenshot.

clip_image003

The Task4 will execute when: @a = 1 AND @b = 2 AND @c=3

If any one of these three expression is not true control will not pass to Task3.

Now if in any of precedence constraint is changed to Logical OR as shown in below screenshot:

clip_image002

 

Then all three precedence constraints will looks like as below:

 

clip_image004

 

Now the Task4 will execute when: @a = 1 OR @b = 2 OR @c=3

No comments: