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

Starting a Workflow Instance with Parameters

Workflow instances that take input parameters upon startup accept those parameters as public properties. That is, to pass in a variable delay value, we need only to create a public Delay property on our workflow instance and then provide the delay value when we create the instance. If you’re familiar with XML Serialization and the XmlSerializer in .NET, the process for creating a workflow instance is similar to the process of deserializing an XML stream into a living .NET object. In fact, this is very nearly what happens.

The arguments that a workflow instance expects are passed in as values in a dictionary object that uses a string as a key and a simple object type as the value. Typically, code such ...

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