This topic explains how to create a history element.
History (State Machine diagrams)
UML 2.0 State Machine diagram