CCXML 1.0-W3C Development GuideHome  |  Frameset Home


<eventprocessor>  element

The <eventprocessor> element replaces the <eventhandler> that was used in previous incarnations of the CCXML specification. It is identical in all respects to the deprecated <eventhandler> element, in that it is used as a container for the <transition> elements that drive the CCXML execution. Of course, only a single instance of this element may exist within any CCXML document.


usage
<eventprocessor statevariable="(variable name)">


attributes
statevariableData Type: (variable name)Default: none - attribute is optional
This attribute denotes the variable name which is the <eventhandler> state variable. be aware that this variable must be defined using the <var> or the <script> element in the ccxml scope.



parents
none


children
none


code samples
<1.0 eventprocessor -statevariable> sample
<ccxml version="1.0">

  <var name="initState" expr="'state_1'"/>
  <var name="MyCallID"/>

  <eventprocessor statevariable="initState">

    <transition event="ccxml.loaded" state="state_1">
    <log expr="'*** CCXML.LOADED, NOW EXITING ***'"/>
      <exit/>
    </transition>

    <transition event="error.*">
      <log expr="'***** ERROR OCCURRED:' + event$.error"/>
      <exit/>
    </transition>

  </eventprocessor>
</ccxml>



additional links
none


  ANNOTATIONS: EXISTING POSTS
0 posts - click the button below to add a note to this page

login



© 2008 Voxeo Corporation  |  Voxeo IVR  |  VoiceXML & CCXML IVR Developer Site