History and Deep History implementation requires a StateInfo variable per each state holding a History Connector(s) and a StateInfo variable per each state holding a Deep History Connector(s).
The state configuration is stored in that StateInfo variable, such that when taking a transition into the History/Deep History that configuration is assigned to the nextState variable, causing an entrance to the stored state configuration.
When used, the operators
history_clear
anddeep_clear
assign to the corresponding StateInfo variable the corresponding default state configuration.