Genesys CTI User Forum > Genesys-related Development

Usage of root variables on GVP

<< < (2/3) > >>

ankur_khurana01:
[quote author=cavagnaro link=topic=8740.msg38817#msg38817 date=1425307802]
Have you used this function before on GVP?

1. Create Main callflow
2. Declare Application Root file (sample.vxml with var a1 with initial value XXXXX for example on src folder )
3. Now you have a var a1 available (accessible by application.a1)
4. Call a sub callflow S1
5. Declare same Application Root file
6. Now you also have a1 variable available
7. On S1 update variable a1 to value YYYY (application.a1 = 'YYYY')
8. Return to main callflow
9. Check value (print, prompt, etc) of variable a1
10. a1 outputs XXXXX instead of YYYYY
[/quote]

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.

cavagnaro:
Well I had to add the root file to ALL flows, no matter if variable was used or not.

ankur_khurana01:
[quote author=cavagnaro link=topic=8740.msg39099#msg39099 date=1428412246]
Well I had to add the root file to ALL flows, no matter if variable was used or not.
[/quote]

Got it!!! Thanks a lot.

ankur_khurana01:
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).

Regards,
Ankur Khurana

cavagnaro:
As long as you use the root file on ALL (ALL) callflows (vxml) called. If you miss one, sequence will be lost.

http://voice.cs.vt.edu/docs/prm_files/rootdoc.html

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version