Sub process finish

HI,

i have a question about sub process. i have a flow like below

image

  1. capture pdf file from a folder
  2. go to sub process
    the sub process do split the pdf file, and assign a file name to it by capture the docuement number
    then output to a folder
  3. Merge the pdf files sort by name from the output of (2)
  4. send the output to a folder

For example, i have a 300 pages pdf file put into the source folder.
my question is : 3 will wait until 2 is finished 300 pages split ? is it the same outcome with using branch ?

thanks in advance.

Workflow is a synchronous application which means that all steps wait for the precedent to finish to start.
The only exception (which isn’t really an exception but look like one) are the OL Connect plugins when used as the last steps of any flows/branches. Since the plugins themselfves aren’t doing the job ( Create Output plugin doesn’t generate a PDF but merely sends the command to the Connect Server which will handle the PDF creation and output) when ran, they will finish (as a Workflow plugin) even though the actual PDF might not be in the destination folder.

To add a little precision to @hamelj’s answer: many other Output tasks are asynchronous. As a rule of thumb, when an Output task relies on an external process, then the task only checks if it was able to successfully deliver the job file to that external process; it doesn’t wait for that process to actually perform its operations. For instance, when printing, the file is sent to the print queue but does not wait for the job to be completely printed before ending the Workflow process. The same logic applies when sending mail through a Mail server.

thanks,
In my case, is it mean [step 3] will not wait the sub process to split all pages and start to merge when the job is sucess deliver to [step 2] ?

Step 3 will wait for step 2 to finish completely before starting the merge.

thank you very much.