O'Reilly logo

Microsoft Windows Workflow Foundation 4.0 Cookbook by Andrew Zhu

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

Using a persistence participant to persist additional data

When the workflow instance is persisted, some additional data may need to be persisted along with the workflow instance. For example, in web applications, different HTTP requests are initialized by different people. So, to make sure our workflow instance is aware of its owner, we should store the user information along with the workflow instance.

Getting ready

We need to make sure we have finished the task of Loading a persisted workflow from the database, which we have seen earlier in this chapter.

How to do it...

  1. Create a workflow project:

    Create a new Workflow Console Application under solution Chapter06 and name the project as UsingPersistenceParticipant.

  2. Create a custom persistence ...

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