O'Reilly logo

Microsoft® Windows® Workflow Foundation Step by Step by Kenn Scribner

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using the Terminate Activity

There are times when things get so bad that you have no recourse but to kill off a workflow instance. Perhaps some data came back from an external process in a bad format or was otherwise miscalculated. Or the database server simply disappeared and you can’t move forward without it. Or...well, hopefully, you see where this line of reasoning is going.

WF provides us with a ready-made way to terminate our workflow instances through the Terminate activity. The Terminate activity is used in precisely the same way as the Suspend activity, and in fact its properties are identical. The difference is that when Terminate executes, all hope for your workflow instance continuing execution is lost.

When Terminate executes, the workflow ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required