Skip to main content
Solved

Can I schedule my Action Flows to execute differently, according to the relative WORKING DAY of the month?

  • August 24, 2022
  • 3 replies
  • 13 views

Good afternoon,

 

We've set up an Action Flow that we want to run at different times, depending on the relative day of the month, ie:

If we're on the 5 First Work Days or 5 Last Work Days of the month, we want the Action flow to run 4x a day, at specific times;

If we're Not in the above mentioned interval (M+5 to M-5), we want the Action flow to run 1x a Day, at a specific time

 

I've managed to set up a filter that would work for Calendar Days, however I cannot seem to get a WorkDays based solution

 

 

Days Filter 

Can anyone assist?

 

Thank you very much in advance!

 

 

Best Regards,

Best answer by vasco.caron11

Good morning Guillermo,

 

That is exactly what I have done!

Basically it runs every hour and then goes through a PQL filter to determine if the current Date is within the  5 First Work Days or 5 Last Work Days of the month and if the Hour is defined as an Execution Hour.

 

Depending on the PQL, the # of Bundles will be > 0 or not, which then moves to the E-mailing step (or not)

 

Best Regards,

 

Vasco Carona

3 replies

AFAIK you can NOT do that with the scheduler.

 

One option that comes to my mind is to schedule it all days and at all the 4 possible moments, then use some logic element inside de Action Flow to determine if it is the condition is true

 

So if it is a "common" day, if the hour is not the scheduled, ignore. Only allow the execution when is the specific time for "common" days.

 

On the opposite, in the first or last 5 days of the month, you allow the execution at all the 4 slots defined.

 

HTH


  • Author
  • Level 7
  • 23 replies
  • Answer
  • August 29, 2022

Good morning Guillermo,

 

That is exactly what I have done!

Basically it runs every hour and then goes through a PQL filter to determine if the current Date is within the  5 First Work Days or 5 Last Work Days of the month and if the Hour is defined as an Execution Hour.

 

Depending on the PQL, the # of Bundles will be > 0 or not, which then moves to the E-mailing step (or not)

 

Best Regards,

 

Vasco Carona


  • Level 0
  • 48 replies
  • September 17, 2022

Hi Vasco,

 

If this isn't yet answered, please open a ticket at servicedesk@celonis.com, they'll be able to help you out.

 

Many thanks,

Mentor