Holiday Schedule in Script

Unanswered Question
Nov 14th, 2008
User Badges:

Greeting's,


I need to add a holiday schedule to my current script. Couple questions, is thier a step for this? If so can I use this one step for a whole year of holiday's or do I have to use this step multiple times in the script?


Any guidance or input would be greatly appreciated!

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (3 ratings)
Loading.

What kind of script ICM, IPCCX, QM, IPIVR?

If in ICM: there are date nodes you can add to the beginning of the scripts and route the calls accordingly.

If in the others: You can do it by/with reading an XML file using the Document objects. Is very simple, you would need to parse the date with a java string class.

Let me know what system you're using and maybe I can send you a sample.

Chris Deren Mon, 11/17/2008 - 06:06
User Badges:
  • Super Silver, 17500 points or more
  • Hall of Fame,
  • Cisco Designated VIP,

    2017 IP Telephony, Contact Center, Unified Communications

The link attached has examples along with documents explaining them.


Chris

This is how I did it in IPCC Express 4.

Basically is a java class capturing the day's date then parsing it and subsequently comparing the values against values found in the xml file.

You call this script via a "call subflow" object from your main script using/reading a boolean variable, in this case called "TodayIsAHoliday". Then in your main script you add commands according to the out come.


I don't know if there is a more efficient way of doing it but this worked out pretty well for me specially when adding or changing dates all I had to do is modify the XML file with notepad.


The XML file is located in the IPCC server in "C:\XML\". This directory does not exist by default, you have to created.



hbarrera2 Wed, 11/19/2008 - 14:29
User Badges:

All,


Thanks for the info, I have started adding the holiday steps to my script. One additional question though...the whole point of this is so when the script detects that it is truly a Holiday the "Holiday Recording" should play instead of the usual one.


Sounds like I am going to have to add a prompt some where in the new holiday section of the script?

CHRIS CHARLEBOIS Fri, 11/21/2008 - 10:02
User Badges:
  • Silver, 250 points or more

Thanks for that script. I modified it alitte: I addded an open and close field for each holiday and it returns one of three strings; HolidayOpen, HolidayClose, and noHoliday.


Now, if the day is a holiday, it uses the open and close hours in the XML. That way, the call center can easily have reduced (or extended) hours on certain days without touching the .aef or needed to reload the script.


One thing I would like to add, however, is some error handling if the file doesn't exist or does not parse. If there is any error, I want to have it return noHoliday as a default. Any idea how I can do that? The Exceptions that are in there do not work; the script crashes if the xml is missing.



Attachment: 

Actions

This Discussion