1 / 13

SCXML for Multimodal Applications

SCXML for Multimodal Applications. Jim Barnett Aspect Software August 9, 2006. Introduction: SCXML. A State-Machine Language Based on Harel State Charts Developed by W3C Voice Browser Group Designed for Sophisticated Control Flow Fits DPF (Data/Presentation/Flow) Paradigm

Download Presentation

SCXML for Multimodal Applications

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. SCXML for Multimodal Applications Jim Barnett Aspect Software August 9, 2006

  2. Introduction: SCXML • A State-Machine Language • Based on Harel State Charts • Developed by W3C Voice Browser Group • Designed for Sophisticated Control Flow • Fits DPF (Data/Presentation/Flow) Paradigm • Multimodal a special case • Multiple presentation layers • Has Powerful Control Abstractions

  3. Feature: Nested States • Represent Task Decomposition • If in Parent State, in 1 of Child States • Will transition among child states • Child states may themselves have children • Parent State Complete when reaches final child state

  4. SCXML Equivalent • <state id=“GetCreditCard”> <initial id=“GetName”/> <state id=“GetName”> <transition target=“GetNumber”/> </state> <state id=“GetNumber”> <transition target=“GetExpirationDate”/> </state> <state id=“GetExpirationDate”> <transition target=“Done”/> </state> <state id=“Done” final=“true”/> </state>

  5. Feature: Parallel States • Represent Fork/Join Logic • Multiple Child States Active At Once • Represent Loosely Coupled Logic • Terminates When All Child States Reach Final State

  6. SCXML Equivalent <state id=“GrowUp”> <parallel> <state id=“professional”> <initial id=“HighSchool”/> <state id=“HighSchool”> <transition target=“College”/> </state> <state id=“College”> <transition target=“Job”/> </state> <state id=“Job”> <transition target=“Final1”/> </state> <state id=“Final1” final=“true”/> </state> <state id=“personal”> <initial id=“date”/> <state id=“date”> <transition target=“steadyRelationship”/> </state> ….. </state> </parallel> <state>

  7. SCXML Equivalent <state id=“GetCreditCard”> <initial id=“GetName”/> <state id=“GetName”> <onentry> <send target=“server” event=“run” namelist=“name.vxml”/> <send target=“browser” event”setFocus” namelist=“name”/> </onentry> <transition event=“HTML.change” target=“GetNumber”> <send target=“server” event=“halt”/> <assign location=“DM.cardNumber” expr=“_eventData.number”/> </transition> <transition event=“VXML.done” target=“GetNumber”> <assign location=“DM.cardNumber” expr=“_eventData.newValue”/> </transition> </state> ….. </state>

  8. Conclusion • SCXML is a Powerful Language • Compact representation of complex logic • Browsers Must be More Flexible • For multimodal applications • Push HTML pages, halt VXML scripts…

More Related