A Java application can only be invoked on a connection that is in the CONNECTED state.
<transition event="connection.connected" name="evt"> <dialogstart src="'myJavaApp'" type="'application/x-ibmvrbe'"/> </transition>To pass information to the Java application, the CCXML application must use the namelist attribute of the <dialogstart> element:
<transition event="connection.connected" name="evt"> <var name="Param1" expr="Value1"> <var name="Param2" expr="Value2"> <dialogstart src="'myJavaApp'" type="'application/x-ibmvrbe'" namelist="Param1 Param2"/> </transition>The Java application can then access this data from the application data provided to it:
DirectTalk directTalk; HashMap inputParams; inputParams=(HashMap)directTalk.getApplicationData(); System.out.printin("Input Params="+ inputParams);
The Java application can call other Java applications, invoke a state table, or be used to communicate with other platforms such as a Cisco ICM server.