CCXML 1.0-W3C Development GuideHome  |  Frameset Home


<move>  element

Unsupported Element
The <move> tag is used to add an event endpoint to an executing CCXML thread of control.  When an endpoint is added to a thread of control, events originating from that endpoint will be delivered to that thread's currently executing CCXML document.

Note that while this element is currently unsupported on the Voxeo platform, this is planned for inclusion on our network at a later date. When this feature is made available, announcements will be posted to the Prophecy User Forums, and via our Voxeo Developer Newsletter.


usage
<move event="(ECMAScript Expression)" sessionid="(ECMAScript Expression)" source="(ECMAScript Expression)">


attributes
eventData Type: (ECMAScript Expression)Default: none - attribute is optional
The event attribute specifies the event object to be sent to the target session to provide notifaction. The event endpoint may also be sent along with the event, if any.


sessionidData Type: (ECMAScript Expression)Default: none - attribute is required
The sessionid attribute indicates the thread of control to which the endpoint will be added.
sourceData Type: (ECMAScript Expression)Default: Optional
The source attribute specifies an ECMAScript expression which evaluates to a connectionID or dialogID. The event source that is associated with the identifier is then moved to the target specified in the sessionid attribute. source or event must be specified when using this element, (bot not both!), else an error.fetch event will be thrown. If the attribute holds an invalid value, then an error.semantic event will be thrown.



parents
none


children
none


code samples
<1.0 move>
<?xml version="1.0" encoding="UTF-8"?>
<ccxml version="1.0" xmlns="http://www.w3.org/2002/09/ccxml">

<meta name="author" content="Jeff Menkel"/>
<meta name="copyright" content="2007 Voxeo Corporation"/>
<meta name="maintainer" content="YOUR_EMAIL@HERE.COM"/>

 
  <var name="conn_id" expr="''"/>
  <var name="session2" expr="''"/>
  <var name="success" expr="false"/>
  <var name="statevar" expr="'init'"/>
 
  <eventprocessor statevariable="statevar">
   
    <transition state="init" event="connection.alerting">
      <createccxml next="'move_two.xml'" sessionid="session2"/>
      <log expr="'Answering the call...'"/>
      <accept connectionid="event$.connectionid" />
      <assign name="conn_id" expr="event$.connectionid"/>
      <assign name="statevar" expr="'alerting'"/>
    </transition>
   
    <transition state="alerting" event="ccxml.created">
      <move source="conn_id" sessionid="session2"/>
      <assign name="statevar" expr="'moving'"/>
      <log expr="'*** Moving the connection ***'"/>
    </transition>
   
    <transition state="moving" event="move.successful">
      <if cond="conn_id==event$.sourceid">
        <if cond="'move.successful'==event$.name">
          <assign name="success" expr="true"/>
        </if>
      </if>
    </transition>
   
    <transition event="ccxml.exit">
      <if cond="session.connections[conn_id]==undefined">
        <log expr="'Removal complete.  Good work soldier.'"/>
      </if>
      <if cond="success">
        <log expr="'The move completed successfully!'"/>
      </if>
      <exit/>
    </transition>
   
  </eventprocessor>
 
</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