From a main script, we have a self-service option. Caller presses 1 to go to a subflow pointing to another UCCX script that contains a call to a Java class contained within a JAR which we have uploaded.
We have added JAR to classpath.
We have restarted the UCCX server.
Within Unifed CCX Editor on definition of a variable I can see the class, confirming it is available on classpath.
Error occurs in calling the subflow:
Failed to load script ACCT INFO SUBFLOW.aef; nested exception is:
java.io.IOException: undefined method: getCustomerInformationArray for class com.aquafinance.cisco.CustomerInformationServiceClient
Call to Java class is defined as follows:
= Set hasAccountNumber =
{
com.aquafinance.cisco.CustomerInformationServiceClient client = new com.aquafinance.cisco.CustomerInformationServiceClient();
java.lang.String[] customerValues = client.getCustomerInformationArray( acctNumber );
if (customerValues == null) {
return false;
}
java.lang.String foundStatus = customerValues[0];
if (foundStatus.equals("FOUND")) {
return true;
}
return false;
}
Any ideas on why the java class cannot be called? It is a public instance method within the class. I've confirmed that the JAR itself works by invoking it from command line through main method.