cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

Community Helping Community

125
Views
0
Helpful
2
Replies
Highlighted

emergencycheck.aef - UCCX script

All,

I am trying to use the 'icd demo' script from Cisco script repository as it covers emergency and holiday checks which is something I need. However getting stuck with the emergency.xml document from the emergency.aef sub flow. Things go wrong when the variable is populated with the path '/opt/cisco/uccx/customer' and '/opt/cisco/uccx/customer/emergency.xml' for the document. I have no idea how to put the emergency.xml into this directory. The actual error I get is around the path not being valid and the file not found.

This thread seems to cover the same issue:

https://community.cisco.com/t5/contact-center/uccx-emergencycheck-script/td-p/2857727

However I do not fully understand the solution or the alternative of bypassing it.

Here are the instructions with the script:

Instructions:
=============
Use this script as a subflow in any call center script to check to see if emergency routing has been enabled
The variable "isEmergency" is a boolean variable that will return the status of emergency routing

Need a file: emergency.xml" with the following structure and it should be located in customer folder of UCCX

Questions:

1. How do I upload my emergency.xml document to the path above? It would seem it is not accessible and it is created 'behind the scenes' after you upload to Document Management.

2. Can I not just upload the root of en_GB which is my language set on my trigger?

3. How would I do this suggested alternative by Deepak: (Struggling with the Create XML Document step..)

...if you want not to do that way then simply upload the emergency.xml in the Document Management on UCCX under the folder that you have set as your Default Language for UCCX and then in the Create XML Document step, simply define emergency.xml inside a document variable and use it as Source Document and system will pick it that way as well

 

Thanks

Mike

 

 

2 REPLIES 2
Beginner

Re: emergencycheck.aef - UCCX script

I tried to figure this out... and I cannot find how to access the "Customer" directory, either.  '/opt/cisco/uccx/customer' and '/opt/cisco/uccx/customer/emergency.xml' ultimately being assigned to/by: fileReference=System.getProperty("uccx.customer.dir")   ....this is rather foreign to me since I'm not fluent in JAVA.  I did go back through the 'emergencyCheck.aef' subflow and modify it to work in a different manner--which I think is referenced in your question #3 below.

 

1. How do I upload my emergency.xml document to the path above? It would seem it is not accessible and it is created 'behind the scenes' after you upload to Document Management.

Perhaps this was running on an earlier Windows based version of UCCX? ...I don't see a hard drive letter in the directory path, which I've seen in older scripts...  Not sure about this.

I altered the "emergencyCheck.aef" subflow to work with the Documents repository, which I believe is what you were attempting. (...?) 

 

2. Can I not just upload the root of en_GB which is my language set on my trigger?

Yes.  In the attached pics below, I have accomplished this by modifying one of the scripts as an example.  It will work with data files sourced from either the 'default' or primary language directory (en_GB, mentioned in your case, configured in your system, in the Documents Repository.

 

3. How would I do this suggested alternative by Deepak: (Struggling with the Create XML Document step..)

...if you want not to do that way then simply upload the emergency.xml in the Document Management on UCCX under the folder that you have set as your Default Language for UCCX and then in the Create XML Document step, simply define emergency.xml inside a document variable and use it as Source Document and system will pick it that way as well

This is how I modified one of the scripts:

1-scriptEditor-30.png

...I removed references to the 'directory path' for the 'Customer' location.   All simple UCCX step items.

 

1-scriptEditor-31.png

...I removed several variables that were unnecessary for this subflow script.  I used the expression step editor to copy the XML data Document "emergency.xml" from the Documents repository assigned to the Document variable "doc", as seen in the variables pane above.

The main/triggered script can be modified similarly to reference any XML data files you upload to the Documents repository from the Administrative UI, or you modify from a script using Keyword Transform/Write Document/Upload steps.

Let me know if this helps you in the right direction.

-Sean

 

Re: emergencycheck.aef - UCCX script

Thanks for the detailed response. I will give this a go and let you know how I get on. Thanks again!
CreatePlease to create content
Content for Community-Ad
FusionCharts will render here