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?