The Notification Manager architecture allows you to create a robust notification strategy using a few basic rules:
BeginTime: 11:00 PM
EndTime: 7:00 AM
This time block starts at 11:00 at night, crosses midnight, and ends at 7:00 the next morning.
Similarly, when the EndTime is the same as the BeginTime, the time block is interpreted as crossing midnight into the next day. Consider the following time block:
BeginTime: 9:00 AM
EndTime: 9:00 AM
This time block starts at 9:00 in the morning, crosses midnight, and ends at 9:00 the next morning.
When scheduling by date, you cannot specify the same BeginDate and EndDate when your times specify that your timeblock will cross midnight. For example, you will receive an error if you specify 7/10 for both BeginDate and EndDate in either of the two previous examples. Both of those examples begin on one day, cross midnight, and end the next day. Therefore, the appropriate EndDate would be 7/11.
In general, you can interpret that notifications will stop at the EndTime on the EndDate. The one exception is midnight. Notification Manager interprets an EndTime of 12:00 AM as the end of the current day, not the beginning of the next day. Consider the following time block:
BeginTime:12:00 AM
EndTime: 12:00 AM
BeginDate: 7/10
EndDate: 7/10
This time block is interpreted as starting as the first thing in the morning on July 10, and ending as the last thing at night on July 10. Because a time block which ends at 12:00 AM, never actually crosses midnight, the specified EndDate should not be the date of the next day.
BeginTime: 5:00 PM
EndTime: 12:00 AM
BeginDate: 7/1
EndDate: 7/5
With this time block specification, the person to be notified would be on-call from 5:00 in the afternoon until midnight on each of the five days of the time block. On each of those 5 days, the person will not be notified in the morning or afternoon, until 5:00 PM.
BeginTime: 10:00 AM
EndTime: 10:00 AM
BeginDate: 7/1
EndDate: 7/5
With this time block specification, the person to be notified would be on-call continuously from 10:00 on the morning of July 1st until 10:00 on the morning of July 5th. If your BeginTime and EndTime are not the same time, you have to use multiple time blocks to achieve continuous notifications.
BeginDate: 10/1
EndDate: 2/15
This time block will start in October, and continue until February of the next year.
BeginTime: 8:00 PM
EndTime: 3:00 AM
BeginDate: 2/15
EndDate: 2/29
Every year, the person will always be notified on 2/28 from 12:00 in the morning until 3:00 AM, and again from 8:00 PM until midnight that same night. During leap years, the person will also be notified on 2/29 from 12:00 in the morning until 3:00 AM.
This behavior is exactly what was specified by the time block. However, you must recognize that the person will be notified from 8:00 PM until midnight on the last day of February on non-leap years, but not on leap years.
Similarly, consider the following time block:
BeginTime: 8:00 PM
EndTime: 3:00 AM
BeginDate: 2/29
EndDate: 3/5
Every year, the person will always be notified on 3/1 from 12:00 in the morning until 3:00 AM, and again from 8:00 PM until midnight that same night. During leap years, the person will also be notified on 2/29 from 8:00 PM until midnight.
Again, the behavior is exactly what was specified by the time block. However, you must recognize that the person's notifications will start at 8:00 PM on the last day of February during leap years, but will not start until 12:00 AM on the first day of March during non-leap years.
Note that you should have fewer special considerations if your times do not cross midnight. There are also no special considerations if your date range crosses 2/29, as long as neither your BeginDate nor EndDate is specifically 2/29.
Copyright © 2012 CA. All rights reserved. |
|