Examples of FlowSession


Examples of org.springframework.webflow.execution.FlowSession

    this.entityInterceptor = entityInterceptor;
  }

  public void sessionStarting(RequestContext context, FlowSession session, MutableAttributeMap input) {
    if (!session.isRoot()) {
      FlowSession parent = session.getParent();
      if (isPersistenceContext(parent.getDefinition())) {
        unbind(getHibernateSession(parent));
      }
    }
    if (isPersistenceContext(session.getDefinition())) {
      Session hibernateSession = createSession(context);
View Full Code Here

Examples of org.springframework.webflow.execution.FlowSession

      }
      unbind(hibernateSession);
      hibernateSession.close();
    }
    if (!session.isRoot()) {
      FlowSession parent = session.getParent();
      if (isPersistenceContext(parent.getDefinition())) {
        bind(getHibernateSession(parent));
      }
    }
  }
View Full Code Here

Examples of org.springframework.webflow.execution.FlowSession

   * @param context the control context for the currently executing flow, used by this state to manipulate the flow
   * execution
   * @throws FlowExecutionException if an exception occurs in this state
   */
  protected void doEnter(final RequestControlContext context) throws FlowExecutionException {
    FlowSession activeSession = context.getFlowExecutionContext().getActiveSession();
    if (activeSession.isRoot()) {
      // entire flow execution is ending; issue the final response
      if (finalResponseAction != null && !context.getExternalContext().isResponseComplete()) {
        ActionExecutor.execute(finalResponseAction, context);
        context.getExternalContext().recordResponseComplete();
      }
View Full Code Here

Examples of org.springframework.webflow.execution.FlowSession

    getFlashScope().put("messagesMemento", messagesMemento);
  }

  private FlowExecutionException wrap(Exception e) {
    if (isActive()) {
      FlowSession session = getActiveSession();
      String flowId = session.getDefinition().getId();
      String stateId = session.getState() != null ? session.getState().getId() : null;
      return new FlowExecutionException(flowId, stateId, "Exception thrown in state '" + stateId + "' of flow '"
          + flowId + "'", e);
    } else {
      return new FlowExecutionException(flow.getId(), null, "Exception thrown within inactive flow '"
          + flow.getId() + "'", e);
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.