/** * Start a nested conversation. * * @throws IllegalStateException if no long-running conversation was active */ public void beginNested() { if ( Manager.instance().isLongRunningConversation() ) { Manager.instance().beginNestedConversation( ); } else { throw new IllegalStateException("beginNested() called with no long-running conversation"); } }
private void beginConversation(boolean nested, String pageflowName) { if ( !Manager.instance().isLongRunningOrNestedConversation() ) { Manager.instance().beginConversation( ); beginNavigation(pageflowName); } else if (nested) { Manager.instance().beginNestedConversation(); beginNavigation(pageflowName); } }
if ( isLongRunningOrNestedConversation() ) beginNestedConversation();