do you want to start the task when Task1 and Task2 are completed?
when Task1 or Task2?
from the help, multiple events seems for and condition
On Multiple Events Completed
When the On Multiple Events Completed trigger type was chosen, the trigger can be configured to start the current task when other tasks have all been completed in their execution within a certain time. The following configuration options are available:
It is like when task 1 is completed script 1 should run and task 2 is completed script 2 to run. I understand we can have 2 qvw files and schedule it as a chain task. But i wanted to use one file dynamically.
Organize your script in such a way that it uses the value of a variable to decide on which part of the script to execute. A simple IF-THEN-ELSE will do just fine. The value of this variable will be set by the Distribution Service, so you cannot set/define it in your script. Create this variable in the Variable Overview.
Now define two additional tasks for the same QVW, one triggered bythe completion of task 1 and another triggered by the completion of task 2.
In each task, goto Reload->Script Parameters, enter the variable name in the top field, and the correct value that executes a specific part of the script in the other field.