I am reading files from external repository and saving the file content into database using Dataflow and Dataset. My requirement is to move the file that was read into another folder. I have written post processing activity to achieve this. Since Dataflows will execute on different threads & post processing activity executes irrespective of status of Dataflow, sometimes even though Dataflow is in Initializing status, the activity is trying to move the file, which is causing an exception.
How can I ensure that post processing activity will run only after Dataflow status is completed?