<?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">

  <secured attributes="ROLE_ADMIN"/>

  <subflow-state id="form" subflow="message.form-sub-flow">
    <input name="message" value="messageTable.findByCode('info')" required="true"/>
    <input name="pageTitleCode" value="'InformationUpdateForm'"/>
    <input name="formSubmitCode" value="'doUpdate'"/>
    <input name="subjectDisabled" value="true"/>
    <output name="message" value="flowScope.info" required="true"/>
    <transition on="finish" to="update"/>
  </subflow-state>

  <action-state id="update">
    <evaluate expression="domainFactory.prototype(info).store()"/>
    <transition on="success" to="finish"/>
  </action-state>

  <end-state id="finish" view="externalRedirect:contextRelative:/index.html"/>

</flow>
