Package org.springframework.webflow.execution

Examples of org.springframework.webflow.execution.FlowExecutionOutcome


    request.setParameters(parameters);
    flowExecutor.resumeExecution("12345", context);
    LocalAttributeMap<Object> output = new LocalAttributeMap<Object>();
    output.put("bar", "baz");
    context.recordResponseComplete();
    FlowExecutionOutcome outcome = new FlowExecutionOutcome("finish", output);
    FlowExecutionResult result = FlowExecutionResult.createEndedResult("foo", outcome);
    EasyMock.expectLastCall().andReturn(result);
    EasyMock.replay(new Object[] { flowExecutor });
    ModelAndView mv = flowHandlerAdapter.handle(request, response, flowHandler);
    assertNull(mv);
View Full Code Here


    input.put("baz", "boop");
    context.requestFlowDefinitionRedirect("bar", input);
    flowExecutor.launchExecution("foo", flowInput, context);
    LocalAttributeMap<Object> output = new LocalAttributeMap<Object>();
    output.put("bar", "baz");
    FlowExecutionOutcome outcome = new FlowExecutionOutcome("finish", output);
    FlowExecutionResult result = FlowExecutionResult.createEndedResult("foo", outcome);
    EasyMock.expectLastCall().andReturn(result);
    EasyMock.replay(new Object[] { flowExecutor });
    ModelAndView mv = flowHandlerAdapter.handle(request, response, flowHandler);
    assertNull(mv);
View Full Code Here

    handleExecutionOutcome = true;
    setupRequest("/springtravel", "/app", "/foo", "GET");
    flowExecutor.launchExecution("foo", flowInput, context);
    LocalAttributeMap<Object> output = new LocalAttributeMap<Object>();
    output.put("bar", "baz");
    FlowExecutionOutcome outcome = new FlowExecutionOutcome("finish", output);
    FlowExecutionResult result = FlowExecutionResult.createEndedResult("foo", outcome);
    EasyMock.expectLastCall().andReturn(result);
    EasyMock.replay(new Object[] { flowExecutor });
    flowHandlerAdapter.handle(request, response, flowHandler);
    EasyMock.verify(new Object[] { flowExecutor });
View Full Code Here

    request.setRequestURI("/springtravel/app/foo");
    request.setMethod("GET");
    executor.launchExecution("foo", null, context);
    LocalAttributeMap<Object> output = new LocalAttributeMap<Object>();
    output.put("bar", "baz");
    FlowExecutionOutcome outcome = new FlowExecutionOutcome("finish", output);
    FlowExecutionResult result = FlowExecutionResult.createEndedResult("foo", outcome);
    EasyMock.expectLastCall().andReturn(result);
    EasyMock.replay(new Object[] { executor });
    ModelAndView mv = controller.handleRequest(request, response);
    assertNull(mv);
View Full Code Here

    Map<String, String> parameters = new HashMap<String, String>();
    request.setParameters(parameters);
    executor.resumeExecution("12345", context);
    LocalAttributeMap<Object> output = new LocalAttributeMap<Object>();
    output.put("bar", "baz");
    FlowExecutionOutcome outcome = new FlowExecutionOutcome("finish", output);
    FlowExecutionResult result = FlowExecutionResult.createEndedResult("foo", outcome);
    EasyMock.expectLastCall().andReturn(result);
    EasyMock.replay(new Object[] { executor });
    ModelAndView mv = controller.handleRequest(request, response);
    assertNull(mv);
View Full Code Here

    input.put("baz", "boop");
    context.requestFlowDefinitionRedirect("bar", input);
    executor.launchExecution("foo", null, context);
    LocalAttributeMap<Object> output = new LocalAttributeMap<Object>();
    output.put("bar", "baz");
    FlowExecutionOutcome outcome = new FlowExecutionOutcome("finish", output);
    FlowExecutionResult result = FlowExecutionResult.createEndedResult("foo", outcome);
    EasyMock.expectLastCall().andReturn(result);
    EasyMock.replay(new Object[] { executor });
    ModelAndView mv = controller.handleRequest(request, response);
    assertNull(mv);
View Full Code Here

    request.setRequestURI("/springtravel/app/foo");
    request.setMethod("GET");
    executor.launchExecution("foo", input, context);
    LocalAttributeMap<Object> output = new LocalAttributeMap<Object>();
    output.put("bar", "baz");
    FlowExecutionOutcome outcome = new FlowExecutionOutcome("finish", output);
    FlowExecutionResult result = FlowExecutionResult.createEndedResult("foo", outcome);
    EasyMock.expectLastCall().andReturn(result);
    EasyMock.replay(new Object[] { executor });
    ModelAndView mv = controller.handleRequest(request, response);
    assertNull(mv);
View Full Code Here

    MutableAttributeMap<Object> map = new LocalAttributeMap<Object>();
    map.put("foo", "bar");
    map.put("number", "3");
    map.put("required", "9");
    execution.start(map, context);
    FlowExecutionOutcome outcome = execution.getOutcome();
    assertEquals("end", outcome.getId());
    assertEquals("bar", outcome.getOutput().get("foo"));
    assertEquals("bar", outcome.getOutput().get("differentName"));
    assertEquals(new Integer(3), outcome.getOutput().get("number"));
    assertEquals(new Integer(3), outcome.getOutput().get("required"));
    assertEquals("a literal", outcome.getOutput().get("literal"));
    assertNull(outcome.getOutput().get("notReached"));
  }
View Full Code Here

    session.getFlow().end(context, outcome, output);
    flowSessions.removeLast();
    boolean executionEnded = flowSessions.isEmpty();
    if (executionEnded) {
      // set the root flow execution outcome for external clients to use
      this.outcome = new FlowExecutionOutcome(outcome, output);
      status = FlowExecutionStatus.ENDED;
    }
    listeners.fireSessionEnded(context, session, outcome, output);
    if (!executionEnded) {
      // restore any variables that may have transient references
View Full Code Here

TOP

Related Classes of org.springframework.webflow.execution.FlowExecutionOutcome

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.