Spring在启动时升级

Spring在启动时升级,spring,upgrade,spring-webflow,Spring,Upgrade,Spring Webflow,我正在尝试使用SpringWebFlow2.3.2 我的传统web流类似于: <start-state id-ref="A" /> <action-state id="A"> <action bean="B" /> <transition on="success" to="T" /> </action-state> <action-state id="T"> ... </action-state

我正在尝试使用SpringWebFlow2.3.2

我的传统web流类似于:

<start-state id-ref="A" />
<action-state id="A">
    <action bean="B" />
    <transition on="success" to="T" />
</action-state>
<action-state id="T">
    ...
</action-state>

...
我为Spring Webflow 2.3.2编写的等效代码是:

<on-start>
    <evaluate expression="B" />
</on-start>
<action-state>
    <transition on="success" to="T" />
</action-state>
<action-state id="T">
    ...
</action-state>

...

显然,我缺少将初始评估与转换连接起来的字符串。如何将两者连接起来?

假设您的流程从一个表单开始

表格

<input type="hidden" name="_flowExecutionKey" value="${flowExecutionKey}" />
<input type="hidden" name="_eventId" value="send" /> //This starts the flow

//这就启动了流程
Flow.xml

<view-state  id="showForm" model="formModel">
    <transition on="send" to="send2"></transition>
</view-state>
<action-state id="send2">
    <evaluate expression="..."></evaluate>
    <transition to="send3"></transition>
</action-state>
<view-state id="send3">
</view-state>

根据@M.Deinum的评论,我意识到Spring升级不会影响应用程序中Spring webflow的使用。最终起作用的新webflow是:

<action-state id="A">
    <evaluate expression="B" />
    <transition on="success" to="T" />
</action-state>
<action-state id="T">
    ...
</action-state>

...

所需的只是将
替换为
,并向

添加一个id为什么spring升级会影响您的web流?您正在升级Spring而不是SpringWebFlow。@M.Deinum实际上是的,我正在升级SpringWebFlow。Spring2.x是作为一个单独的模块出现的,但是在3.x中,它在组件方面是可用的。那么你的问题是不对的,它与Spring升级无关,只与web流升级有关。这是不同的,请解释从哪个网络流量版本升级。你仍然没有任何意义。。。从Spring2.5.6升级到WebFlow2.3.2这两件事互不相关。我也不明白为什么你需要修改你的流,它们应该仍然有效。不,这仍然没有意义,你要么有网络流,否则网络流将是非常无用的。因此,您正在升级SpringWebFlow,如果它只是一个spring升级,您不需要做任何更改。感谢您的解释,但是Spring2.x中的webflow已经给出。我所需要做的就是在Spring3.x中编写相应的代码。您的Spring升级与web流无关。甚至没有一个sprigwebflow3。基本上,你的问题和评论令人困惑。