How to check processDocument status

After call ProcessDocument, Flatfile will be mapped to PIP by another flow service. Then This file will be move to backup folder in flow which call processDocument, however an error happened “file not found” so I wan to check processDocument Status then move file. How can I do that _?

Are you accessing that Flatfile via FTP or shared folder location? you can check the file existance based on that 0 or 1 then only invoke processDocument service for further processing.If not can you elaborate more?