StateMachineWorkflowInstance StateMachineWorkflowInstance StateMachineWorkflowInstance StateMachineWorkflowInstance Class

Definition

Warning

This API is now obsolete.

Represents a class that manages the current instance of a StateMachineWorkflowActivity. This class cannot be inherited.

public ref class StateMachineWorkflowInstance sealed
[System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")]
public sealed class StateMachineWorkflowInstance
type StateMachineWorkflowInstance = class
Public NotInheritable Class StateMachineWorkflowInstance
Inheritance
StateMachineWorkflowInstanceStateMachineWorkflowInstanceStateMachineWorkflowInstanceStateMachineWorkflowInstance
Attributes

Remarks

Note

This material discusses types and namespaces that are obsolete. For more information, see Deprecated Types in Windows Workflow Foundation 4.5.

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.

Constructors

StateMachineWorkflowInstance(WorkflowRuntime, Guid) StateMachineWorkflowInstance(WorkflowRuntime, Guid) StateMachineWorkflowInstance(WorkflowRuntime, Guid) StateMachineWorkflowInstance(WorkflowRuntime, Guid)

Initializes a new instance of the StateMachineWorkflowInstance class.

Properties

CurrentState CurrentState CurrentState CurrentState

Gets the currently executing StateActivity.

CurrentStateName CurrentStateName CurrentStateName CurrentStateName

Gets the name of the current StateActivity.

InstanceId InstanceId InstanceId InstanceId

Gets the Guid that indicates the current instance of the StateMachineWorkflowActivity.

PossibleStateTransitions PossibleStateTransitions PossibleStateTransitions PossibleStateTransitions

Gets a collection of state transitions that the current StateActivity can make.

StateHistory StateHistory StateHistory StateHistory

Gets a collection of state activities that the state machine workflow instance has transitioned through.

StateMachineWorkflow StateMachineWorkflow StateMachineWorkflow StateMachineWorkflow

Gets the latest definition of the StateMachineWorkflowActivity.

States States States States

Gets a list of StateActivity classes in the StateMachineWorkflow.

WorkflowInstance WorkflowInstance WorkflowInstance WorkflowInstance

Gets the current WorkflowInstance.

Methods

EnqueueItem(IComparable, Object) EnqueueItem(IComparable, Object) EnqueueItem(IComparable, Object) EnqueueItem(IComparable, Object)

Posts a message to the StateMachineWorkflowInstance.

EnqueueItem(IComparable, Object, IPendingWork, Object) EnqueueItem(IComparable, Object, IPendingWork, Object) EnqueueItem(IComparable, Object, IPendingWork, Object) EnqueueItem(IComparable, Object, IPendingWork, Object)

Posts a message to the StateMachineWorkflowInstance.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
SetState(StateActivity) SetState(StateActivity) SetState(StateActivity) SetState(StateActivity)

Provides a transition to a specified StateActivity.

SetState(String) SetState(String) SetState(String) SetState(String)

Provides a transition to a specified StateActivity using the name of the StateActivity.

ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to