History connectors

History connectors store the most recent active configuration of a state and its substates. Once an object is created, it is associated with a configuration for an active state, starting in the initial configuration, and evolving as the statechart responds to messages.

The following figure shows a history connector.

History connector

When a transition is attached to a history connector and that transition is triggered, the state containing the history connector recalls its last active configuration. A state can have a single history connector.

Transitions from a history connector are constrained to a destination on the same level as the history connector.

Note: Do not put more than one history connector in a state. The code generator does not support multiple history connectors in a state.

A state might have a history property used for recalling the recent active configuration of the state and its substates. Transitioning into a history connector associated with the state recalls the last active configuration.

A transition originating from the history connector designates the history default state. The default history state is taken if no history existed before the history enter.


Feedback