<?xml version="1.0" encoding="UTF-8"?>
<flow xmlns="http://www.springframework.org/schema/webflow"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://www.springframework.org/schema/webflow
      http://www.springframework.org/schema/webflow/spring-webflow-2.0.xsd">

  <input name="pageTitleCode" required="true"/>
  <input name="pageDescriptionCode"/>
  <input name="formSubmitCode"/>

  <action-state id="init">
    <evaluate expression="userFormAction.init"/>
    <transition to="form"/>
  </action-state>

  <view-state id="form" view="user.Form">
    <on-render>
      <evaluate expression="userFormAction.setupForm"/>
    </on-render>
    <transition on="submit" to="finish">
      <evaluate expression="userFormAction.bindAndValidate"/>
    </transition>
  </view-state>

  <end-state id="finish">
    <on-entry>
      <evaluate expression="userFormAction.finish"/>
    </on-entry>
  </end-state>

  <output name="user" required="true"/>

</flow>
