Hello,
I am using Genesys Composer 8.1.2 and according to documentation, you can have a root document with this version of Composer.
I was able to specify application root document (ApplicationRoot.vxml). The variables defined in the root are also available in other callflow. However I am not able use those variables as global variables. Below is what I did.
In ApplicationRoot.vxml:
Begin:
Main.callflow and TestSub.callflow both have reference to ApplicationRoot.vxml as root document.
-
In Main.callflow, play value of rootVar as number. It plays 123.
-
Call “TestSub.callflow” using subdialog.
-
In TestSub, set value of rootVar to ‘789’
-
In TestSub, play value of rootVar as number. It plays 789.
-
After completing TestSub, control returns to Main.callflow
-
In Main.callflow after subdialog ends, play value of rootVar.
It plays 123 and NOT 789. :o
That means even if the value of global/root variable is changed in a subcallflow, application shows the original value in Main flow.
Does the root variable value get reset when control returns back to calling flow ?
Am I missing something ? Please advise.