Gets the state property.
This is the name of the current state of the machine.
the StateMachine.
The current state of the machine.