Release files on the 1 and 15 of every month

Post Reply
sundanceusa
Newbie
Posts: 2
Joined: Sat Nov 03, 2018 7:28 pm

Release files on the 1 and 15 of every month

Post by sundanceusa »

Hi, we are trying to create a workflow that will release files on the 1st and 15th of every month, any tips on how to achieve this?

Note: We receive one file every day via FTP.
laurentd
Member
Posts: 137
Joined: Wed Mar 13, 2019 2:06 pm

Re: Release files on the 1 and 15 of every month

Post by laurentd »

Hi, use a Hold job element with this release condition:

[Switch.Calculation:Expression="[Switch.Date:Format="d",TimeZone="System"]"] Equal to 1
OR
[Switch.Calculation:Expression="[Switch.Date:Format="d",TimeZone="System"]"] Equal to 15
Laurent De Wilde, Solution Architect @ Enfocus
eyakovetz
Newbie
Posts: 1
Joined: Wed Feb 01, 2023 8:14 pm

Re: Release files on the 1 and 15 of every month

Post by eyakovetz »

Thank you for this! I needed a solution to release files from two different queues, one each every 5 minutes, on the :00s and :05s. A regular Delay condition wasn't buffering the queues for 10 minutes' worth of files, it was just delaying the drop of one file at a time.

I set the release condition for the first folder to:
[Switch.Calculation:Expression="[Switch.Date:Format="mm",TimeZone="System"]%10"] Equal to 0
and the other to:
[Switch.Calculation:Expression="[Switch.Date:Format="mm",TimeZone="System"]%10"] Equal to 5
retrying every 1 minute. This is producing the desired result. \o/
Post Reply