If I have have a WorkflowInstance can I executed twice in a row?
WorkflowInstance instance = workflowRuntime.CreateWorkflow(typeof(...)); instance.start(); instance.start();
When I do this I get and exception telling me that I don’t have a persistence service configured. However my question is: after I execute the WorkflowInstance once can a instance be run a second time, or dos it become unusable? Do I have to create another instance everytime I want to executed?
As per the specifications of WorkflowInstance you can start the instance only once
have a look at http://msdn.microsoft.com/en-us/library/system.workflow.runtime.workflowinstance.start.aspx
An InvalidOperationException is thrown if the instance is already running