Patent ID: 7966162

Claim:
In a computing device having a state diagramming environment, a method comprising: receiving from a user an indication that at least one variable is a resettable variable in a selected part of a state diagram within the state diagramming environment, the at least one resettable variable being hierarchically scoped; assigning the at least one resettable variable a value before or during an invocation of the selected part of the state diagram; setting the at least one resettable variable to a second value during the invocation of the selected part of the state diagram; and automatically resetting the at least one resettable variable to the preset value before or during a subsequent invocation of the selected part of the state diagram, the resetting including: determining when the selected part of the state diagram is awakened, and resetting a value of the resettable variable directly after the selected part of the state diagram is awakened before the resettable variable is accessed in the selected part of the state diagram.