Use the SPWorkflowManager class to centrally manage and control the running instances of workflows across a site collection.
Use the SPWorkflowManager object to:
-
Start, run, or cancel workflows.
-
Return all the workflows currently running on a specific item.
-
Perform other workflow administration operations.
The SPWorkflowManager class has no equivalent in the user interface. Through the Windows SharePoint Services user interface, users interact with the workflows running on items on an individual basis.