Examples of FlowExecutionKey


Examples of org.springframework.webflow.execution.FlowExecutionKey

    FlowExecutionListener listener = new FlowExecutionListenerAdapter() {
    };
    factory.setExecutionListenerLoader(new StaticFlowExecutionListenerLoader(listener));
    MockFlowExecutionKeyFactory keyFactory = new MockFlowExecutionKeyFactory();
    factory.setExecutionKeyFactory(keyFactory);
    FlowExecutionKey flowExecutionKey = new MockFlowExecutionKey("e1s1");
    LocalAttributeMap<Object> conversationScope = new LocalAttributeMap<Object>();
    SimpleFlowDefinitionLocator locator = new SimpleFlowDefinitionLocator();
    FlowSessionImpl session1 = new FlowSessionImpl();
    session1.setFlowId("flow");
    session1.setStateId("end");
View Full Code Here

Examples of org.springframework.webflow.execution.FlowExecutionKey

    executionFactory.setExecutionKeyFactory(repository);
  }

  public void testParseFlowExecutionKey() {
    String key = "e12345s54321";
    FlowExecutionKey k = repository.parseFlowExecutionKey(key);
    assertEquals(key, k.toString());
  }
View Full Code Here

Examples of org.springframework.webflow.execution.FlowExecutionKey

      assertNotNull(e.getFormat());
    }
  }

  public void testGetLock() {
    FlowExecutionKey key = repository.parseFlowExecutionKey("e12345s54321");
    FlowExecutionLock lock = repository.getLock(key);
    assertNotNull(lock);
    lock.unlock();
  }
View Full Code Here

Examples of org.springframework.webflow.execution.FlowExecutionKey

    assertNotNull(lock);
    lock.unlock();
  }

  public void testGetLockNoSuchFlowExecution() {
    FlowExecutionKey key = repository.parseFlowExecutionKey("e99999s54321");
    try {
      repository.getLock(key);
      fail("should have failed");
    } catch (NoSuchFlowExecutionException e) {
      e.printStackTrace();
View Full Code Here

Examples of org.springframework.webflow.execution.FlowExecutionKey

    FlowExecution execution = executionFactory.createFlowExecution(flow);
    execution.start(null, new MockExternalContext());
    assertNotNull(execution.getKey());
    repository.putFlowExecution(execution);
    String key = execution.getKey().toString();
    FlowExecutionKey parsedKey = repository.parseFlowExecutionKey(key);
    FlowExecution execution2 = repository.getFlowExecution(parsedKey);
    assertSame(execution.getDefinition(), execution2.getDefinition());
    assertEquals(execution.getActiveSession().getState().getId(), execution2.getActiveSession().getState().getId());
  }
View Full Code Here

Examples of org.springframework.webflow.execution.FlowExecutionKey

    FlowExecution execution = executionFactory.createFlowExecution(flow);
    execution.start(null, new MockExternalContext());
    assertNotNull(execution.getKey());
    repository.putFlowExecution(execution);
    String key = execution.getKey().toString();
    FlowExecutionKey parsedKey = repository.parseFlowExecutionKey(key);
    FlowExecution execution2 = repository.getFlowExecution(parsedKey);
    assertSame(execution.getDefinition(), execution2.getDefinition());
    assertEquals(execution.getActiveSession().getState().getId(), execution2.getActiveSession().getState().getId());
    MockExternalContext context = new MockExternalContext();
    context.setEventId("foo");
View Full Code Here

Examples of org.springframework.webflow.execution.FlowExecutionKey

  public void putFlowExecution(FlowExecution flowExecution) {
    assertKeySet(flowExecution);
    if (logger.isDebugEnabled()) {
      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));
View Full Code Here

Examples of org.springframework.webflow.execution.FlowExecutionKey

  }

  // implementing flow execution key factory

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

Examples of org.springframework.webflow.execution.FlowExecutionKey

    Conversation conversation = getConversation(key);
    getSnapshotGroup(conversation).updateSnapshot(getSnapshotId(key), snapshot(execution));
  }

  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

Examples of org.springframework.webflow.execution.FlowExecutionKey

    Conversation conversation = getConversation(key);
    getSnapshotGroup(conversation).removeSnapshot(getSnapshotId(key));
  }

  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
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.