I’m trying to figure out how to treat all files from a input as part of the same run.
I’m coming from Pres Automate environment and am trying to replicate some of the process’ we have.
Is there a function in Connect Workflow that waits a certain period of time or for a file count before continuing the process? And then treat all files as part of the same run?
An example would be
Retrieve files from an sftp location every hour, gather these files zip and save the zip file then send a notification email with a list of the files retrieved from the sftp.
But reading the help files it seems to indicate that each file is treated as a separate entity.
I’ve tried running them out to a temp directory and then picking them up from there but it seems like it treats each file as a separate process all the way thought the workflow
Hi Michael,
You are correct in that any file that is submitted to the workflow via an input plugin (e.g Create File, Folder Capture, FTP Input, etc) will be treated as its own isolated run.
As you are saying the FTP Input plugin will only grab a file one at a time, even if there are (for example) 10 files in the directory. Probably the best way to get around this is to have two plugins - one simply to pull the files from the FTP folder and save them to a directory, and the other to run 15 minutes after to zip up the files and email them.
So in the first process it would simply have two plugins and would run every half an hour (for example). In that half an hour time it would poll for 15 minutes, allowing it to capture all the files one by one from the FTP location:
In the second process you would have it run in the alternating 15 minute bracket, however you’d only have it poll once per this period as it would not be receiving any more files during that time.
With regards to the 2nd process though aren’t I going to have the same issue as this process will require an input that too? And the folder capture seems to behave in the same way processing one file at a time.
Also there doesn’t seem to be a installed zip plugin. I can see the decompress one but I can’t see any that would create a zip file? Is this correct?
Hi Michael,
There is a legacy ZIP plugin that is available from the Objectif Lune website, however in the example I was playing around with I was using the External Program plugin to call WinRAR via command line to zip up all the files in a directory.