RE: SCXML: Transition spec reuse

Jose,
  We are considering changing the definition of <scxml> in a future draft.  In the meantime, you can get the behavior you want by inserting a new state as an immediate child of <scxml> and placing the transition there. (The children of the new state will be the children of <scxml> in the original machine.)

- Jim 

-----Original Message-----
From: www-voice-request@w3.org [mailto:www-voice-request@w3.org] On Behalf Of José Manuel Cantera Fonseca
Sent: Monday, May 07, 2007 7:51 AM
To: www-voice@w3.org
Subject: SCXML: Transition spec reuse


Dear all,

I think the following use case is not really covered by the current 
SCXML spec:

Suppose that I need to specify a transition that will always occur 
independently of the current state. For example, in a Mobile Web 
Application when the user press the 'Home' link I always want to
navigate to the home page.

If I need to specify this behaviour in every application state it will 
be unmaintanable.

I suggest to allow the specification of transitions as children of the 
<scxml> root element and that transitions will apply to any of the 
states defined in the SCXML, (if there is no an specific transition in 
any state that overwrites it. )

Thanks and best regards

Received on Monday, 7 May 2007 12:55:24 UTC