<?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="subject"/>

  <subflow-state id="captcha" subflow="captcha-sub-flow">
    <transition on="finish" to="init"/>
  </subflow-state>

  <action-state id="init">
    <evaluate expression="mailInquiryAction"/>
    <transition on="success" to="create"/>
  </action-state>

  <subflow-state id="create" subflow="mail.create-sub-flow">
    <input name="mail" required="true"/>
    <input name="unmodifiableTo" required="true"/>
    <input name="pageTitleCode" required="true"/>
    <input name="pageDescriptionCode" required="true"/>
    <input name="statusCode" value="'200'"/>
    <transition on="finish" to="finish"/>
  </subflow-state>

  <end-state id="finish" view="mail.InquirySuccess"/>

</flow>
