I am processing documents and invoking workflows to move through the process and when I get to the end, I invoke the starting process to move to the next batch. After a few hours of running, my process stops because the maximum invoke depth has been reached. I see in Workflow Error 0700-WF10 with "Invoke Workflow" Activity that the limit is 32 to prevent runaway workflows but if this is not a runaway workflow, how can I work around it?
My process is this:
Workflow A - Looks for Documents in processing folder. Invokes Workflow B on any found documents. Waits for process folder to empty. Invokes Workflow C and then ends.
Workflow B - Process document and move it into archive structure.
Workflow C - Assembles batch of documents in processing folder and then invokes Workflow A. If it finds no documents to assemble in the processing folder, it ends without invoking anything else.