【发布时间】:2013-04-12 12:59:23
【问题描述】:
我正在尝试在 SWF 中实现一个动作,但即使在最简单的示例中我也会遇到同样的错误。
错误:“java.lang.IllegalStateException:未执行任何操作,因此我无法执行任何状态转换”
import org.springframework.webflow.execution.Action;
import org.springframework.webflow.execution.Event;
import org.springframework.webflow.execution.RequestContext;
public class HelloAction implements Action {
@Override
public Event execute(RequestContext rc) throws Exception {
return new Event(this, "success");
}
我已经声明了 bean。
<bean id="helloAction" class="app.action.HelloAction"/>
在 flow.xml..
<action-state id="intermedio">
<action bean="helloAction"/>
<transition on="success" to="fin"/>
</action-state>
<end-state id="fin" view="final" />
如果我不使用“HelloAction”,它可以正常工作。但是如果我想在 SWF 中使用 Action,我总是会得到以前的错误。
还需要什么吗?
提前致谢。
【问题讨论】:
标签: spring-webflow