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

Re: What is the state configuration during onentry/exit is executed?

From: Jim Barnett <1jhbarnett@gmail.com>
Date: Sun, 23 Feb 2014 15:19:47 -0500
Message-ID: <530A57E3.7090709@gmail.com>
To: www-voice@w3.org
Andreas,
   Yes to both questions.  For example, here is the relevant part of the 
exitStates procedure.  It executes the onexit handlers before it removes 
s from the configuration :

for s in statesToExit:
        for content in s.onexit:
            executeContent(content)
        for inv in s.invoke:
            cancelInvoke(inv)
        configuration.delete(s)

In enterStates, the state s is add to the configuration before the onentry routines are run

  for s in statesToEnter.toList().sort(entryOrder):
         configuration.add(s)
         statesToInvoke.add(s)
         if binding == "late" and s.isFirstEntry:
             initializeDataModel(datamodel.s,doc.s)
             s.isFirstEntry = false
         for content in s.onentry:
             executeContent(content)

In general, you are "in" a state if it's in the global "configuration" variable.

- Jim


On 2/23/2014 2:40 PM, Andreas Gansen wrote:
> Hello,
>
> When we have S1 -> S2, we execute: onexit S1, T, onentry S2. My
> question is, are we already in S2 during execution of the entry
> handlers and are we still in S1 during onexit is running?
>
>
> Regards
>

-- 
Jim Barnett
Genesys
Received on Sunday, 23 February 2014 20:20:39 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:07:44 UTC