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

Page of 83
C
HAPTER 
1:
 
I
NTRODUCTION
 
 
C
ISCO 
CVP
 
V
OICE
XML 
 
 
User Guide 
 
Decision Elements 
Even the simplest voice applications require some level of decision making throughout the call 
flow. These “crossroads” are encapsulated in decision elements.  
Decision Element 
Encapsulates business logic that make decisions with at least two exit 
states. 
A decision element is like a traffic cop, redirecting the flow of callers according to built in 
business rules. Examples of business rules include decisions such as whether to play an ad to a 
caller, which of five different payment plans should be offered to the caller, or whether to 
transfer a caller to an agent or hang up. 
The results of a decision element are represented as exit states. Although many decisions are 
boolean in nature, (e.g. “has the caller registered?”, “is the caller new to the application?”), 
decision elements can have as many exit states as desired, as long as at least two are specified. 
The configuration for a configurable decision contains two components: settings and variables. 
Additionally, the Java class that defines the configurable decision sets the exit states it can return 
and the designer must map each exit state to another call flow component to handle all its 
consequences. 
Action Elements 
Many voice applications require actions to occur “behind the scenes” at some point in the call. In 
these cases, the action does not produce VoiceXML (and thus has no audible effect on the call) 
or perform some action that branches the call flow (like a decision).  Instead the action makes a 
calculation, interfaces with a backend system such as a database or legacy system, stores data to 
a file or notifies an outside system of a specific event. All of these processes are built into action 
elements
Action Element 
Encapsulates business logic that performs tasks not affecting the call 
flow (i.e., has only one exit state). 
An action element can be thought of as a way to insert custom code directly in the call flow of a 
voice application. A few examples of action elements could be one which retrieves and stores the 
current stock market price. Another example might be a mortgage rate calculator that stores the 
rate after using information entered by the caller. A standard Cisco CVP VoiceXML installation 
bundles some pre-built action elements to simplify commonly needed tasks such as sending e-
mails and accessing databases. 
Since action elements do not affect the call flow, they will always have a single exit state. 
The configuration for a configurable action contains two components: settings and variables. 
 
 
©2000 - 2005 Audium Corporation.  All Rights Reserved.  1/14/05
 
20