" /> Global/root variables in Composer 8.1.2 - Genesys CTI User Forum

Author Topic: Global/root variables in Composer 8.1.2  (Read 3037 times)

Offline prashantaphale

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
Global/root variables in Composer 8.1.2
« on: February 19, 2014, 10:37:18 PM »
Advertisement
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:

<var name="rootVar" expr="123"/>


Begin:

Main.callflow and TestSub.callflow both have reference to ApplicationRoot.vxml as root document.

1. In Main.callflow, play value of rootVar as number. It plays 123.

2. Call  "TestSub.callflow" using subdialog.

3. In TestSub, set value of rootVar to '789'

4. In TestSub, play value of rootVar as number. It plays 789.

5. After completing TestSub, control returns to Main.callflow

6. In Main.callflow after subdialog ends, play value of rootVar.

[b]It plays 123 and NOT 789.[/b] :o

[b]That means even if the value of global/root variable is changed in a subcallflow, application shows the original value in Main flow.[/b]

Does the root variable value get reset when control returns back to calling flow ?

Am I missing something ? Please advise.

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: Global/root variables in Composer 8.1.2
« Reply #1 on: February 20, 2014, 12:11:58 AM »
You have to update the main variable with a return from child form.