How to count instances of a variable in a group or Assembled Job
Posted: Mon Nov 05, 2018 11:06 am
Workflow example:
Folders containing varying numbers of PDFs are dropped in to workflow and the number of PDFs in the folders are counted.
During flow a suffix of either _OddPages or _EvenPages is added to PDFs. The Odd Pages from each original folder are then grouped and emailed to someone, listing how many there are.
Issue:
I want to be able to have an Assemble Job that waits for X number of '_OddPages' (minus the even pages), before sending an email.
This is quite a large workflow, so don't want to have a time-out to Assemble the Odd Pages, as some PDFs may be left behind. Plus it adds an unnecessary delay in the flow.
Tried numerous different solutions, but always come back to not knowing how many files it's waiting for?
Counting the number of _OddPages and _EvenPages before Ungrouping would solve this. Job.FileCount could be used, but that doesn't include any search variables.
We have the Scripting Module, but not sure how to script for this?
Any suggestions would be very welcome.
Thanks in advance.
Richard
Folders containing varying numbers of PDFs are dropped in to workflow and the number of PDFs in the folders are counted.
During flow a suffix of either _OddPages or _EvenPages is added to PDFs. The Odd Pages from each original folder are then grouped and emailed to someone, listing how many there are.
Issue:
I want to be able to have an Assemble Job that waits for X number of '_OddPages' (minus the even pages), before sending an email.
This is quite a large workflow, so don't want to have a time-out to Assemble the Odd Pages, as some PDFs may be left behind. Plus it adds an unnecessary delay in the flow.
Tried numerous different solutions, but always come back to not knowing how many files it's waiting for?
Counting the number of _OddPages and _EvenPages before Ungrouping would solve this. Job.FileCount could be used, but that doesn't include any search variables.
We have the Scripting Module, but not sure how to script for this?
Any suggestions would be very welcome.
Thanks in advance.
Richard