Final State

A final state is a termination point of a statechart. When control enters a final state, its action is executed, and the statechart terminates. Transitions may not exit a final state.

 To draw a final state
  1. Drag the  Final State element from the  Statechart palette onto the diagram of agent. There should be at least one incoming transition connected to the final state. 

Properties

Name – The name of the final state. The name is used to identify the state within the statechart.

Ignore – If selected, the final state is excluded from the model.

Show name – If selected, the name of the final state is displayed on a presentation diagram.

Action – Here you can write Java code to be executed when the statechart enters the state.


Related topics

 Statecharts

 Statechart declaration rules

 Statechart execution order