Workflow Persistence

I have created a workflow.I am able to persist it. Thanks to help from the forum. But How will I load the persisted workflow, after shutting down the application and restarting it. I could see many records in the InstanceState table. Which entry will be loaded when I call the load method. How to ensure that I load the instance state of a specific instance

Please help.

Regards



Answer this question

Workflow Persistence

  • SIFIS

    You have to keep or get the InstanceId. When you call WorkflowRuntime.GetWorkflow passing in a specific ID - the WorkflowRuntime searches its live list - and if a live instance isn't found - it goes to the PersistenceService.



  • BillAPgh

    Thanks for the reply.
  • Workflow Persistence