cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
61
Views
0
Helpful
0
Comments
cdnadmin
Community Member
This document was generated from CDN thread

Created by: null on 09-09-2003 07:08:13 PM
Hi,

Would like to use the Flag element to record when a caller reached a certain point in the application. The User Guide on this session, it states that the flag trigger is stored within the call data so an application can make decisions based on flags triggered by caller later on in the call flow... Could you let us know under what "variable" in the call data it store this data and what is the value, i.e. (true, false) ?

Thanks,

PhiDi TranThi

Subject: RE: the Flag element data
Replied by: null on 09-09-2003 07:50:18 PM
Hi Phi-Di,

There are two ways to find out if a flag has been triggered within a call. Using the java API, there is a method called "hasFlag(String name)" that you call with the name of the flag element and it returns a boolean whether it was triggered or not.

In an XML decision, you can use the <caller_activity> tag and the <times_elemvis> tag with the name of the flag element. If the number is 0, then you know the flag was not triggered. If it is 1 or greater, then it was triggered.

Also, when a flag is tripped, that fact is stored in the logs, so you can make this determination after the fact. Also, flag triggers are stored in the user management database if you have that turned on. You can then determine if a previous call triggered a flag.

Hope this helps!
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Quick Links