【发布时间】:2016-11-08 23:59:11
【问题描述】:
我对 webflow 操作状态有疑问。我想要的结构是: 如果...否则如果....否则如果.....否则
在我的行动状态(见下文),
- 我调用 getTestTypeName();
- 此方法返回一个字符串。可能有十个有效值 虽然目前只有两个。
- 但是,我也可能得到一个无效的字符串,这不是错误,而是 需要发送到指定的视图状态。
- 我该怎么做。目前,我收到一个错误
<action-state id="selectPostITSAction">
<evaluate expression="testEntranceViewService.getTestTypeName(flowScope.vwUser)" />
<transition on="ProgramChoiceTemplate" to="paymentGateway" />
<transition on="CPCFeedbackTemplate" to="report" >
<evaluate expression="testEntranceViewService.reactivateTestOnHold(vwUser, flowRequestContext)"
result="flowScope.vwUser" />
</transition>
<transition on="error" to="entry" />
</action-state>
“原型测试模板 1467832258812”是一个无效选项,但我无法使用 webflow 处理。我得到这个错误是
ExceptionNo 转换与在流 'flow-entry' 的此动作状态 'selectPostITSAction' 中执行的 [1] 动作发出信号的事件匹配;必须定义转换来处理动作结果——可能的流程配置错误?注意:发出信号的 eventIds 是:'array['Prototype Test Template1467832258812']',而此操作状态支持的过渡标准集是'array[ProgramChoiceTemplate, CPCFeedbackTemplate, error]'org.springframework.webflow.engine.NoMatchingTransitionException
【问题讨论】:
标签: spring-webflow