Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3391576
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T03:49:07+00:00 2026-05-18T03:49:07+00:00

I have an application which contains multiple state machine instances when running. I would

  • 0

I have an application which contains multiple state machine instances when running. I would like these to be implicitly persisted to a database in order that if the application is restarted, they can be re-loaded from the database and they will resume in the same state they finished in, along with any object properties which had been set while the instance was in memory.

Is such a thing possible?

I’ve been searching Google in vain, which means one of three things:

  1. This is impossible!
  2. I’m terrible at using Google
  3. A decent answer to this question will help out a lot of other folk

I hope the answer is 3! 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T03:49:07+00:00Added an answer on May 18, 2026 at 3:49 am

    Nhibernate is not particular useful for this because the physical persistence operation is a minor aspect of workflow persistence. The involved part is all the services that support unloading the reloading and activating workflows at the appropriate times etc. The inner workings of the runtime and services are also complicated by the fact that workflows span application boundaries that can last indefinitely. Various entities can be in various states at any given time. Since a call cannot be guaranteed to even have a client under these conditions, what the runtime actually does when you raise an event in a workflow for example is put a message in a queue rather than calling an actual function pointer. This is how you are able to “raise” an event in a workflow which is not running.

    You can access these message queues and other low level details of the runtimes, but it is probably best to try to stay within the Microsoft framework and avoid rebuilding anything as much as possible. Si when you do things their way, which is much easier than tryiong to manage it yourself, Nhibernate becomes rather pointless because all it would do is persist a binary serialization stream.

    Among the various extensions available, one is the ability to create custom persistence providers that can operate within the existing workflow framework. There is an Oracle provider already written. Cannot attest to it’s reliability, but you should at least be able to build on this.

    http://wftools.codeplex.com/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an Oracle table which contains event log messages for an application. We
I have an application which executes multiple queries (query1, query2, query3) against a DB,
I have an application which opens multiple JIFs, But I only want to create
I have a web application which needs to support multiple languages. We currently have
I have a fairly complex application which has been broken up into multiple components.
We have an application with a plugin which contains a service: public class TaskService
I have an application which really should be installed, but does work fine when
I have an application which extracts data from an XML file using XPath. If
We have an application which needs to use Direct3D. Specifically, it needs at least
I have an application which behaves as a slideshow for all pictures in a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.