Export (0) Print
Expand All
Expand Minimize

SPWorkflowState Enumeration

Provides workflow state values to specify for a workflow filter, either as inclusive or exclusive filter criteria.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

Namespace:  Microsoft.SharePoint.Workflow
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

[SubsetCallableTypeAttribute]
[FlagsAttribute]
public enum SPWorkflowState

Member nameDescription
NoneInclude or exclude no workflows or workflow tasks from the collection.
LockedInclude or exclude all locked workflows or workflow tasks from the collection.
RunningInclude or exclude all workflows or workflow tasks that are currently running from the collection.
CompletedInclude or exclude all completed workflows or workflow tasks from the collection.
CancelledInclude or exclude all cancelled workflows or workflow tasks from the collection.
ExpiringInclude or exclude all workflows or workflow tasks that are currently expiring from the collection.
ExpiredInclude or exclude all expired workflows or workflow tasks from the collection.
FaultingInclude or exclude all workflows or workflow tasks that are currently faulting from the collection.
TerminatedInclude or exclude all workflows or workflow tasks that have been terminated from the collection.
SuspendedInclude or exclude all workflows or workflow tasks that have been suspended from the collection.
OrphanedInclude or exclude all workflows or workflow tasks that have been orphaned from the collection.
HasNewEventsInclude or exclude all workflows or workflow tasks that have new workflow events from the collection.
NotStartedInclude or exclude all workflows or workflow tasks that have not yet started from the collection.
AllInclude or exclude all workflows or workflow tasks from the collection.

Use the SPWorkflowFilter class to apply filter criteria to a workflow or workflow task collections, such as who the workflow is assigned to, and the workflow state.

Show:
© 2014 Microsoft