0

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 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 でアクションを使用したい場合は、常に前のエラーが発生します。

他に何か必要ですか?

前もって感謝します。

4

1 に答える 1

0
<action-state id="intermedio">
    <evaluate expression="helloAction.execute()">
    <transition on="success" to="fin"/>
</action-state>
于 2013-04-12T04:59:23.180 に答える