【问题标题】:How can we start the webflow based on some condition?我们如何根据某些条件启动 webflow?
【发布时间】:2016-03-29 03:20:11
【问题描述】:

我正在使用 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>

【问题讨论】:

    标签: spring spring-webflow


    【解决方案1】:

    你可以在你的流程中做这样的事情(这将是你的入口点):

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


    然后就用//hostAddress:8080/app/order?param1=something叫你流

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-01-28
      • 2015-08-24
      • 2016-05-27
      • 2021-10-10
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多