Share via


WorkflowInstanceService members

Reads the SharePoint workflow instances from the external workflow host and manages the instance execution.

The WorkflowInstanceService type exposes the following members.

Constructors

  Name Description
Protected method WorkflowInstanceService Initializes a new instance of the WorkflowInstanceService class.

Top

Methods

  Name Description
Public method CancelWorkflow Sends a cancel message to the specified workflow instance and permits the instance to execute a cancellation scope.
Public method CountInstances Retrieves a count of all the instances of the specified WorkflowSubscription.
Public method CountInstancesWithStatus Retrieves a count of the instances of the specified WorkflowSubscription that have a specified status.
Public method Enumerate(WorkflowSubscription) Gets a workflow instance collection comprising the 100 most recent workflow instances started by a specified subscription.
Public method Enumerate(WorkflowSubscription, Int32) Gets a workflow instance collection comprising 100 workflow instances starting at the specified offset.
Public method EnumerateInstancesForListItem(Guid, Int32) Retrieves all instances of the specified list item.
Public method EnumerateInstancesForListItem(Guid, Int32, Int32) Gets the instances for the specified list item, starting from the specified offset.
Public method EnumerateInstancesForSite() Retrieves the site-scope workflow instances for the current site.
Public method EnumerateInstancesForSite(Int32) Gets the site workflow instances for the current site, starting from the specified offset.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetDebugInfo Retrieves the debug info for the specified workflow instance in JSON format.
Public method GetHashCode (Inherited from Object.)
Public method GetInstance Gets a workflow instance from external workflow instance store by specified id.
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method PublishCustomEvent Sends a custom event to a running workflow with the event payload.
Public method ResumeWorkflow
Public method StartWorkflow Starts a Workflow Manager Client 1.0 instance specified by the subscription and passes the supplied parameters.
Public method StartWorkflowOnListItem Starts a Workflow Manager Client 1.0 instance of the specified WorkflowSubscription on the list item.
Public method SuspendWorkflow
Public method TerminateWorkflow Terminate a workflow instance forcefully by deleting it from memory. The instance is not allowed to execute a cancellation scope
Public method ToString (Inherited from Object.)

Top

See also

Reference

WorkflowInstanceService class

Microsoft.SharePoint.WorkflowServices namespace