V8.01 Scripts

Version 1
    This document was generated from CDN thread

    Created by: JOHN REILLY on 08-06-2010 10:29:04 PM
    Does anyone know how to use the System.getProperty("uccx.customer.dir") function in a script. This is something new with V8 having switched from Windows to Linux.

    Thanks

    Subject: RE: V8.01 Scripts
    Replied by: Sharik M on 14-03-2013 08:49:51 AM
    Hi John
     
    Yes this is introduced as part of migration to VOS platform done for increased security and is the only path in uccx file system where customer can create new files for there personel usage .Like log files for their custom code .This System.GetProperty(“uccx.customer.dir”)  can be used in Set Step to refer that path and Write Document can be used to create files with relative path as path and also in custom Java  code to get that path and dump your log file in that path
    Also one point to note is that this folder contents are not replicated on the other Node.
    To read the log files from that location , you can use CLI commands like  below –
     
    ? file uccx view: This command will be used to view custom files created by UCCX scripts. 
                    Syntax: file uccx view custom_file file-spec
    ? file uccx list: This command will list custom files created by UCCX scripts.
                   Syntax: file uccx list custom_file file-spec
    ? file uccx get: This command will transfer the custom files created by UCCX scripts outside the box.
                   Syntax: file uccx get custom_file file-spec
    ? file uccx tail: This command will tail a custom file created by a UCCX script.
                    Syntax: file uccx tail custom_file file-spec
    ? file uccx delete: This command will delete a custom file created by a UCCX script.
                    Syntax: file uccx delete custom_file file-spec
    ? file uccx dump: This command will dump the contents of a file on the UCCX custom files area. Syntax: file uccx dump custom_file file-spec
     
    You can refer to CLI Reference Guide for more details on the above commands.
     
    Hope this helps.
    Regards
    Sharik Saigal M

    Subject: RE: V8.01 Scripts
    Replied by: George Hendrix Jr. on 02-08-2013 09:41:28 AM
    Hi Sharik, I've done some doc writes in CCX 7 and prior.  I was able to specify the directory in which the file is written.  I see in the new linux platforms, they are written to /opt/cisco/uccx/Customer.  Does this mean if I have several customers, that all their documents are in the same directory?  I have uploaded the XML docs in the customer directory via the appadmin webpage under documents en_US\Customer1 and another under en_US\Customer2. Does it use these or no? Thanks.

    Subject: RE: V8.01 Scripts
    Replied by: Sharik M on 02-08-2013 01:10:11 PM
    Hi George,
                You do not need the System.getProperty("uccx.customer.dir") for documents uploaded from AppAdmin Document Management you can directly use the document folder steps like Create XML Doc Step for files documents en_US\Customer1 and another under en_US\Customer2. will be accesible with correct source path reference.
    System.getProperty("uccx.customer.dir") will be used if a document is create directly into filesystem using Steps like Write Document Step

    Regards
    Sharik Saigal M

    Subject: RE: V8.01 Scripts
    Replied by: George Hendrix Jr. on 02-08-2013 04:54:48 PM
    What would be the correct path for document uploaded to en_US\Customer1 ?

    Old way I did it:
    "C:\Program Files\wfavvid\Documents\user\en_US\Customer1\Swells\Swell_template.xml" (source doc)

    "C:\Program Files\wfavvid\Documents\user\en_US\Customer1\Swells\swell.xml" (write to this doc)

    Both XML files are uploaded via the AppAdmin webpage.

    Thanks

    Subject: RE: New Message from George Hendrix Jr. in Contact Center Express Scripting
    Replied by: Sharik M on 03-08-2013 11:41:54 AM
    Hi George,
                    You can browse the document  through Document Repository from Expression Manager using Browse Document  and the source Document in your case is DOC[/Customer1/Swells/Swell_template.xml]

    Regards
    Sharik Saigal M

    From: Cisco Developer Community Forums [mailto:cdicuser@developer.cisco.com]
    Sent: 03 August 2013 03:25
    To: cdicuser@developer.cisco.com
    Subject: New Message from George Hendrix Jr. in Contact Center Express Scripting (CCXS) - Contact Center Express Scripting Questions: RE: V8.01 Scripts

    George Hendrix Jr. has created a new message in the forum "Contact Center Express Scripting Questions": -------------------------------------------------------------- What would be the correct path for document uploaded to en_US\Customer1 ?

    Old way I did it:
    "C:\Program Files\wfavvid\Documents\user\en_US\Customer1\Swells\Swell_template.xml" (source doc)

    "C:\Program Files\wfavvid\Documents\user\en_US\Customer1\Swells\swell.xml" (write to this doc)

    Both XML files are uploaded via the AppAdmin webpage.

    Thanks
    --
    To respond to this post, please click the following link: http://developer.cisco.com/web/ccxs/forums/-/message_boards/view_message/17923733 or simply reply to this email.