History Transition
Last updated
Last updated
A History Transition in a State Machine Diagram is a special type of transition that connects a History Pseudostate to a state within the same Superstate (Composite State). It defines the default state to transition to when the history of the Superstate is empty or when entering the Superstate for the first time through its History Pseudostate.
With History Transitions in Modeldraw's State Machine Diagram, you can:
Specify the default state when entering a Superstate through its History Pseudostate
Ensure that your state machine has a valid starting point even when there's no historical state
Complement the functionality of History Pseudostates
Improve the robustness of your state machine design
A History Transition in Modeldraw's State Machine Diagram tool is represented by an arrow connecting a History Pseudostate to a state. Key points to understand about History Transitions include:
It defines the state to transition to when there's no historical state recorded.
Typically, there should be only one History Transition from a History Pseudostate.
Both the History Pseudostate and the target state of the History Transition must be within the same Superstate.
History Transitions don't have events or guards associated with them.
The transition is taken automatically if there's no recorded history.
To create a History Transition in Modeldraw's State Machine Diagram:
Ensure you have a Superstate with a History Pseudostate and at least one substate.
Select the History Transition tool from the toolbox.
Click on the History Pseudostate (the circle with 'H' inside).
Move your mouse to the state you want to set as the default.
Click on the default state to complete the History Transition.