10-08-2009 11:24 AM - edited 03-14-2019 04:41 AM
Hello,my script doesn't recognize holidays, i created a XML file with the dates a holiday script and the main script pointing to the holiday script , when i check with the reactive debug he checks the holiday and it goes to the open menu. any suggestion?
Solved! Go to Solution.
10-09-2009 07:35 AM
Try these. Make sure to put the dates.xml file in the document repository, and not in the wfavvid folder.
10-08-2009 12:26 PM
Does the date on the xml file match up exactly (format-wise) with today's date that you're comparing with? Use the debug to compare today's date with the xml date.
10-08-2009 12:37 PM
thank you for the reply,that is how it looks like. and the XML file its saved on the wfavid folder.
10-08-2009 12:49 PM
I take it you're using the subflow to call into the Holiday script? On your subflow step (on the second tab), do you have the proper variables configured so the Main script get's the result back from the Holiday script?
10-08-2009 01:32 PM
Here are some more details. very likely you may not be reading your xml. Below are some details however if it does not help shoot me an email I have 2 scripts one main one to check holiday and the holiday xml file I can share. Baseer@netfci.com
Updated for IPCC Express 4.0 and above by jyoung@evelocity.net
The ipccx4holiday script uses an xml file, dates.xml, as a list of holiday dates. The
script will compare "todays date" with all of the date entries in the file. If it finds
a match, it will set the boolean variable todayIsAHoliday to "true". This script
can be called as a subflow with this boolean variable. The variable can be
tested by the calling script to perform the desired holiday action if true.
The dates.xml file should be placed in the install folder, typically:
c:\Program Files\wfavvid
A template for the text file input is included below. Change the 3 sample dates,
add dates for 4-10, and add more if needed.
10-08-2009 02:10 PM
10-08-2009 05:41 PM
When you do a reactive debug verify that the boolean variable that you are trying to use is changing to true. This will first tell you if you are getting the expected results from the subflow. Looks like there are two different variables for some reason that are mapped between the script and subflow. Not really sure why, but would suggest just using one.
Secondly, your if statements need to compare something. For instance todayIsAHoliday==true
10-08-2009 07:33 PM
I tried with only one if but it skips the Boolean variable like that, and i tried specifying go to the calendar if it was true with no luck. not sure why but is not understanding the XML file.
Thanks for your input.
10-09-2009 07:35 AM
10-09-2009 07:47 AM
Try a string variable rather than a boolean. I have noticed that sometimes boolean's don't pass cleanly from a subflow. This has been on the later versions of UCCX.
06-11-2013 12:06 PM
This is an awesome thread. Still relevant. You rock, jmorlan.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide