Ending and Suspending Activity in Windows Workflow Foundation
2 answers
It depends exactly on what you want to do. The Terminate Activity will terminate the execution of the workflow instance and reach that activity. Upon completion of this instance, the workflow will be dead and will never be restarted.
Suspend is what you can call in WorkflowInstance for example.
WorkflowInstance instance = runtime.GetWorkflow(instanceId);
instance.Suspend("Paused for some good reason");
// do something here
instance.Resume();
+1
source to share