Starting a Workflow Instance
Before we can start a workflow instance, we must have a workflow task for WF to execute. In the first chapter, we asked Visual Studio to create a workflow-based project for us that automatically included a raw workflow task we modified to validate U.S. and Canadian postal codes. We could, if we wanted, go back to that project and physically copy the workflow source code, or we could reference the resulting assembly PCodeFlow.exe and try to use the workflow we created directly. And, in practice, you might do that.
In this case, however, we’re attempting to learn to write workflow applications. What fun is swiping existing workflow code when we can build new? Let’s simulate a long-running task by using a sequential workflow ...
Get Microsoft® Windows® Workflow Foundation Step by Step now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.