0
我正在嘗試爲我的項目配置多個流程執行程序,因爲我需要一組流程,其中'always-on-pause'屬性爲false,另一個爲true。我試圖搜索,瀏覽Spring Docs,但無法拿出這個配置。任何人都可以分享這些配置和/或直接到一些相關資源?Spring webflow:如何配置多個流程執行程序
感謝
我正在嘗試爲我的項目配置多個流程執行程序,因爲我需要一組流程,其中'always-on-pause'屬性爲false,另一個爲true。我試圖搜索,瀏覽Spring Docs,但無法拿出這個配置。任何人都可以分享這些配置和/或直接到一些相關資源?Spring webflow:如何配置多個流程執行程序
感謝
你可以有多個工作流(流定義文件),位置登記在項目中Spring配置文件
Spring配置文件
<?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用於區分工作流程。
你不需要將'/ savingsAssetViewFlow.htm'映射到'flowController'嗎?我主要問,因爲我正在嘗試學習這些東西。 – KitsuneYMG