Hi guys,
I was doing an idea on a project and faced an issue which tried to handle with root variables, but GVP resets the value to original one every time it changes scope. Meaning, if you update value on subcallflow it won’t return to main callflow updated, main callflow will have the original value as was on the root.vxml file.
Wonder then, what is the point of having root variables then?
Tried then to work with sessions and another pain in the ass. Ended up doing it via DB…
Who has used root variables and a success case? Can’t see the use of this if it doesn’t allow the whole project to use the variable.
How are you using,declaring and passing the root variables to the another form?Could you attach “hello world” sample of your vxml app? It is working, but there are some pre-requisities according to the VXML definition.
On normal VXML should work I think, but I am talking about GVP specific implementation.
Updated values are not sent to main callflow or viceversa. If I’d use parameters for the subcallflows or return values would make no sense to have “root” variables, better use simple local variables.
Were you able to find the solution of this issue? I am also trying to do the same in my sample application but it seems that I will also run into same issue while running the application.
Can you please confirm if below understanding is correct?
My understanding:
By using the concept of AppRoot in sub-callflows, the variables declared in AppRoot will be available in sub-callflow. If I change the value of these variables in sub callflow then the changed value of the variable will be available in main flow (or calling flow file).
I have worked with IVR Composer applications, You have to mention approot.vxml in every subcallflow but that will only let You use the root variable in the subcallflows it wont maintain the status from the parent callflow, one work around is to use GOTO instead of subdialog block. Another work around is to declare object in java script add all Your variables to the object and pass that as input and output to all the subcallflows. hope that helps.