Shallow & Deep History

The running MiceOnABeam-generated script always keeps track of the last state it was in when it receives and processes a new event.

Using the Group Transition feature you can specify a common event that will be handled when the script is in any one of a set of states. After processing the event you can have the script automatically return to the original state in which it received the event by using the History feature.

The distinction between Shallow vs. Deep History handles the case when the last state returned to is a Composite State.

With Shallow History the state returned to will re-initialize. With Deep History, the set of last active states within the composite state's decomposition will all be re-entered right to the most deeply-nested state.

In effect, the use of a Group Transition along with History provides an "interrupt"-like mechanism for your scripts.