10-09-24 09:51 AM
Hi Team,
I want to setup a scheduler to run the process on every 4th & 10th business day at 6 pm CST.
Any option available from scheduler to setup like this without doing it from code level.
Thanks & Regards
Sapna Soni
16-10-24 10:44 AM
Creating a Calender for 10th business day would mean that i will have to add all 9 working days for each month separately. If i missed to add one date, it would be a problem & suppose we want to run on 20th business day. This is too tedious & not a feasible approach with schedulers. Not sure how other members handles this scenario with schedules. Any better approach is welcomed.
16-10-24 02:21 PM
Hi @sapna_soni0290,
That method isn't possible anyway. You can't use a calendar with scheduler such that scheduler runs on holidays. It can only be used like that to avoid running on holidays.
The only way to do this with built-in Blue Prism features that I can think of is to do this:
1 - Set up a calendar that describes the normal working/business days. For example, if business days are Monday through Friday, then choose those days as the working days. Of course add in holidays to account for weekdays that are holidays and not working days.
2 - Set up a schedule that uses that calendar, and this schedule should then start your process every business/working day of every single week.. This does mean the process will run basically every day, but that is how it is done in Blue Prism (again with built-in functionality).
3 - In your process, the first step should be for it to use the Calendars object and expressions to identify whether the current day is or is not the target nth Business day, such as the 10th or 20th. You could give it an input parameter for the number it should run on or have it read from an excel file or a config text file or an environment variable. This would be up to you do design how it should know which day. But it would basically consult the calendar to calculations to determine whether today is the 7th business day or 13th business day or whatever of the month etc. If it is the nth day on which it should run then it continues to do all the logic in that session. If it is not the target day, then it should just end without doing any work.
I know that doesn't sound ideal, but this is what Blue Prism developers typically do, and I suspect it is the same in many RPA tools.
Again, in case anyone reads this and misunderstands, I am saying this is how to do it with no special tools involved and without calling Blue Prism from an outside tool but instead using Scheduler and Calendars etc built-in features.