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

Jim Barnett <[email protected]>
Newsgroups gmane.comp.web.voice
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.