This document was generated from CDN thread
Created by: null on 30-04-2003 04:14:18 PM
Would it be possible to obtain sample java code for an action element?
While the user guide 'describes' how to do this, it is rather terse and lacking in details.
Thanks.
Subject: Sample Action And Decision Element
Replied by: null on 05-05-2003 06:34:48 PM
Hi,
I am posting to this forum a sample configurable action element and a sample configurable decision element, both in Java. Both are fully documented within the source code. They do not comprehensively use all the functionality available in the API, however they do enough to get an idea how these elements are built and what are the most common functions called from the API classes.
For a more comprehensive look at the API, refer to the Javadocs for full documentation on each API class and method.
These elements can be compiled like any other element ("javac -classpath=$AUDIUM_HOME/lib/audium.jar xyz.java"). They can be placed in the AUDIUM_HOME/common/classes directory or the java/application/classes directory of a specific application.
You will be able to see these elements in the Builder within in a new folder named "Examples" in the Element Pane. Simply drag them to your application and use them.
When the Audium Server runs these elements, data will be printed to the console.
Feel free to copy or modify the source code in these elements to build your own elements.
I hope this source code is of use. We plan on providing a new forum soon in Audium Central that contains sample source code, applications, etc. to help out those who like to learn by example.
Enjoy!