W3C home > Mailing lists > Public > www-voice@w3.org > January to March 2002

Re: Comments on CCXML Version 1.0

From: RJ Auburn <rj@voxeo.com>
Date: Sun, 24 Mar 2002 14:30:43 -0800
To: john_oconnell@grenoble.hp.com, www-voice@w3.org
Message-id: <B8C39393.E770%rj@voxeo.com>
John,

Both of your <transition> comments should be allowed in the current spec.
For the state condition that you are looking for just leave the "state"
attribute off of the element and you should be good to go.

For the cond attrib that you suggested it is in the current spec.  Take a
look at: http://www.w3.org/TR/ccxml/#Transition for details.

As for putting the event back into the queue that sounds like a good idea. I
will see what I can do to bring it up for review for the next draft.

Thanks for your input,

    RJ Auburn
    CCXML Editor

-- 
RJ Auburn
Chief Network Architect
Voxeo Corporation
100 Enterprise Way Module G3
Scotts Valley, CA 95066
831-439-5130 - Phone
831-439-0883 - Fax
Bring your web application to the phone for free.
Find out how at http://community.voxeo.com


On 03/20/2002 08:19, "O'CONNELL John" <john_oconnell@hp.com> wrote:

> 
> With regard to default event handlers (as mentioned in the "Known
> Issues" list (Appendix C)), can I write
> 
> <transition state="" event="CALL_INVALID">
> 
> in CCXML, to indicate any state ?
> 
> This would seem useful as it allows the programmer to define the
> treatment of an event independently of the state. I.e. the
> transition should be executed if the event happens in any state.
> SDL (a language for defining state machines) has the notion of
> both "ANY state" and  "conditional state" to handle this.
> So, the transition
> 
> <transition state="" event="CALL_INVALID">
> 
> would be executed if the event CALL_INVALID occured (in whatever
> state). This can greatly reduce the amount of code to be written,
> as there is no need to define explicity this transition for every
> possible state.
> 
> The conditional state is even more powerful as it allows the programmer
> to associate the the execution of the transition with a condition.
> E.g. 
> 
> <transition state ="" event="CALL_INVALID" cond="call=='in-progress'">
> 
> would be executed if the event CALL_INVALID occured and the value
> of the "call" variable was "in-progress".
> 
> One other feature of SDL that may be worth considering is the
> ability to SAVE events (putting the event back on the queue).
> This is often used within a sub-program which is not able to
> handle events that are only known at the main program level.
> It also allows an event to be processed at multiple levels
> (e.g. both within a sub-program and in the main program).
> 
> Cheers,
> John.
Received on Sunday, 24 March 2002 17:30:47 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 30 October 2006 12:48:55 GMT