Sunday, February 19, 2012

Execute package on conditions

Hi,

I need to write a condition on the start of my package. Based on the condition different task has to execute.

Example :

I will create a package level var MyVar bool. if it's true task a has to execute else task b.

I thought of using conditional split, But it asks for input connection as it's a transform control.

How to do this?

Any Ideas?

You need to use this condition in control flow, not in data flow. At the control flow you may define precedence constraints between tasks, and have conditional expressions on the precedence constraints.

So, if a task does not need to be executed, double click precedence constraint leading to it, and type expression !MyVar.

No comments:

Post a Comment