2012-11-21 2 views
0

'always-redirect-on-pause'속성을 false로 설정하고 또 다른 설정을 true로 설정하여 한 세트의 플로우가 필요하므로 프로젝트에 다중 흐름 실행 프로그램을 구성하려고합니다. 나는 봄 Docs를 찾지 만,이 구성을 생각 해낼 수 없었다. 누구든지 이러한 구성을 공유하고 관련 리소스를 직접 사용할 수 있습니까?Spring 웹 플로우 : 다중 흐름 실행자를 구성하는 방법

감사

답변

2

당신은 당신의 프로젝트 봄 구성 파일의 다중 워크 플로우 (흐름 정의 파일) 위치 등록을 할 수는

봄 구성

<?xml version="1.0" encoding="UTF-8"?> 
<beans xmlns="http://www.springframework.org/schema/beans" 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:webflow="http://www.springframework.org/schema/webflow-config" 
    xmlns:tx="http://www.springframework.org/schema/tx" 
    xsi:schemaLocation="http://www.springframework.org/schema/beans 
    http://www.springframework.org/schema/beans/spring-beans-2.5.xsd 
    http://www.springframework.org/schema/tx 
    http://www.springframework.org/schema/tx/spring-tx-2.5.xsd 
    http://www.springframework.org/schema/webflow-config 
    http://www.springframework.org/schema/webflow-config/spring-webflow-config-2.0.xsd"> 

    <bean id="assetManagementService" /> 

    <bean id="savingsAssetService" /> 

    <bean id="handlerMapping"> 
     <property name="mappings"> 
      <value>/assetMgmtHomeView.htm=flowController</value> 
     </property> 
    </bean> 

    <bean id="flowController"> 
     <property name="flowExecutor" ref="flowExecutor" /> 
    </bean> 

    <webflow:flow-executor id="flowExecutor" flow-registry="flowRegistry"> 
    </webflow:flow-executor> 

    <webflow:flow-registry id="flowRegistry"> 
     <webflow:flow-location id="assetMgmtHomeView" path="/WEB-INF/flows/assetMgmtFlow.xml" /> 
     <webflow:flow-location id="savingsAssetViewFlow" path="/WEB-INF/flows/savingsAssetViewFlow.xml" /> 
    </webflow:flow-registry> 

</beans> 

당신이 webflow:flow-registry을 볼 수 있듯이 두 개의 워크 플로우를 포함 XML 파일 경로. 이러한 위치 등록에는 워크 플로를 구분하는 데 사용되는 ID이 있습니다.

+0

'/ savingsAssetViewFlow.htm'도'flowController'에도 매핑 할 필요가 없습니까? 나는이 물건들도 배우려고하기 때문에 대부분 묻는다. – KitsuneYMG

관련 문제