| QName | Type | Fixed | Default | Use | Inheritable | Annotation |
|---|---|---|---|---|---|---|
| statevariable | VariableName.datatype | optional |
| Element | ccxml |
<xsd:element name="eventprocessor"> <xsd:complexType> <xsd:sequence> <xsd:element ref="transition" minOccurs="0" maxOccurs="unbounded"/> </xsd:sequence> <xsd:attribute name="statevariable" type="VariableName.datatype"/> </xsd:complexType> </xsd:element> |
|
< ccxml xmlns = "http://www.w3.org/2002/09/ccxml" version = "1.0" > |
|
< log expr = "'The number called is' + event$.connection.remote + '.'" /> |
|
< if cond = "event$.connection.remote == 'tel:+18315551234'" > |
|
< log expr = "'Go away! we do not want to answer the phone.'" /> |
|
< reject/> |
|
< else/> |
|
< log expr = "'We like you! We are going to answer the call.'" /> |
|
< accept/> |
|
</ if> |
|
</ transition> |
|
< log expr = "'Call was answered,Time to disconnect it.'" /> |
|
< disconnect/> |
|
</ transition> |
|
< log expr = "'Call has been disconnected. Ending CCXML Session.'" /> |
|
< exit/> |
|
</ transition> |
|
</ eventprocessor> |
|
</ ccxml> |