0

我正在使用 spring webflow 版本 2.2.1.RELEASE。下面是我的操作状态,当我将 URL 输入为 //hostAddress:8080/app/order 时,流程通过执行以下操作状态开始。我的问题是有什么方法可以将参数传递给这个动作状态?或者我们可以通过传递一个参数在单击某个按钮时调用以下动作状态。因为流程从下面的动作状态开始。

<action-state id="placeInitialize">
    <evaluate expression="orderActions.setupPlacePage"></evaluate>
    <transition on="error" to="home" />
    <transition on="success" to="estimate" />
</action-state>
4

1 回答 1

1

you can do something like this inside your flow (it will be your entry point):

<input name="param1" type="string" />

<decision-state id="isParamSet">
    <if test="param1 == null" then="estimate" else="error" />
</decision-state>


and then just call you flow with //hostAddress:8080/app/order?param1=something

于 2013-10-09T21:06:36.797 回答