index > Windows Workflow Foundation > HandleExternalEvent and SqlWorkflowPersistenceService

HandleExternalEvent and SqlWorkflowPersistenceService

Suppose I specify UnloadOnIdle to true and LoadIntervalSeconds to 1 hr when creating the SqlWorkflowPersistenceService.

Consequently, I believe my workflow will be persisted to the db for 1 hr when it hits an HandleExternalEvent activity.

Since SqlWorkflowPersistenceService will not re-load the workflow again in 1 hr, what happens to the events sent to the workflow instance during this time?

Are the events stored in a queue somewhere? Does the workflow runtime store them? Are the stored events sent to the workflow instance one at a time when the instance is rehydrated?

Thanks in advance.

jamil

LoadIntervalSeconds does not indicate how long an instance should be left unloaded. LoadIntervalSeconds does not affect message delivery. If you send a message to an instance the instance will be immediately (synchronously) loaded from the persistence store in order to receive the message.

LoadIntervalSeconds is used to specify how often the SqlWorkflowPersistenceService checks the database for unloaded instances with expired timers. If you have an instance that goes idle because it is waiting on a 5 minute timer and the instance is unloaded it will not be reloaded for up to 1 hour and 5 minutes (depending on how long it has been since the last.time the database was checked). Typically you want to set this value to be anywhere from seconds to minutes depending on how much accuracy you need from your durable timers.

Thanks,
Joel West
MSFTE - SDE in WF runtime and hosting

This posting is provided "AS IS" with no warranties, and confers no rights

Joel West
reply 2

You can use google to search for other answers

 

More Articles

• ExpenseReport Example Problem
• CreateWorkflow() - where is it?
• Need XAML only State Workflow code samples (WWF Beta 2)
• Why I got ??TTP/1.1 500 Internal Server Error??after install CMS ...
• Accessing the form in the FormLib
• Using rules without WF
• Iterate through Activities
• what is exact advantage of WF
• WWF crashes VS when publishing an empty console Workflow
• Activity Properties and Conditions
Bookmark and Share
Welcome to Bokebb   New Update  
 

New Articles

• SqlWorkflowPersistenceService exception
• Having a policy call an external method
• Hosting of a Workflow in WCF
• TrackData and Strings with Single Quotes
• Rehosting WWF and a simply expression
• custom activities property values
• How to establish swimlane!
• WF Deployment in SharePoint Portal 2007
• Downloadable Workflow Themes
• Could not find stored procedure 'Retriev
• MOSS Publishing Site
• Statemashine workflow - Set State
• InvokeMethodActivity - how to run in Hos
• How to use the SQLPersistenceService?
• Composite Activity child activities are

Hot Articles

• Workflow arrows not showing up - what's
• Custom Sequential designer
• Event Queue operation failed with Messag
• How to create a new workflow instance at
• ASP - StateMachineWorkflow started but n
• WCF activities, in a Winform host applic
• Problem creating a custom activity with
• Query regarding running Windows Workflow
• How to Change the Workflow Name in Lab 10?
• Examples of workflows using Office 2007?
• Petri net implementation using State mac
• Retrieve the property value of an activi
• Workflow Persistence and tracking -Error
• Problem with Workflows and WebServices
• Visual Studio Tools for windows workflow

Recommend Articles

• Using 'typeof' in the Rule Editor
• WWF Rules Engine vs ILOG Rules Engine
• Custom Activity and DependencyProperty p
• Urgent WF Question - "Instance oper
• Beta 2
• Custom activity with inner sequence acti
• Binding CodeActivity.ExecuteCode to meth
• July CTP breakpoint on state machine wor
• Debugging State machine workflows Strang
• Activity.DesignMode true when initializi
• External RuleSet Tool
• SQL Database activity.
• Help with Hands on Labs
• Feb CTP - Can't get Workflow packages to
• How to get the list of Running Instances?