Search code examples
workflow-foundation-4

Promoted properties not restored?


I'm using the promoted activity (http://msdn.microsoft.com/en-us/library/ff642473.aspx) to store information needed to track a workflow. During execution values are correctly stored and I can query them using the view but, if the workflow is persisted, the view becomes empty and I can't find information anymore.

Can someone explain me how to keep those values until the natural completion of the workflow?

Thanks

update

a few more details

  • I'm using IIS to store workflows
  • I promote values at the beginning of the workflow and I wouldn't like to do it again on every persistence property (this was the first workaround I thought)

Solution

  • Each time a workflow is persisted the complete state is persisted. There is no incremental addition. So by not adding the promoted properties on subsequent persists you are effectively removing them from the instance store.