Reducing the amount of processes that do the same task

Hi,
We have, unfortunately, a large number of processes (probably 100+) in Workflow that do little else other than email output files to recipients. I’m struggling to find the best solution to reduce the number of these processes.

I could use a subprocess to perform the repetitive email send task and define those recipients as variables in a main process but I can’t see how that would be any different than what we’re currently doing.

These processes consist of only 3 tasks, a Folder Capture, a Rename to %o and a Send Email task.

Any suggestions to help me cut down the number of processes doing this task would be greatly appreciated.

Thanks
Matt

A subprocess is the way to go, especially if you’ve upgraded Connect to the 2022.1 version.
You can create a subprocess that only contains 2 tasks:

  • Rename
  • Email Output
    In that subprocess, insert a few local variables (Folder, FileName, Recipients, Subject, Body, etc). Those variables are used by the Rename and Emailing tasks.

Now in your Main process (i.e. the calling process), you can have a Folder Capture that monitors several folders at once. That process can contain as many tasks as you want in order to generate the proper values that it will then pass on to the subprocess, using the new Runtime parameters available in the Gosub task in version 2022.1. These runtime parameters are actually the variables you`ve defined in your subprocess:

Thanks Phil… Once we have updated I will give this a try.