In this article we are going to see on how to use a Sequential Task container. This container is used in areas where the process needs to follow certain tasks sequentially. Sequential Task groups the tasks into multiple control flows and executes the process sequentially. We can use this task widely based on our requirement like, disabling a sequence when it should not process, use it when managing multiple tasks at a same time in one location. We can easily disable a set of tasks under sequential task by disabling the sequential task alone which is straight forward. If there are many tasks in our package we can group them based on their sequence and used to collapse and expand them and also to enable and disable them easily.
Now add a variable as shown in the below screen.
Now we need to create a scrip task by drag and dropping it and double click on it will open the below screen. Here we need to add the variable to the Readonlyvariable as shown below
Now click on the Design Script button, which will open the below window where we need to write script as shown below in the main method.
Now add a sequential container flow for each day of week as shown in the below screen and connect to the script task
Now click on the green arrow of each task and do the same as shown in the below screen shot for different days
After you have given the expressions for each task your screen look like below
Now right click and execute the package. Or Press F5 directly.