History Pseudostate

A History Pseudostate in a State Machine Diagram is a special element that allows a Superstate (Composite State) to remember its most recently active immediate substate. When the Superstate is re-entered through the History Pseudostate, it resumes in the last active substate rather than starting from its initial state.

With History Pseudostates in Modeldraw's State Machine Diagram, you can:

  • Model systems that need to remember their last active state within a Superstate

  • Implement "resume" functionality in your state machines

  • Simplify the representation of state re-entry logic

  • Enhance the usability of systems by maintaining context across interruptions

  • Create more flexible and responsive state machines

A Superstate with a History Pseudostate representing a vending machine

Understanding History Pseudostate

A History Pseudostate in Modeldraw's State Machine Diagram tool is represented by a circle containing an 'H'. Key points to understand about History Pseudostates in Modeldraw include:

  • It remembers only the last active immediate substate within a Superstate.

  • It should have at least one outgoing transition to a default state, used when the history is blank.

  • It's placed inside the Superstate whose history it's tracking.

Last updated