<?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="threadId" required="true"/>
  <input name="messageCode"/>
  <input name="subjectDisabled"/>

  <on-start>
    <evaluate expression="threadEntryFormAction.init"/>
  </on-start>

  <subflow-state id="form" subflow="message.form-sub-flow">
    <input name="pageTitleCode" required="true"/>
    <input name="pageDescriptionCode" required="true"/>
    <input name="formSubmitCode" required="true"/>
    <input name="message"/>
    <input name="subjectDisabled"/>
    <output name="message"/>
    <transition on="finish" to="finish"/>
  </subflow-state>

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

</flow>
