Chapter 10 Working With The State Modeler : Entry and Exit Actions

Entry and Exit Actions
Each state has both an entry action and an exit action, and may include an internal transition, which causes BusinessEvents to re-evaluate the current values one or more times before transitioning to the next state. As you configure each state, you can use the rule editor to define the rules that are fired as the instance enters and exits each state.
As an instance enters a state, it triggers a rule defining an entry action. While it is within a state, it is subjected to one or more rules that determine if, when, and how it will exit the state. As it exits a state, it triggers a rule defining an exit action. As it transitions into the next state, another rule determines its fate. Each transition includes rules.