Spring WebFlow フローによるグローバル例外処理。
私はSpring Webflowプロジェクトで作業していますが、誰かがフローにある種のグローバル例外処理を追加する方法を知っているかどうか知りたいので、Java呼び出しのいずれかが例をスローすると、キャッチして同じエラーシステムに持ち込まれますフルシステム用?
私の古いフローは問題なく機能しました:
<var name="member" class="xxxx" />
<decision-state id="checkIsInPending">
<if test="flowControllerActions.isInPending(member)" then="endStateMemberPending" else="name" />
</decision-state>
グローバルを追加すると、エラーが発生し始めました。
<var name="member" class="xxxxx" />
<global-transitions>
<transition on-exception="java.lang.Exception"
to="SystemException" />
</global-transitions>
<decision-state id="checkIsInPending">
<if test="flowControllerActions.isInPending(member)" then="endStateMemberPending" else="name" />
</decision-state>
これが私のエラーです:
org.xml.sax.SAXParseException; lineNumber: 29; columnNumber: 40; cvc-complex-type.2.4.a: Invalid content was found starting with element 'decision-state'. One of '{"http://www.springframework.org/schema/webflow":on-end, "http://www.springframework.org/schema/webflow":output, "http://www.springframework.org/schema/webflow":exception-handler, "http://www.springframework.org/schema/webflow":bean-import}' is expected.