<?xml version="1.0" encoding="UTF-8"?>
<!-- Source project: sip05, branch: 02 (Maven Project) -->

<beans xmlns="http://www.springframework.org/schema/beans"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:flow="http://www.springframework.org/schema/webflow-config"
  xsi:schemaLocation="
    http://www.springframework.org/schema/beans
    http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
    http://www.springframework.org/schema/webflow-config
    http://www.springframework.org/schema/webflow-config/spring-webflow-config-2.3.xsd">

  <flow:flow-builder-services id="flowBuilderServices"
    development="true"/>
    
  <flow:flow-executor id="flowExecutor" flow-registry="flowRegistry"/>

  <!-- 
    The flow-registry definition below is based on naming conventions.
    
  	With the below configuration, you can execute this flow by visiting:
  	http://localhost:8080/spring-soccer/test
  	This is because the path immediately following the base path, currently "test",
  	will be used as the flow ID.
  	
  <flow:flow-registry 
    id="flowRegistry" 
    base-path="/WEB-INF/flows"
    flow-builder-services="flowBuilderServices">
    <flow:flow-location-pattern value="/**/*-flow.xml" />
  </flow:flow-registry>
  -->
      
  <!--   
  	If a common naming strategy/convention is not used, you can explicitly
  	define the location of your flow definition files.
  	
  	With the below configuration, you can execute this flow by visiting:
  	http://localhost:8080/spring-soccer/testWebFlow
  -->
  <flow:flow-registry id="flowRegistry" base-path="/WEB-INF/flows">
    <flow:flow-location 
      id="testWebFlow" path="/test/helloWorld-flow.xml"/>
  </flow:flow-registry>
  
  

  <bean class="org.springframework.webflow.mvc.servlet.FlowHandlerAdapter">
    <property name="flowExecutor" ref="flowExecutor"/>
  </bean>

  <bean class="org.springframework.webflow.mvc.servlet.FlowHandlerMapping">
    <property name="flowRegistry" ref="flowRegistry"/>
    <property name="order" value="0"/>
  </bean>

</beans>