Page 1 of 1

Hold file till flow is empty

Posted: Mon Mar 20, 2023 12:29 pm
by b.schuring
Hi all,

Hope there is someone to help me.

I've got a flow where I split a PDF, hold all the pages en want to release them 1 by 1 but one if the first while is trought a certain part of my flow.
So after the first file is passed a specific folder in the flow I want to release the next, and so on...
Is this possible?

Thanks in advanced!
Bas

Re: Hold file till flow is empty

Posted: Mon Mar 20, 2023 4:00 pm
by jan_suhr
You can send the file waiting in an end folder of the flow, with a path to the disc. Then use the Inject tool to pick it up where you need to insert it again.

Re: Hold file till flow is empty

Posted: Fri Mar 24, 2023 9:35 am
by laurentd
Hi Bas,

1. You can use the hold element, and on the outgoing connection, use the space jobs apart property.

2. You can use the Job sorter and spacer app, part of the Folder apps bundle.
Job sorter and spacer.png
Job sorter and spacer.png (30.92 KiB) Viewed 1816 times

Both methods work fine, but you have to estimate the time it takes to process a job.
And sometimes Switch will wait too long if a job is processed faster.

So here is solution 3, a bit like Jan's answer:
Send a copy of the job to a hold folder.
Use a hold element with space jobs apart property and folder constraint upfront, as illustrated.
At the end of the flow, inject that job from the hold folder, so that the next job can start.
This acts as a gatekeeper.
If you want the files to be processed in a certain order (e.g. alphabetically), replace Ungroup Job with the Job sorter and spacer app.

one job at a time.png
one job at a time.png (29.09 KiB) Viewed 1813 times
Hold outgoing properties.png
Hold outgoing properties.png (51.45 KiB) Viewed 1816 times

Re: Hold file till flow is empty

Posted: Fri Mar 24, 2023 10:42 am
by b.schuring
Works like a charm! This was exacly what I neededThanks!