Heads Up :
The post you are writing will appear in a public forum. Please ensure all content is appropriate for public consumption. Review the employee guidelines for the community here.
Created by: null on 04-10-2006 02:06:59 AM I want to create one custom element to connect to databse - How do I do it? [/color:cea531d53e]
Subject: RE: Custom element creation Replied by: Michael Bochynski on 04-10-2006 07:01:12 PM Hi Kumar,
Audium Call Services allows you to add your own custom elements, interacting either with the caller or with an external system(s) or both. The first ones â¿¿ Voice Elements â¿¿ produce VoiceXML and are designed to gather input from the callers. The latter ones, when you interact with an external entity, such as database, are either Action elements or Decision elements.
The difference between an Action element and a Decision element is the number of exits. The Action element will always have one exit only. The example could be storing data in a database or sending an email. Decision element, on the other hand, besides exchanging information with an external system can have multiple exit states. A good example would be an element validating the account number. First a connection to a database would be established and then if the given account exists, a PASS exit state would be returned. Otherwise a FAIL exit state would be returned.
Whether to choose an Action element or a Decision element is it up to the developer and particular requirements. In your case, you could use either of the two.
Note however that Audium software comes with built-in Database element that allows to do basic SQL such as INSERT, SELECT or UPDATE.
Note that our Knowledge Base contains several articles which might be helpful when creating custom elements. Audium Knowledge base is available at: http://kb.audiumcentral.com
Hope this helps, Michael
Subject: custom elemnt Replied by: null on 05-10-2006 12:55:08 AM Hi ,
Can anyone have a code to create custom element which retrieves info from database. thanks
Subject: RE: custom elemnt Replied by: Michael Bochynski on 05-10-2006 04:04:59 PM Hi Kumar,
Note that a java code that you write is the same as you would write it for any other Java application, regardless whether it for Call Services or not. The best resource are your peers, since there might be specific implementations you have internally. You can also search the Internet for sample code on accessing the database using Java. You might want to start at:
It contains Java templates for custom elements to use in Audium software. All you have to do is add your own code to perform custom tasks, such as accessing a database.
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: