[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

WF: State Machine Persistence WorkFlow

Posted on 2010-11-29
1
Medium Priority
?
903 Views
Last Modified: 2012-05-10
HI!

I need some design help.

I have a state machine that I need to restart when the workflow is done. I do not need to save the current states (pause the state machine) just rerun it from the start.

why I need this is becase the load of a new instance takes to long so I need to build the sate machine and when a user press start I need it to execute the state machine  directly without any delay of creating a new instanceand and when the user press start again I want to rerun it, and so on.

How do I do this?

Must I use the SqlWorkflowPersistenceService even if  I just want to restart it from the beginning? Or is there a easyer way to do it then?
0
Comment
Question by:AWestEng
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 14

Accepted Solution

by:
existenz2 earned 2000 total points
ID: 34246219
Workflows are not designed to do this and it will give you all kinds of problems. You could however build a form of cache pool with a limited amount of new workflows waiting to be used. Everytime a new workflow is taken from the cache pool, you can asynchronisally put a new workflow into the pool to ensure that the pool does not end up without any prepared workflows.

It's a bit like a queueing mechanism or a car plant. Workflows are never fast and will always have a delay. There is no way to fix this, as this is by nature in any kind of workflow in any system. It's just the users perception which is the problem.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Suggested Courses

649 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question