Thanks to both.
I tried to change the approach. In a VXML code I have:
Please check the attachments. In getWebAppEntryPoint method entryPoint is equal null. It looks like my parameters are not being assigned once the value obtained from checkEntryPoint is
http://<hostname>; /cf/startcall? and we do not see any parameter. Do you have any hint to see the parameters in the final URL?
Thank you,
package flow;
import com.avaya.sce.runtimecommon.ITraceInfo;
/**
* Class that represents a call to a reusable application.
* Last generated by Orchestration Designer at: 2018-AUG-30 09:42:03 AM
*/
public class finalSurvey1 extends com.avaya.sce.runtime.Invoke {
//{{START:CLASS:FIELDS
//}}END:CLASS:FIELDS
/**
* Default constructor
* Last generated by Orchestration Designer at: 2018-AUG-30 09:42:03 AM
*/
public finalSurvey1() {
//{{START:CLASS:CONSTRUCTOR
super();
setNeedsDefaultDisconnectHandler(false);
//}}END:CLASS:CONSTRUCTOR
}
/**
* Returns a collection of Parameters that has information about the
* parameters to pass to the reusable module. If it has
* no inputs, then an empty list is returned
* Last generated by Orchestration Designer at: 2018-AUG-30 09:42:03 AM
*/
public java.util.Collection getInputParams(com.avaya.sce.runtimecommon.SCESession mySession) {
java.util.List list = null;
com.avaya.sce.runtime.Parameter param = null;
list = new java.util.ArrayList(2);
param = new com.avaya.sce.runtime.Parameter("BROWSERNAME", "AVP", com.avaya.sce.runtime.Parameter.CONSTANT);
list.add(param);
param = new com.avaya.sce.runtime.Parameter("LANG_CODE_PARAM", "en", com.avaya.sce.runtime.Parameter.CONSTANT);
list.add(param);
return(list);
}
/**
* Returns a collection of strings that are the names of the output parameters
* of the reusable application being invoked. If it has no outputs, then an
* empty list is returned
* Last generated by Orchestration Designer at: 2018-AUG-30 09:42:03 AM
*/
public java.util.Collection getOutputParams(com.avaya.sce.runtimecommon.SCESession mySession) {
java.util.List list = null;
list = new java.util.ArrayList(1);
list.add("outPar");
return(list);
}
/**
* Returns the name of the next form in the application
* Last generated by Orchestration Designer at: 2018-AUG-30 09:42:03 AM
*/
public String getNext() {
return("End");
}
/**
* Returns the entry point URL to the application being invoked.
* Last generated by Orchestration Designer at: 2018-AUG-30 09:42:03 AM
*/
public String getWebAppEntryPoint(com.avaya.sce.runtimecommon.SCESession mySession) {
String entryPoint = mySession.getParameter("module.finalSurvey.entrypoint");
mySession.getTraceOutput().writeln(ITraceInfo.TRACE_LEVEL_DEBUG, "survey URL "+entryPoint);
String output ="";
if (entryPoint != null){
mySession.getTraceOutput().writeln(ITraceInfo.TRACE_LEVEL_DEBUG, "entryPoint NOT null");
output = checkEntryPoint(entryPoint, mySession);
mySession.getTraceOutput().writeln(ITraceInfo.TRACE_LEVEL_DEBUG, "routing URL "+output);
String outPar ="";
outPar = mySession.getVariableField(IProjectVariables.FINAL_SURVEY_1, IProjectVariables.FINAL_SURVEY_1_FIELD_OUT_PAR).getStringValue();
mySession.getTraceOutput().writeln(ITraceInfo.TRACE_LEVEL_DEBUG,outPar);
return output;
}else{
mySession.getTraceOutput().writeln(ITraceInfo.TRACE_LEVEL_DEBUG, "entryPoint is null");
output = checkEntryPoint("http://<hostname> /cf/startcall?", mySession);
mySession.getTraceOutput().writeln(ITraceInfo.TRACE_LEVEL_DEBUG, "routing URL "+output);
String outPar="";
outPar = mySession.getVariableField(IProjectVariables.FINAL_SURVEY_1, IProjectVariables.FINAL_SURVEY_1_FIELD_OUT_PAR).getStringValue();
mySession.getTraceOutput().writeln(ITraceInfo.TRACE_LEVEL_DEBUG,outPar);
return output;
}
}
/**
* This method is generated automatically and should not be manually edited.
* To manually edit the event handlers for the node, override:
* void updateEvents(Collection events, SCESession mySession)
* Last generated by Orchestration Designer at: 2018-AUG-30 09:42:03 AM
* @return a collection of Events
*/
public java.util.Collection getEvents(com.avaya.sce.runtimecommon.SCESession mySession) {
java.util.List list;
com.avaya.sce.runtime.Event event;
list = new java.util.ArrayList();
java.util.List eventPromptNames = null;
String ___tempPromptName = null;
return(list);
}
/**
* Returns the submit method.
* Last generated by Orchestration Designer at: 2018-AUG-30 09:42:03 AM
*/
public String getSubmitMethod() {
return("get");
}
/**
* Returns the flag to indicate whether to use namelist.
* Last generated by Orchestration Designer at: 2018-AUG-30 09:42:03 AM
*/
public boolean passParamsAsNameList() {
return(true);
}
/**
* Returns the flag to indicate whether output data contains multipart.
* Last generated by Orchestration Designer at: 2018-AUG-30 09:42:03 AM
*/
public boolean outputMultipart() {
return(true);
}
}