This documentation is archived and is not being maintained.

WorkflowStatus Enumeration

Specifies the status of a workflow instance.

Namespace:  System.Workflow.Runtime
Assembly:  System.Workflow.Runtime (in System.Workflow.Runtime.dll)

public enum class WorkflowStatus

Member nameDescription
RunningThe workflow instance is running.
CompletedThe workflow instance has completed.
SuspendedThe workflow instance has been suspended by a SuspendActivity activity, by a call to WorkflowInstance::Suspend,or by the workflow runtime engine.
TerminatedThe workflow instance has been terminated by a

TerminateActivity activity, by a call to WorkflowInstance::Terminate, or by the workflow runtime engine.

CreatedThe workflow instance has been created by a call to one of the overloaded WorkflowRuntime::CreateWorkflow methods.

The following code example demonstrates how you can use the WorkflowStatus values to set the WorkflowStatus property. Each value constrains the SqlTrackingWorkflowInstance in a different way.

This code example is part of the Workflow Monitor SDK Sample from the DatabaseService.cs file. For more information, see Workflow Monitor.

No code example is currently available or this language may not be supported.

.NET Framework

Supported in: 4, 3.5, 3.0

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: