CCXML Voxeo 1.0 Development GuideHome  |  Frameset Home

This documentation is for CCXML 1.0-Voxeo, which has been superceded by CCXML 1.0-W3C. The CCXML-Voxeo platform is not being updated any longer. The CCXML 1.0-W3C version, however, has many new features and is actively being enhanced. If you're writing a new CCXML application, you should use CCXML 1.0-W3C. Click here for the CCXML 1.0-W3C documentation.
<createccxml>  element

The <createccxml> element is used to spawn another thread of control, which begins execution with the document identified by this element. This thread of control provides independent execution and an entirely separate variable space for the CCXML documents that it executes. Such independent threads are associated with one or more event endpoints; such endpoints are the only things capable of sending events to these independent threads of execution.Note that the new thread of execution has an entirely separate address space and lifetime.


usage
<createccxml fetchid="(ECMAScript Expression)" sessionid="(ECMAScript Expression)" start="(ECMAScript Expression)">


attributes
fetchidData Type: (ECMAScript Expression)Default: none - attribute is required
This attribute indicates the ID of any document referenced in a fetch operation, which is gathered with the fetchid. A sucessful fetch completion additionally provides a property whose value is the fetch ID of the document being fetched.
sessionidData Type: (ECMAScript Expression)Default: none - attribute is optional
The sessionid attribute is an expression resolving to a platform-defined unique identifier that denotes the newly-instantiated thread of control.
startData Type: (ECMAScript Expression)Default: none - attribute is optional
Not Enabled
The start attribute indicates an event object which is to be the starting event for the newly instantiated thread of control. This event will be the initial event sent to the document that has been started by this event, and the endpoint which originated this event will be inherited by the newly created thread of control.



parents
none


children
none


code samples
<createccxml-fetchid-sessionid> sample
<?xml version="1.0" encoding="UTF-8" ?>
<ccxml version="1.0">

<var name="state0" expr="'init'"/>

  <eventhandler statevariable="state0">

    <transition state="'init'" event="ccxml.loaded" name="evt">
      <assign name="state0" expr="'fetching'"/>
      <fetch next="'http://myserver.com/mycool.xml'" fetchid="'fetch1'"/>
    </transition>

<!-- ******* FETCH SUCCESSFUL / CREATE NEW CCXML SESSION ******* -->
    <transition  state="'fetching'" event="ccxml.fetch.done" name="evt">
      <createccxml fetchid="evt.fetchid"           
                      sessionid="myNewSession"/>

    </transition>

    <transition state="'fetching'" event="error.fetch" name="evt">
      <log expr="'*** FETCH ERROR [' + evt.error + '] ***'"/>
      <exit/>
    </transition>

<!-- ******************* GENERAL EXCEPTIONS ******************** -->
    <transition event="error.*" name="evt">
      <log expr="'*** ERROR HAS OCCURED [' + evt.error + '] ***'"/>
      <exit/>
    </transition>

  </eventhandler>   
</ccxml>





additional links
W3C Specification


  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