On 11/15/06, THOMAS, JAYANT (SBCSI) <[EMAIL PROTECTED]> wrote:
Hello All, Is it possible I can navigate from one scxml dialog to another scxml dialog in shale <dialog scxmlconfig="wizard.xml" name="wizard" dataclassname="org.apache.shale.examples.test.dialog2.scxml.WizardData"/ > <dialog scxmlconfig="popup.xml" name="popup" dataclassname="org.apache.shale.examples.test.dialog2.scxml.PopupData"/> Say from Wizard.xml can I go to popup.xml in the sample. The example show 2 different sets of dialogs without any interrelation ship. Thanks Jayant
Are you wanting to *have* a relationship between the dialogs, so that (for example) the popup dialog has access to both its own state and the state of the wizard? If so, there's a way to do this that works for both SCXML and basic dialog implementations. The documentation[1] includes a bit of information on how to start a dialog programmatically using the DialogContextManager.create() call. But there is a second variation of create() that accepts a parent DialogContext with which the child dialog should be associated ... it will be set as the "parent" property of the new DialogContext for the popup. There's example code that accomplishes this in both the shale-dialog-test-basic and shale-dialog-test-scxml test applications (you'll need to check out the sources directly from the SVN repository to get to this code, however). Craig [1] http://shale.apache.org/shale-dialog/index.html