Cisco Cisco Unified Customer Voice Portal 11.0(1) User Guide

Page of 122
C
HAPTER 
3:
 
C
ISCO 
U
NIFIED 
CVP
 
W
ORKSPACE
 
 
V
OICE
XML
 
S
TUDIO 
U
SER 
G
UIDE 
 
 
 
FOR 
C
ISCO 
U
NIFIED 
C
USTOMER 
V
OICE 
P
ORTAL
 
 
 
 
 
 
 
109
 Substitution 
The presence of the 
 button near a setting means that substitution can be employed. 
Substitution allows something to be given a value that is not known until runtime, without 
resorting to programming.  
Data is “assembled” from static content and tags representing dynamic content, such as ANI, the 
starting date, or Element and Session data created by elements. At runtime, the text that 
represents the substitution value will be replaced (“substituted”) for its actual value. Substitution 
is an excellent way for a designer to create dynamic content without the help of a developer. 
Substitution is available wherever the substitution button appears, including:  
ƒ  Dynamically configured Java class names or URIs  
ƒ  Log entry values (not names)  
ƒ  Within the set UID section  
ƒ  Element settings  
ƒ  VoiceXML property values (not names)  
ƒ  Audio file URIs, TTS backup content, Say It Smart input data, audio path, fileset, and 
audio types  
ƒ  Custom Element and Session data values (not names)  
ƒ  Application Transfer destinations  
ƒ  VoiceXML Insert source URI  
ƒ  Standard Action and Decision element Java class names or URIs 
When a configuration option allows substitution, the substitution button becomes clickable. 
Clicking on this button brings up a dialog box providing all substitution options and a text box 
where the value can be assembled out of substitution tags.  
When substitution is chosen and the appropriate data entered, clicking Add Tag will add the tag 
to the value. You can continue to add additional substitution tags or static content by typing into 
the text box. All static content will be concatenated with the substitution tags at runtime to yield 
the final value of the configuration option. Substitutions tags are simply open and close braces 
encapsulating a unique keyword identifying the data it represents. 
If data represented by the tag ends up as null or empty, it will be rendered as an empty string and 
a warning will be added to the VoiceXML Server Error Log.  
For example, if a setting contains 
source = {CallData.SOURCE}
 and there is no application 
that transferred to the current application, the setting would be evaluated as 
source =