title: How to implement simple business workflow in Workflow Foundation?
body: <p>I've started to look through WF and can't catch how it can replace my Domain object functionality.
  Here is simple Domain object scenario:</p>
  
  <pre><code>class Order {
      public int Id {get;}
  
      public OrderStatus Status {get;private set;}
  
      public void Approve () {
         if (Status &gt;= OrderStatus.Approved)
            throw new InvalidOperationException("It is impossible to approve as order
            Status:" + Status);
  
         privateMethodCall();
         Status = Status.Approved;
      }
  
      public void Complete () {
         if (Status &gt;= OrderStatus.Completed)
            throw new InvalidOperationException("It is impossible to Complete as order
            Status:" + Status);
  
         privateMethodCall1();
         Status = Status.Completed;
      }
  }
  </code></pre>
  
  <p>I've read that WF can do it better as Approve and Complete code will be placed in one place
  and it won't be possible to call them in wrong order. Is it true? and if it is true can you show me how it will look in WF using object model (not xaml).</p>
  
  <p>Thanks in advance.</p>