Try using the Parallel Block Until Done (Crew Macro) to achieve this: (In essence, the tool blocks the 2nd input and output to be processed till the 1st input and output steps are completed)
- The 1st input to the tool will be the incoming connection of the dataset to be output
- The 1st output will be connected to the Output tool
- The 2nd input will be connected to the dataset referencing the expected input file - same as the output tool file naming convention
- The 2nd output could be connected to the dynamic input tool (reading in the file/datasource that was written in the 1st output step)
Hope this helps!