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

Invoking External Workflows with InvokeWorkflow

Here is a question for you: if you have an executing workflow, can that workflow execute a second workflow?

The answer is yes! There is an activity, InvokeWorkflow, that’s used to start a secondary workflow. Let’s briefly take a look at this activity by way of an example. We’ll create a new sample console application that starts a workflow that merely writes a message to the console. After writing this message, the workflow instance starts a second workflow instance that also writes a message, graphically showing us that both workflows executed.

Invoking a secondary workflow

  1. Although we could build a fancy demonstration application, we’ll revert to using a simple console application as we’ve done in ...

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