Package org.springframework.webflow.definition

Examples of org.springframework.webflow.definition.TransitionDefinition


    FlowSessionImpl session = getActiveSessionInternal();
    if (session == null) {
      return null;
    }
    TransitionableState currentState = (TransitionableState) session.getState();
    TransitionDefinition transition = currentState.getTransition(eventId);
    if (transition == null) {
      transition = session.getFlow().getGlobalTransition(eventId);
    }
    return transition;
  }
View Full Code Here


    Object model = getModelObject();
    if (model != null) {
      if (logger.isDebugEnabled()) {
        logger.debug("Resolved model " + model);
      }
      TransitionDefinition transition = requestContext.getMatchingTransition(eventId);
      if (shouldBind(model, transition)) {
        mappingResults = bind(model);
        if (hasErrors(mappingResults)) {
          if (logger.isDebugEnabled()) {
            logger.debug("Model binding resulted in errors; adding error messages to context");
View Full Code Here

  private boolean shouldValidate(RequestContext requestContext, Object model, String eventId) {
    if (model == null) {
      return false;
    }
    TransitionDefinition transition = requestContext.getMatchingTransition(eventId);
    if (transition != null) {
      if (transition.getAttributes().contains("validate")) {
        return transition.getAttributes().getBoolean("validate");
      }
    }
    return true;
  }
View Full Code Here

TOP

Related Classes of org.springframework.webflow.definition.TransitionDefinition

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.