Unified Modeling Language Reference Manual, The, Second Edition
by James Rumbaugh, Ivar Jacobson, Grady Booch
exit activity
An activity performed when a state is exited.
See also entry activity, run-to-completion, state machine, transition.
Semantics
A state may have an optional exit activity attached to it. Whenever the state is exited in any way, the exit activity is executed after any activities attached to inner states or transitions and before any activities attached to outer states. The exit activity may not be evaded by any means. It is guaranteed to be executed before control leaves the owning state.
Entry and exit activities are not semantically essential; the exit activity could be attached to all outgoing transitions. However, they facilitate the encapsulation of a state so that the external use of it can be separated from its internal construction. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access