Java API Use
A standard decision element is built in Java by extending the abstract base class DecisionElementBase
found in the com.audium.server.voiceElement
package (this package’s name is such due to backwards compatibility considerations). It contains a single abstract method
named doDecision
that acts as the method for the decision element, and must be implemented by the developer. The method receives two arguments:
the name of the decision element (as a String) and an instance of DecisionElementData
. This class belongs to the Session API and is used to access session information (See Session API for more on this API). The method expects a String object in return containing the exit state in the exact format specified in Builder for Call Studio when the standard decision
element was first defined.
The DecisionElementBase
class defines many
methods in addition to doDecision
. These are used
for configurable decision elements, which also extend the class. The only
method required for generic decision elements is
doDecision
, as it is the only abstract method in
DecisionElementBase
.