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
Syntax
'Declaration
<SubsetCallableTypeAttribute> _
<FlagsAttribute> _
Public Enumeration SPWorkflowState
'Usage
Dim instance As SPWorkflowState
[SubsetCallableTypeAttribute]
[FlagsAttribute]
public enum SPWorkflowState
Members
Member name | Description | |
---|---|---|
None | Include or exclude no workflows or workflow tasks from the collection. | |
Locked | Include or exclude all locked workflows or workflow tasks from the collection. | |
Running | Include or exclude all workflows or workflow tasks that are currently running from the collection. | |
Completed | Include or exclude all completed workflows or workflow tasks from the collection. | |
Cancelled | Include or exclude all cancelled workflows or workflow tasks from the collection. | |
Expiring | Include or exclude all workflows or workflow tasks that are currently expiring from the collection. | |
Expired | Include or exclude all expired workflows or workflow tasks from the collection. | |
Faulting | Include or exclude all workflows or workflow tasks that are currently faulting from the collection. | |
Terminated | Include or exclude all workflows or workflow tasks that have been terminated from the collection. | |
Suspended | Include or exclude all workflows or workflow tasks that have been suspended from the collection. | |
Orphaned | Include or exclude all workflows or workflow tasks that have been orphaned from the collection. | |
HasNewEvents | Include or exclude all workflows or workflow tasks that have new workflow events from the collection. | |
NotStarted | Include or exclude all workflows or workflow tasks that have not yet started from the collection. | |
All | Include or exclude all workflows or workflow tasks from the collection. |
Remarks
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.