Search

Search:

Namespace:

Search Result
.
  • When the WorkflowInstance goes idle and the UnloadOnIdle property if the WorkflowPersistenceService is set.
.
                   UnLoadOnIdle= "true" />
.
                Dim unloadOnIdle As Boolean = True
.
                                                                       unloadOnIdle, _
.
                bool unloadOnIdle = true;
.
                    new SqlCeWorkflowPersistenceService(connectionStr, unloadOnIdle, loadingInterval);
.

The UnloadOnIdle property can be set to unload a workflow as soon as it becomes idle.

.

Calling GetWorkflow to can cause a workflow to be loaded into memory. If the SqlWorkflowPersistenceService is configured with UnloadOnIdle set to true you might expect the workflow to be unloaded automatically but this only happens when the workflow becomes idle. If no activities are executed inside of the workflow it never becomes idle, after all it was idle all the time, and the persistence service never releases its lock on the record.