authoring txtml : events
<enter>, <exit>, <input>, and <time> are event handler types. A state may contain at most one of each type of handler, and handlers are the only type of element that can exist as children of the state element.
...
<state name="example">
<enter>
executed when a user first enters this state
</enter>
<input>
executed when a user sends a message to the system
</input>
<time>
executed every minute
</time>
<exit>
executed when a user is assigned to a different state, before the execution of that state's <enter> handler
<exit>
</state>
...
<state name="example">
<enter>
executed when a user first enters this state
</enter>
<input>
executed when a user sends a message to the system
</input>
<time>
executed every minute
</time>
<exit>
executed when a user is assigned to a different state, before the execution of that state's <enter> handler
<exit>
</state>
...