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.
Release files on the 1 and 15 of every month
-
- Newbie
- Posts: 2
- Joined: Sat Nov 03, 2018 7:28 pm
Re: Release files on the 1 and 15 of every month
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
[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
Re: Release files on the 1 and 15 of every month
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/
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/