How to get the last saved workflow instance id to reload it?

Suppose I saved self-hosted workflows(running locally IIS express) using a software implementation WorkflowApplicationusing an object model SqlWorkflowInstanceStore.

app.PersistableIdle = delegate(WorkflowApplicationIdleEventArgs e)
{
    return PersistableIdleAction.Unload;
};

Then I accidentally / intentionally stopped my web application, restarted my visual studio (local development).

My questions:

  • They rebooted my application, how would I restore the last saved instance of the application from the database and load it for the subsequent bookmark resume?
  • How to get the id of the last saved workflow instance id and reload it using the Reload method?
+1
source share
1 answer

In each workflow instance that I have seen, the Workflow instance identifiers are stored in a separate database, so the system can decide, based on the criteria stored with the identifier, which workflow is restarted from the save database.

0
source

Source: https://habr.com/ru/post/1750136/


All Articles