IPCC Express 4.0

Answered Question
Dec 20th, 2006
User Badges:

How can I define and use a "global" variable in IPCCX? I want to be able to modify a variable that can then be used from other scripts.

Thanks,

Glenn

Correct Answer by Chris Deren about 10 years 8 months ago

No way. Take a look at these sample scripts (bottom of page)

http://www.cisco.com/en/US/partner/products/sw/custcosw/ps1846/products_implementation_design_guides_list.html


take a look at the state_check.aef and state_update.aef examples, they should give you all you need.


HTH, please rate all posts!


Chris


  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
Chris Deren Wed, 12/20/2006 - 06:31
User Badges:
  • Super Silver, 17500 points or more
  • Hall of Fame,
  • Cisco Designated VIP,

    2017 IP Telephony, Contact Center, Unified Communications

Your best alternative is to write it to an XML file. I've done many implementations where global varaibales were needed and writing it to XML file, then reading from it is the easiest way. ANother way is to use DB.


HTH,


Chris

glenn.martindel... Wed, 12/20/2006 - 06:33
User Badges:

Is there no way of defining a global variable? If not, does anyone have an example of a script that writes to an XML?

Thanks,

Glenn

Correct Answer
Chris Deren Wed, 12/20/2006 - 07:42
User Badges:
  • Super Silver, 17500 points or more
  • Hall of Fame,
  • Cisco Designated VIP,

    2017 IP Telephony, Contact Center, Unified Communications

No way. Take a look at these sample scripts (bottom of page)

http://www.cisco.com/en/US/partner/products/sw/custcosw/ps1846/products_implementation_design_guides_list.html


take a look at the state_check.aef and state_update.aef examples, they should give you all you need.


HTH, please rate all posts!


Chris


glenn.martindel... Tue, 01/02/2007 - 22:51
User Badges:

Chris,

This reads and writes to a doc in the C:\program files\wfavvid directory. I have redundant servers. The doc does not get updated on the Secondary server in case the primary goes down. Do I have any options to get this file to be replicated automatically?

Thanks,

Glenn

Chris Deren Wed, 01/03/2007 - 06:37
User Badges:
  • Super Silver, 17500 points or more
  • Hall of Fame,
  • Cisco Designated VIP,

    2017 IP Telephony, Contact Center, Unified Communications

You can upload the doc to repository and work off of the file there.


Chris

glenn.martindel... Fri, 01/12/2007 - 06:47
User Badges:

Chris,

Sorry for dumb questions but how do I reference a doc from the repository in the script?

Thanks,

Glenn

mmelbourne Fri, 01/12/2007 - 08:23
User Badges:
  • Silver, 250 points or more

No such thing as a dumb question! :)


You can use DOC[filename] to reference a document stored in the Repository, e.g. as the source in the "Create XML Document" step. I think this is relative to the default language configured, so you don't need to specify "en_GB\..." etc.

glenn.martindel... Fri, 01/12/2007 - 09:48
User Badges:

When I try this, I get an error:


Unable to parse expression; unassignable type:Document; expecting String.


Any ideas what I'm doing wrong?

Thanks,

Glenn



Live2 Bicycle Sun, 03/29/2015 - 11:06
User Badges:

I ran in to this issue myself today while migrating scripts from a UCCX 7.x system to 9.x.  In 7.x I have my xml files saved on the hard drive in the root of the wfavvid folder. 

In 9.x the files need to be uploaded to the document repository.

On the 7.x system my variables were defined as Strings.

Once the files get uploaded to the document repository I had to change my variables to type Document.

 

 

Attachment: 

Actions

This Discussion