Package org.springframework.webflow.conversation

Examples of org.springframework.webflow.conversation.Conversation


  public void removeFlowExecutionSnapshot(FlowExecution execution) {
    FlowExecutionKey key = execution.getKey();
    if (key == null) {
      return;
    }
    Conversation conversation = getConversation(key);
    getSnapshotGroup(conversation).removeSnapshot(getSnapshotId(key));
  }
View Full Code Here


  public void removeAllFlowExecutionSnapshots(FlowExecution execution) {
    FlowExecutionKey key = execution.getKey();
    if (key == null) {
      return;
    }
    Conversation conversation = getConversation(execution.getKey());
    getSnapshotGroup(conversation).removeAllSnapshots();
  }
View Full Code Here

  // implementing flow execution key factory

  public FlowExecutionKey getKey(FlowExecution execution) {
    CompositeFlowExecutionKey key = (CompositeFlowExecutionKey) execution.getKey();
    if (key == null) {
      Conversation conversation = beginConversation(execution);
      ConversationId executionId = conversation.getId();
      return new CompositeFlowExecutionKey(executionId, nextSnapshotId(executionId));
    } else {
      if (alwaysGenerateNewNextKey) {
        return new CompositeFlowExecutionKey(key.getExecutionId(), nextSnapshotId(key.getExecutionId()));
      } else {
View Full Code Here

  // internal helpers

  private Conversation beginConversation(FlowExecution execution) {
    ConversationParameters parameters = createConversationParameters(execution);
    Conversation conversation = conversationManager.beginConversation(parameters);
    return conversation;
  }
View Full Code Here

      throw new BadlyFormattedFlowExecutionKeyException(encodedKey, CompositeFlowExecutionKey.getFormat(), e);
    }
  }

  private Conversation endConversation(FlowExecution flowExecution) {
    Conversation conversation = getConversation(flowExecution.getKey());
    conversation.end();
    return conversation;
  }
View Full Code Here

TOP

Related Classes of org.springframework.webflow.conversation.Conversation

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.