title: Workflow foundation - multiple bookmarks
body: <p>We have a state machine implemented as a windows workflow. The idea should be straight forward:</p>
  
  <ol>
  <li>load workflow</li>
  <li>preform activity</li>
  <li>stop (wait for user to start next step)</li>
  </ol>
  
  <p>Our team is learning WWF as we go. we found a bookmark can be creataed to pause and unload the workflow. The workflow can then be resumed by loading the workflow by ID and resuming the bookmark.</p>
  
  <pre><code>//start
  var workflow = new WorkflowApplication(new MyWorkflow(), identity);
  workflow.Run();
  //run step 1, create bookmark in transition 1
  
  //.....
  //resume
  var workflow = new WorkflowApplication(new MyWorkflow(), identity);
  workflow.Load(id);
  workflow.ResumeBookmark("step 2", obj);
  //run step 2. finish
  </code></pre>
  
  <p>This part works. But now we want to introduce a third step. Transition 2 should create a new bookmark and then resume the workflow to run step 3.</p>
  
  <pre><code>//run step 3
  var workflow = new WorkflowApplication(new MyWorkflow(), identity);
  workflow.Load(id);
  workflow.ResumeBookmark("step 3", obj);
  //run step 3. finish
  </code></pre>
  
  <p>However this is not working as expected. The workflow is loaded, but resuming <code>step 3</code> bookmark doesn't execute the step 3 activity. It seems like either a workflow can only handle 1 bookmark, or the first bookmark in transition 1 is not cleared/removed after resuming with <code>step 2</code>.</p>
  
  <p>I searched the internet but I haven't found enough information on this subject. There are plenty of examples of using a single bookmark in a workflow. But nothing on multiple bookmarks in a workflow.</p>