bjnr
bjnr

Reputation: 3437

How to terminate worflow instance?

I have a non persisted workflow instance, which is shown as "In progress" in AppFabric dashboard. How can I terminate / cancel it?

I am wondering why this instance is not cancelled even after "iisreset" as it is a not persisted workflow instance...

Upvotes: 0

Views: 57

Answers (1)

Radu Sarghie
Radu Sarghie

Reputation: 11

According to Terminate and Suspend activity in Windows workflow Foundation

WorkflowInstance instance = runtime.GetWorkflow(instanceId);
instance.Suspend("Paused for some good reason");

// do something here

instance.Resume();

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

Upvotes: 1

Related Questions