<?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="message" type="org.unitedfront2.domain.communication.Message"/>
  <input name="pageTitleCode" type="string"/>
  <input name="pageDescriptionCode" type="string"/>
  <input name="formSubmitCode" type="string"/>
  <input name="subjectRequired" type="boolean"/>
  <input name="subjectDisabled" type="boolean"/>

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

  <end-state id="finish">
    <output name="message" type="org.unitedfront2.domain.communication.Message" required="true"/>
  </end-state>

</flow>
