Hold jobs until 100

Post Reply
Fist
Member
Posts: 27
Joined: Mon Aug 31, 2015 2:49 pm

Hold jobs until 100

Post by Fist »

I need to gather 100 pdf files in a folder before sending them trough a workflow.
The "Hold Job" element seems to me a good idea, but then I need a java script expression.
Anyone who has done this?

Regards

F
User avatar
gabrielp
Advanced member
Posts: 645
Joined: Fri Aug 08, 2014 4:31 pm
Location: Boston
Contact:

Re: Hold jobs until 100

Post by gabrielp »

Try to assemble the job based on a number of arbitrary files: http://www.enfocus.com/manuals/UserGuid ... e_job.html
Free Switch scripts: open-automation @ GitHub
Free Switch apps: open-automation @ Enfocus appstore

Want to hire me? I'm looking for my next gig. Contact me on LinkedIn or via email.
Fist
Member
Posts: 27
Joined: Mon Aug 31, 2015 2:49 pm

Re: Hold jobs until 100

Post by Fist »

gabrielp wrote:Try to assemble the job based on a number of arbitrary files: http://www.enfocus.com/manuals/UserGuid ... e_job.html

Yes, That's the way to go. Thanks!

Schermafbeelding 2017-07-27 om 21.07.50.png
Schermafbeelding 2017-07-27 om 21.07.50.png (30.44 KiB) Viewed 6578 times
Fist
Member
Posts: 27
Joined: Mon Aug 31, 2015 2:49 pm

Re: Hold jobs until 100

Post by Fist »

@gabrielp With 3 pdf files, it did work, but now I've set the prefs to 100 and suddenly every pdf is going trough.
What am I doing wrong?

I'm getting for each file a mail notification instead of 1 for the whole package.

Schermafbeelding 2017-07-28 om 17.18.39.png
Schermafbeelding 2017-07-28 om 17.18.39.png (49.92 KiB) Viewed 6567 times



Fist wrote:
gabrielp wrote:Try to assemble the job based on a number of arbitrary files: http://www.enfocus.com/manuals/UserGuid ... e_job.html

Yes, That's the way to go. Thanks!

Schermafbeelding 2017-07-28 om 17.18.39.png
Schermafbeelding 2017-07-28 om 17.18.39.png (49.92 KiB) Viewed 6567 times
User avatar
gabrielp
Advanced member
Posts: 645
Joined: Fri Aug 08, 2014 4:31 pm
Location: Boston
Contact:

Re: Hold jobs until 100

Post by gabrielp »

Man, those attachments are so small, it's hard to read. But I would say maybe you need to extend the orphan time out. Does it take a while for all 100 items to get to the assemble step? If so, estimate that time and set the orphan timeout to it.
Free Switch scripts: open-automation @ GitHub
Free Switch apps: open-automation @ Enfocus appstore

Want to hire me? I'm looking for my next gig. Contact me on LinkedIn or via email.
Fist
Member
Posts: 27
Joined: Mon Aug 31, 2015 2:49 pm

Re: Hold jobs until 100

Post by Fist »

@gabrielp Thanks for the reply! I can not guess how long it will take to have the 100 required pdf's. It can take days, even weeks. That's why I need this reliable counter so I do not need to check every day.
Let's say I set the orphan timeout on 5 days (7200) then each 7200 minutes, the monitored folder will be released? The orphan time will have priority on the scheme of every N jobs?

Schermafbeelding 2017-07-31 om 06.49.00.png
Schermafbeelding 2017-07-31 om 06.49.00.png (145 KiB) Viewed 6548 times



gabrielp wrote:Man, those attachments are so small, it's hard to read. But I would say maybe you need to extend the orphan time out. Does it take a while for all 100 items to get to the assemble step? If so, estimate that time and set the orphan timeout to it.
Post Reply