Genesys CTI User Forum > Genesys-related Development
Usage of root variables on GVP
cavagnaro:
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.
Ideas?
Thanks!
Kubig:
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.
cavagnaro:
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.
Kubig:
So, you mean some specific attribute from extended Genesys namespace? If yes, which one? For data passing is not necessary to use extended namespaces.
cavagnaro:
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
Navigation
[0] Message Index
[#] Next page
Go to full version