title: How to implement conditional transitions in Spring Webflow
body: <p>Just getting the hang of Spring Webflow.  I have some simple forms working and binding back and forth - very cool.  One thing not obvious to me at the moment is how to dynamically launch a flow based on user input.</p>
  
  <p>i.e. imagine a flow where the user chooses an option in the first screen, and based on the choice taken, different subflows can be initiated.  In pseudo-terms something like the following pseudo-flow:</p>
  
  <pre><code>    &lt;view-state id="selectService" model="serviceType"&gt;
              &lt;transition on="proceed"&gt;
                 &lt;if "serviceType.selectedValue==1" to="subFlow1" /&gt;
                 &lt;if "serviceType.selectedValue==2" to="subFlow2" /&gt;
                 &lt;if "serviceType.selectedValue==3"&gt;
                        &lt;if "serviceType.isValid==3" to="subFlow3" /&gt;
                 &lt;/if&gt;
                 &lt;default to="cancel" /&gt;
               &lt;/transition&gt;
              &lt;transition on="cancel" to="cancel" /&gt;
      &lt;/view-state&gt;
  </code></pre>
  
  <p>I've trawled the examples, docs, stackoverflow and the spring forums but haven't seen this anywhere..</p>