Scheduling a Business Rule

swapnil15
Tera Contributor

Hi there,

I need help with scheduling the run of a BR (Business Rule) on specific days and times. I have attached the BR and a schedule that I've already created in the system. The requirement is to run the BR from Monday to Friday, between 7 am to 7 pm, excluding bank holidays.

I've created a schedule named ' *- 7.00 AM to 7.00 PM - Monday to Friday (UTC) - (Excluding Bank Holidays)' and I want to know the best way to call the BR using this schedule. Or if there is any other way to handle this?

Thank you.

5 REPLIES 5

Mark Roethof
Tera Patron

Hi there,

 

The purpose of a business rule is not scheduling. For scheduling you have other options, Scheduled Jobs, Scheduled Flows, triggers, etc..

Technically you can still call a business rule scripted, and you might find out-of-the-box examples doing so, though that's not really their purpose.

Question is also a bit why you want this? Or why you are thinking of this?

Hi @Mark Roethof ,

When an end-user has an incident with them, the fields - service offering and assignment group are empty at that time so as soon as the BR conditions are true, the incident populates these fields and then the end user starts working on this ticket. Now, the catch is end users aren't available on weekends and bank holidays. So when a ticket is assigned to a group on a weekday there is no one to work on it and hence the weekend time also gets calculated for this and that becomes a big loss for the team. So, not allowing the BR to run on weekend and public holiday will solve this problem. Hence, I need to configure a schedule for this BR which will run from Mon to Fri 7 am to 7 pm. I want to use the already existing schedule in a system with relation to BR or vice-versa. 

Hi @Dr Atul - LNG ,

I went through those threads/ links, but didn't find any customized schedules configured like the one I need. It has predefined schedules that already exist in the system.