AnyLogic
Expand
Font size

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.

Demo model: Statechart for Pharmaceutical NPD Pipeline Open the model page in AnyLogic Cloud. There you can run the model or download it (by clicking Model source files).

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

General

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 type Java code to be executed when the statechart enters the state.

How can we improve this article?