Spring webflow 2 SpringWebFlow:如何配置多个流执行器
我正在尝试为我的项目配置多个流执行器,因为我需要一组“暂停时始终重定向”属性为false,另一组为true的流。我尝试过搜索、浏览Spring文档,但无法找到这种配置。任何人都可以分享这些配置和/或直接联系相关资源吗Spring webflow 2 SpringWebFlow:如何配置多个流执行器,spring-webflow-2,Spring Webflow 2,我正在尝试为我的项目配置多个流执行器,因为我需要一组“暂停时始终重定向”属性为false,另一组为true的流。我尝试过搜索、浏览Spring文档,但无法找到这种配置。任何人都可以分享这些配置和/或直接联系相关资源吗 谢谢您可以在project Spring配置文件中注册多个工作流(流定义文件)位置 弹簧配置 <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.o
谢谢您可以在project 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>
/assetMgmtHomeView.htm=流量控制器
如您所见,
webflow:flow注册表
包含两个工作流xml文件路径。请记住,这些位置注册具有不同的ID,用于区分工作流。是否也需要将/savingsetviewflow.htm
映射到flowController
?我问主要是因为我也在努力学习这些东西。