Audium Knowledge Base

Knowledgebase Home | Contact Knowledgebase Home | Contact
Search the Knowledgebase Jump to ID Browse by Category
How can an existing Java class be incorporated into an Audium application?
Categories: Audium OpenSDK
Article ID: 39
Last updated: November 02, 2006
User Opinions
No users have voted.

How would you rate this answer?
Helpful
Not helpful
SUMMARY

When existing Java code is available, how can it be used in an Audium application?  What modifications need to be made?

SYMPTOMS

Developer has some existing Java code, and would like to harness its functionality in Audium applications.

RESOLUTION

One of Audium's strengths is its ability to leverage existing code and back-end systems for incorporation into voice applications.

In order for custom Java code to be executed by Audium, it needs to conform to Audium's Java API. Because of this, it is preferred that you break complex multi-use classes into smaller pieces, so that they can be encapsulated and then inserted in the call flow at the point where they are needed. 

A standard Action element's class will have its doAction() method executed when it is visited in the call flow.  This method is similar to the main() function in many programming languages.  This method will initiate the functionality that the class will perform.  Therefore, the class that the standard Action element references should have its functionality implemented in the doAction() method. Instead of having a class with six methods that perform different tasks, it makes more sense to break complex classes into smaller classes, each with one doAction() method that performs a specific task.

You can download a template for standard Action elements (and more) here in the Sample Java Code & Beta Elements forum.

For more information about creating standard Action elements and many more custom code options, please refer to the Programmer Guide.
Visitor Comments
No visitor comments posted. Post a comment
Related Questions
Attachments
No attachments were found.

Copyright (c) 2005 Audium Corporation. All rights reserved.
Audium Home | Audium Support Center Home | Audium Customer Care Home