3 Replies Latest reply on Aug 27, 2007 12:08 PM by Jacob Orshalick

    destroying the entire conversation stack through annotation?

    Jacob Orshalick Apprentice

      There are situations where I would like to be able to destroy the entire conversation stack if a particular action occurs (say a user cancels everything during a nested conversation). I am currently accomplishing this through the following:

      private void endRootConversation() {
       Conversation conversation = Conversation.instance();
       while(conversation.isNested()) {

      Is is possible to end the root conversation through annotation, or is there potentially a better approach?

      It is of course possible to create my own annotation, say @EndRoot, but this seems like going around the framework. I would prefer to say something like @End(root=true). Maybe I'm just missing something...

      Thanks for any help you may be able to provide.