Anyway to control how WorkflowApplication persistence behavior? RRS feed

  • Question

  • I have a simple sequential workflow that is run by a WorkflowApplication instance.  I'm using the SQL Server instance store to persist information.  I noticed however that when the task is completed, it always deletes the related persistence records.  Is there anyway to keep the records around?  I don't want my workflows to be deleted since they may need to be resumed at a later point.  I noticed that in the samples, only WorkflowServiceHost seems to provide an option for controlling persistence behavior.
    Friday, December 3, 2010 6:28 PM


  • Never mind.  I found the property.


    On the SqlWorkflowInstanceStore, there's an InstanceCompletionAction that can be set to DeleteNothing.



    • Marked as answer by SultanOfSuede Friday, December 3, 2010 6:42 PM
    Friday, December 3, 2010 6:42 PM