Ending and Suspending Activity in Windows Workflow Foundation

I need to stop executing. Are there any procedures for using complete and suspend operations.

+1


source to share


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


This sample on the Microsoft website should help you suspend and terminate



http://msdn.microsoft.com/en-us/library/ms742189.aspx

+2


source







All Articles