Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/visual-studio-code/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Spring webflow 2 SpringWebFlow:如何配置多个流执行器_Spring Webflow 2 - Fatal编程技术网

Spring webflow 2 SpringWebFlow:如何配置多个流执行器

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

我正在尝试为我的项目配置多个流执行器,因为我需要一组“暂停时始终重定向”属性为false,另一组为true的流。我尝试过搜索、浏览Spring文档,但无法找到这种配置。任何人都可以分享这些配置和/或直接联系相关资源吗


谢谢

您可以在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
?我问主要是因为我也在努力学习这些东西。