W3C home > Mailing lists > Public > www-voice@w3.org > April to June 2007

Re: allowing <onentry> and <onexit> inside <final>

From: Torbjörn Lager <torbjorn.lager@gmail.com>
Date: Tue, 10 Apr 2007 07:11:39 +0200
Message-ID: <6ad4bdae0704092211s4f7150e6i81d443b157295671@mail.gmail.com>
To: "Serge Voloshenyuk" <serge_voloshenyuk@yahoo.com>
Cc: www-voice@w3.org

Well, perhaps unreachable in most cases, but what about a case like this?

<scxml initialstate="s1">
   <state id="s1">
      <invoke id="i" targettype="scxml">
         <content>
            <scxml initialstate="f1">
               <final id="f1">
                  <onexit>
                     <log expr="'Hello'"/>
                  </onexit>
               </final>
            </scxml>
         </content>
      </invoke>
      <transition event="i.Done" target="f2"/>
   </state>
   <final id="f2"/>
</scxml>

The analogy with something on the lines of

<?xml version="1.0"?>
<scxml initialstate="p">
   <parallel id="p">
      <final id="f1">
         <onexit>
            <log expr="'Hello'"/>
         </onexit>
      </final>
   </parallel >
   <transition event="p.Done" target="f2"/>
   <final id="f2"/>
</scxml>

where the <onexit> _should_ be executed, may be worth considering.

- Torbjörn

On 4/10/07, Serge Voloshenyuk <serge_voloshenyuk@yahoo.com> wrote:
> >But what about the <onexit> children of a <final> which is a child of
> <scxml>?
>
> I think it's unreachable code.
>
>
>  ________________________________
>  Don't get soaked. Take a quick peek at the forecast
>  with theYahoo! Search weather shortcut.
>
>
Received on Tuesday, 10 April 2007 05:11:43 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 10 April 2007 05:11:44 GMT