This class also provides the query interface over the current instance of the StateMachineWorkflowActivity. By using an instance of this class, you can make various queries on the StateMachineWorkflowInstance.
Typical queries that can be made are as follows:
Current state of the state machine.
Possible transitions from the current state.
History of transitions for the state machine instance.
Enumeration of all the states in the state machine.