title: Spring webflow 2.3.0 - How to get flowExecutionKey in form action method?
body: <p>I have some code in a form action class that needs to get the <code>flowExecutionKey</code> from the <code>RequestContext</code>. I can't seem to find any documentation on how to do this. My class looks something like this:</p>
  
  <pre><code>public class MyFormAction extends FormAction
  {
      public Event doStuff(RequestContext context)
      {
          String flowExecutionKey = ...??
          ...
      }
  }
  </code></pre>
  
  <p>I know I really shouldn't need to ever get the flowExecutionKey, but I'm dealing with some legacy code that requires it. This method is being called as an entry action for a view state. I tried <code>context.getFlowExecutionContext().getKey()</code> but it returns null. <code>context.getFlowExecutionUrl()</code> also returns null. Is there any way to do this?</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>I was playing around with this some more, and <code>context.getFlowExecutionContext().getKey()</code> does get the the flowExecutionKey when the method is called in the <code>&lt;on-render&gt;</code> instead of <code>&lt;on-entry&gt;</code>. It is also worth noting that it works during <code>&lt;on-entry&gt;</code> on a later view state. The view state it's not working on is the very first view state in my flow. Is there some reason I can't get the flowExecutionKey in <code>&lt;on-entry&gt;</code> on the first view state?</p>