Hi Everyone, I want to trigger my process on 7th working day of the month, i mean we have to exclude the Saturday and Sunday. So our intention is to run the process on Working days Monday to Friday. i think orchestrator chronic expression is not enough for this logic. Need to implement any extra logic for these scenario.
Once created, select that calendar from trigger section, and provide cron expression. for example below cron expression would start process 7th day, likewise you can customize per you need(time/day etc):
0 0 0 7 * ? *
I’m pretty sure the result of this is if the 7th day of the month is a Saturday or Sunday, the calendar will block it from running. I don’t think the trigger combines the cron expression with the calendar to find the 7th working day on the calendar.
@Gopi_Krishna1 the simplest way to do what you want is to code into the automation to check if it’s the 7th working day of the month. If it is, continue, if it is not then stop. Then just create a trigger to run on days 1-9 of the month.
Custom Calendar here refers to the calendar with only weekdays(no holidays/no weekends included). so now if cron expression is configured to run on 7th day of that calendar, that is essentially 7th working day.
But again, that is something, @Gopi_Krishna1 can configure, implement and confirm the results for.
That’s not how it works. There is no connection between the CRON expression and the calendar, as far as I know. It’s not parsing the CRON expression against the calendar. The CRON expression just determines when it tries to run - no different than if you manually select certain days in the trigger settings. If one of those days is not a working day according to the calendar, it just doesn’t run that day.
Have a list of the 7th working day in a file like csv or xlsx because there could be regional holiday’s or time off which we can’t calculate by the code as it’s very dynamic.
Setup a trigger to run the bot everyday
Add logic in bot to check if todays date is in the step one list. If yes, run the bot logic else just finish the execution.