Cisco Cisco Unified Customer Voice Portal 11.0(1) Developer's Guide

Page of 103
A
CTION 
E
LEMENT
:
 
C
OUNTER
 
 
 
          
E
LEMENT 
S
PECIFICATIONS FOR 
C
ISCO 
U
NIFIED 
C
USTOMER 
V
OICE 
P
ORTAL 
R
ELEASE 
4.0(1)
 
 
 
5
 
Counter 
The Counter action element is used to keep track of a count stored as element data.  The initial value of the count is defined as a 
configuration setting.  In addition, the element may be configured to increment or decrement with a user defined step size. A typical 
use for the Counter element would be in a loop in the call flow that increments the count until a decision element decides that the loop 
must end. Revisiting a Counter element instance will automatically update the count. 
Settings 
Name (Label) 
Type 
Req’d 
Single 
setting 
value 
Substitution 
allowed 
Default 
Notes 
initial 
(Initial Count) 
int Yes 
true true 
This setting specifies at which integer value this 
counter should start. 
type 
(Type) 
string 
enum 
Yes 
true true increm
ent 
This setting specifies whether the counter should 
be incremented or decremented.  Possible values 
are: decrement | increment. 
step 
(Step Size) 
int  
Yes 
true true 
This setting specifies by how much this counter 
should be incremented or decremented. 
Element Data 
Name 
Type 
Notes 
count 
String 
The current count. 
Exit States 
Name 
Notes 
done 
The counter was updated. 
VoiceXML Studio Element Folder:  Calculation 
Class Name:
 
com.audium.server.action.counter.CounterAction