Sarthak Gulati
In Reframework generally the process is segregated by initialisation, process and end.
My thoughts are you can put the required inputs from user if there are in initialisation and then the process as you mentioned which is done should be put in process state and the final state can be where you send email to client with output
So input file come from email so we use for each but if we put that in transaction state it only read I put file it won't fill ouput file so this is the issue I am facing