UCCX Script - Using Dates without Java

Unanswered Question
Apr 13th, 2010

We have a client moving from IPCC 3.5 to UCCX 7.x Standard. Their old scripts used Java to

get the current date for Holiday schedule use. UCCX 7.x standard doesn't allow the use of Java, so I need a work-around. Any ideas appreciated.

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
lohjintiam Tue, 04/13/2010 - 12:02

There's 1 holiday sample script in the repository which uses an xml file to determine if a particular date is a holiday or not.


Brian Carscadden Tue, 04/13/2010 - 12:14

Found my answer in another post. I removed the Java steps, then used a string variable ("todaysDateString") and set it to == D[now]. I ran the debugger to determine the format mm/dd/yy, and confirmed that no leading zero is used. I had existing "if Holiday == todaysDateString then goto (a closed message holiday greeting)". I have nested Holidays with parameter variables Holiday1 through Holiday15 being checked versus today's date. Worked like a charm.

The more recent versions of UCCX do allow Java - just not in the same way that it was done before with creating a Java object and executing a Java method in a step. The Expression Editor is a powerful beast though - you can execute all Java through it. You can compile custom classes and put them in a JAR, deploy it correctly within UCCX, then see that class and it's methods through the Expression Editor.

It's a bit clunky the first time you try it to get it to work, but once you figure it out, there is your complete Java environment.




This Discussion