Examples of FlowExecutionSnapshot


Examples of org.springframework.webflow.execution.repository.snapshot.FlowExecutionSnapshot

  public FlowExecution getFlowExecution(FlowExecutionKey key) {
    if (logger.isDebugEnabled()) {
      logger.debug("Getting flow execution with key '" + key + "'");
    }
    Conversation conversation = getConversation(key);
    FlowExecutionSnapshot snapshot;
    try {
      snapshot = getSnapshotGroup(conversation).getSnapshot(getSnapshotId(key));
    } catch (SnapshotNotFoundException e) {
      throw new FlowExecutionRestorationFailureException(key, e);
    }
View Full Code Here

Examples of org.springframework.webflow.execution.repository.snapshot.FlowExecutionSnapshot

      logger.debug("Putting flow execution '" + flowExecution + "' into repository");
    }
    FlowExecutionKey key = flowExecution.getKey();
    Conversation conversation = getConversation(key);
    FlowExecutionSnapshotGroup snapshotGroup = getSnapshotGroup(conversation);
    FlowExecutionSnapshot snapshot = snapshot(flowExecution);
    if (logger.isDebugEnabled()) {
      logger.debug("Adding new snapshot to group with id " + getSnapshotId(key));
    }
    snapshotGroup.addSnapshot(getSnapshotId(key), snapshot);
    putConversationScope(flowExecution, conversation);
View Full Code Here

Examples of org.springframework.webflow.execution.repository.snapshot.FlowExecutionSnapshot

  public void setMaxSnapshots(int maxSnapshots) {
    this.maxSnapshots = maxSnapshots;
  }

  public FlowExecutionSnapshot getSnapshot(Serializable snapshotId) throws SnapshotNotFoundException {
    FlowExecutionSnapshot snapshot = (FlowExecutionSnapshot) snapshots.get(snapshotId);
    if (snapshot == null) {
      throw new SnapshotNotFoundException(snapshotId);
    }
    return snapshot;
  }
View Full Code Here

Examples of org.springframework.webflow.execution.repository.snapshot.FlowExecutionSnapshot

  public FlowExecution getFlowExecution(FlowExecutionKey key) {
    if (logger.isDebugEnabled()) {
      logger.debug("Getting flow execution with key '" + key + "'");
    }
    Conversation conversation = getConversation(key);
    FlowExecutionSnapshot snapshot;
    try {
      snapshot = getSnapshotGroup(conversation).getSnapshot(getSnapshotId(key));
    } catch (SnapshotNotFoundException e) {
      throw new FlowExecutionRestorationFailureException(key, e);
    }
View Full Code Here

Examples of org.springframework.webflow.execution.repository.snapshot.FlowExecutionSnapshot

      logger.debug("Putting flow execution '" + flowExecution + "' into repository");
    }
    FlowExecutionKey key = flowExecution.getKey();
    Conversation conversation = getConversation(key);
    FlowExecutionSnapshotGroup snapshotGroup = getSnapshotGroup(conversation);
    FlowExecutionSnapshot snapshot = snapshot(flowExecution);
    if (logger.isDebugEnabled()) {
      logger.debug("Adding snapshot to group with id " + getSnapshotId(key));
    }
    snapshotGroup.addSnapshot(getSnapshotId(key), snapshot);
    putConversationScope(flowExecution, conversation);
View Full Code Here

Examples of org.springframework.webflow.execution.repository.snapshot.FlowExecutionSnapshot

  public void setMaxSnapshots(int maxSnapshots) {
    this.maxSnapshots = maxSnapshots;
  }

  public FlowExecutionSnapshot getSnapshot(Serializable snapshotId) throws SnapshotNotFoundException {
    FlowExecutionSnapshot snapshot = snapshots.get(snapshotId);
    if (snapshot == null) {
      throw new SnapshotNotFoundException(snapshotId);
    }
    return snapshot;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.