This factory method is used to initialize a new VAction object with a variable declaration or assignment action.
preference - A VPreference object required to create a new VFC.
type - Can be VARIABLE to declare a VoiceXML variable or ASSIGN to assign a value to an existing VoiceXML variable.
name - The name of the variable to declare or assign a value to.
value - The value, stored as a String. Can be null if type is VARIABLE to declare a variable with no initial value. An undefined declaration can also be initialized by calling add(int, String) where the integer value is VARIABLE.
treat - Can be WITH_QUOTES to surrounded the value with single quotes or WITHOUT_QUOTES to place the value directly in the VoiceXML.
when I use this method in my class I still found that it is undefined. Can't I get exact no input or nomatch instead of having undefined.
and my code looks like
NoMatchPrompt nomatch = new NoMatchPrompt(ved, nomatch_audio_group,"max_nomatch_count", getSubmitURL(), 1);
NoInputPrompt noinput = new NoInputPrompt(ved, noinput_audio_group,"max_noinput_count", getSubmitURL(), 1);