cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
4199
Views
0
Helpful
20
Replies

UCCX 10.5 Subflow call

jfhandfield
Level 1
Level 1

I'm pretty new to Uccx scripting and I'm pretty confused. I created a HolidayCheck routine that works perfectly on is own. I have a boolean variable that is set to true whenever today is a holiday. I'm trying to call that Script from my main Call Center by using the Subflow routine call but for some reason it never changes my variable to true in my main script. I might be something wrong but I'm pretty confused. I tried changing the variable from a boolean to a string and still I never get true in my main script. I even tried changing to a int and see how many loops it goes through and I get a count of 2 loops, when in fact I'm suppose to get 4, which is far from the correct amount.

 

I don't know if there enough info in my post for you guys to figure out why but I could post some screenshots of my scripts.

 

Thank you for the help!

2 Accepted Solutions

Accepted Solutions

Sweet Jesus. After 2 days of testing I finally figured it out. When I was testing my HolidayCheck on it's own for some reason the document it was loading was in Document\En\Holiday.xml so everytime I made a change to the Holiday.xml I was uploading it in there. But for some reason When I call the subflow the Holiday.xml it's loading is in Document\FR_CA\Holiday.xml which I never made a change since day one. So by uploading it there everything is perfect now! Can anyone tell me why that is though. Is it something I should be doing, uploading my file in every sub container in the Document Folder?

 

Btw I got to this conclusion by adding my HolidayCheck directly in my CPTE_A_PAYER Script under a label that's where I saw that the docDateList only had one Holiday in and not 6 like my newest Holiday.xml

View solution in original post

I had similar issues..

Initially, I just renamed an old holiday check file I had to what you named yours. Just to test that dates were being pulled and tested correctly.

Then when I got your xml and uploaded it to overwrite the old one, for some reason, the script was still pulling the old values. It finally worked when I renamed both the xml and it's variable in the script to something unique.

 

Seems like maybe it caches that initial file or something?

Anyway.. glad you figured it out. 

View solution in original post

20 Replies 20

jfhandfield
Level 1
Level 1

Hope this clarify what I'm talking about.

Script.png

Are you able to upload the scripts here? 

Sure I can, but I tried adding the scripts using the paperclip thing but i won't accept the aef extensions. How do you want me to add them?

Zip em up. Or you should be able to change the extension to .doc or something.

Ok, I changed the extension from aef to docx. 

Have you done reactive debugging?

When it "hits" a holiday in the check script, does it go through the steps and successfully set strIsHoliday to "true"?

I'm just trying to confirm that the issue is with passing the variable back to the primary script. 

Yes the issue is that I never get back true from my HolidayCheck script. If I run the HolidayScript by itself I do see that I get the true value but when I run it from my CPTE_A_Payer script the strTodayIsAHoliday always comeback false

Try changing strIsHoliday in the holiday check to a boolean

I do mine a little differently. 

It was a boolean at first and I changed it to a string. I had the same problem. I even tried adding a int in my HolidayCheck to check how many passes it goes throught and in 4 passes the count comesback with 2

Do you want to consider using my script? it's a different, and in my opinion a better, way to do it. 

See attached. I just copy the dates string into a notepad and add/edit dates as needed. 

 

Rename to aef

I'll give it a try and I'll let you know.

 

Thank you for the help!

I think that I'm using uccx express since I get a error message in your script saying : Java extensions are not licensed to support method invocations.

Crap. 

Give me a few minutes to try and troubleshoot yours.