AnsweredAssumed Answered

ESA alerts depending on business hours AND business days

Question asked by Uq1lws3RT39tp8reFD8y8NuuHaHt7KaBBIJDVDjgnPY= on Feb 9, 2016
Latest reply on Oct 17, 2016 by Joe Gumke

Hi,

 

I have working ESA rule depending of the time with the following syntax

@Name('OutBusinessHours')

create context BusinessHours start (0, 17, *, *, *) end (0, 8, *, *, *);

...

 

It works fine but my customers don't work on saturday and sunday.

 

So, how to combine multiple contexts with a logical "OR" (as a "nested context"  could do it with a "AND")?

 

@Name('OutBusinessHours')

create context OutBusinessHours

    context OutHours start (0, 17, *, *, *) end (0, 8, *, *, *)

OR

   context WeekEnd start (0, 0, *, *, 5-6) end (59, 23, *, *, 5-6)

Outcomes