mheadd
Member
Member # 3181
Member Rated:
|
posted October 19, 2006 09:22 AM
I�ve never done this myself, but I have seen it in code that I have inherited and now maintain. There is nothing technically wrong with doing this � it�s not contrary to anything that is in the VoiceXML specification.
It�s really a just a design choice � you can do it, but you�ll just need to watch out for potential "gotchas." Since subdialogs run in their own execution context, you need to be conscious of what parameters are being passed, what variables are in scope, how values are returned, etc. Also, since a VoiceXML platform must create a new context for each subdialog, if you get outrageous in how many are being used silmultaneously there may be performance degradation.
I don�t personally use �chained� subdialogs this way � I typically use them one at a time; for example, if I need to query a database and return results to a calling dialog. There is nothing inherently right about this approach, I just think it makes my code more streamlined, as well as easier to read and troubleshoot.
Hope this helps.
-------------------- Mark VoiceinGov.org http://www.voiceingov.org
Posts: 55 | Registered: Jun 2005
| IP: Logged
|