cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
638
Views
0
Helpful
4
Replies

How to Throw a custom event

Arvand Owji
Level 1
Level 1

Hi,

Im trying to throw a custom event inside my custom element and then catch this event using a hotevent. is this possible? does anybody have a sample code for that? I understand that this is relatively simple in flat VXML (<throw event="com.myevents.event"/>) but how can this be done using Audium API? Tanks.

4 Replies 4

janinegraves
Spotlight
Spotlight

Is this inside a voice element - and are you actually trying to create the equivalent of a <throw> element - to have the VXML Gateway throw an event that you catch in the studio app?

Or are you inside an Action or Decision?

If you are writing your own voice element, it looks like VAction class allows you to create a <throw> tag.

its inside a voice element. a Vform to be exact. and yes, im trying to mimic part of the throw element.Thanks.

Found this in the javadocs under VAction: