Parameter with sequence workflow

A workflow and a host application can pass data between each other using parameters. On the workflow side, a parameter is a simple property defined in your workflow class. If a set method is defined for the property, the host application can set that property before the workflow executes by passing in a Parameters collection during the CreateWorkflow method call. To return parameters back to the host application after it has finished executing, you can define a get method for the property. The host application can then access the WorkflowCompletedEventArgs object that is passed to the WorkflowCompleted event. The WorkflowCompletedEventArgs object contains all of the properties defined in the workflow that contain set methods.

What does Parameter give us ?
specify properties on the workflow class
Alter instantiation code to pass parameter
Revisit for workflows invoking other workflows

See this Video
http://wf.netfx3.com/files/folders/4981/download.aspx

posted on 2006-09-15 08:31  乐  阅读(78)  评论(0)    收藏  举报