This content has been marked as final.
Show 2 replies
-
1. Re: one method ending conversation or not
pmuir Oct 12, 2006 4:07 AM (in response to codelion)Your idea won't work as calls to this.method() aren't intercepted. Look at @End(ifOutcome="").
-
2. Re: one method ending conversation or not
denis-karpov Oct 12, 2006 11:49 AM (in response to codelion)There are two approaches.
First, if you use Page Flows, then you can make decision node where you decide what is next...... <page name="yourPage" view-id="/qqq/eee.xhtml"> <redirect/> <transition name="aaaa" to="check"> <action expression="#{yourController.doSomething}"/> </transition> </page> <decision name="check" expression="#{yourController.conditionOfEnd}"> <transition name="true" to="end"> <action expression="#{yourController.done}"/> </transition> <transition name="false" to="yourPage"/> </decision> .....
Second, you can end your conversation explicitly from the code.Conversation.instance().end();