title: WF 4 - How to react to events?
body: <p>There are some resources on the topic of State machines in WF4 (<a href="http://download.microsoft.com/download/5/9/9/599CF8A9-5FE2-426A-A536-A83F84D38BF9/WF4%20State%20Machine%20Guidance.doc" rel="nofollow">WF4 State Machine Guidance</a>, <a href="http://wf.codeplex.com/releases/view/43586" rel="nofollow">State machine activity pack CTP1</a>), but I can't figure out how to react to events?</p>
  
  <p>What I would like to do is something like:</p>
  
  <pre><code> myWorkflow.SendEvent(Events.Stored);
  </code></pre>
  
  <p>And in transition branch to catch that <em>somehow</em> in trigger.</p>
  
  <p>Any ideas?</p>