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...
- Create a workflow project:
Create a new Workflow Console Application under solution
Chapter06
and name the project asUsingPersistenceParticipant
. - Create a custom persistence ...
Get Microsoft Windows Workflow Foundation 4.0 Cookbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.