This sample shows how to define and use an execution property in a custom activity. In this example, the execution property determines the console's foreground color. An example workflow shows how different logical paths of execution (branches of a Parallel activity) can maintain different console colors despite interleaved execution of activities (across the branches of the Parallel activity).
Open the ExecutionProperties.sln sample solution in Visual Studio 2010.
Viewing ThreeColors.xaml before building the solution displays an error, because the custom activities used must be built at the same time as the solution.
Build and run the solution.
The samples may already be installed on your machine. Check for the following (default) directory before continuing.
If this directory does not exist, go to Windows Communication Foundation (WCF) and Windows Workflow Foundation (WF) Samples for .NET Framework 4 to download all Windows Communication Foundation (WCF) and WF samples. This sample is located in the following directory.