Examples of MutableAttributeMap


Examples of org.springframework.webflow.core.collection.MutableAttributeMap

    }
    boolean popup = false;
    if (StringUtils.hasText(state.getPopup())) {
      popup = ((Boolean) fromStringTo(Boolean.class).execute(state.getPopup())).booleanValue();
    }
    MutableAttributeMap attributes = parseMetaAttributes(state.getAttributes());
    if (state.getModel() != null) {
      attributes.put("model", getLocalContext().getExpressionParser().parseExpression(state.getModel(),
          new FluentParserContext().evaluate(RequestContext.class)));
    }
    parseAndPutSecured(state.getSecured(), attributes);
    getLocalContext().getFlowArtifactFactory().createViewState(state.getId(), flow,
        parseViewVariables(state.getVars()), parseActions(state.getOnEntryActions()), viewFactory, redirect,
View Full Code Here

Examples of org.springframework.webflow.core.collection.MutableAttributeMap

        parseExceptionHandlers(state.getExceptionHandlers(), state.getTransitions()),
        parseActions(state.getOnExitActions()), attributes);
  }

  private void parseAndAddActionState(ActionStateModel state, Flow flow) {
    MutableAttributeMap attributes = parseMetaAttributes(state.getAttributes());
    parseAndPutSecured(state.getSecured(), attributes);
    getLocalContext().getFlowArtifactFactory().createActionState(state.getId(), flow,
        parseActions(state.getOnEntryActions()), parseActions(state.getActions()),
        parseTransitions(state.getTransitions()),
        parseExceptionHandlers(state.getExceptionHandlers(), state.getTransitions()),
View Full Code Here

Examples of org.springframework.webflow.core.collection.MutableAttributeMap

        parseExceptionHandlers(state.getExceptionHandlers(), state.getTransitions()),
        parseActions(state.getOnExitActions()), attributes);
  }

  private void parseAndAddDecisionState(DecisionStateModel state, Flow flow) {
    MutableAttributeMap attributes = parseMetaAttributes(state.getAttributes());
    parseAndPutSecured(state.getSecured(), attributes);
    getLocalContext().getFlowArtifactFactory().createDecisionState(state.getId(), flow,
        parseActions(state.getOnEntryActions()), parseIfs(state.getIfs()),
        parseExceptionHandlers(state.getExceptionHandlers(), null), parseActions(state.getOnExitActions()),
        attributes);
View Full Code Here

Examples of org.springframework.webflow.core.collection.MutableAttributeMap

        parseExceptionHandlers(state.getExceptionHandlers(), null), parseActions(state.getOnExitActions()),
        attributes);
  }

  private void parseAndAddSubflowState(SubflowStateModel state, Flow flow) {
    MutableAttributeMap attributes = parseMetaAttributes(state.getAttributes());
    parseAndPutSecured(state.getSecured(), attributes);
    getLocalContext().getFlowArtifactFactory().createSubflowState(state.getId(), flow,
        parseActions(state.getOnEntryActions()), parseSubflowExpression(state.getSubflow()),
        parseSubflowAttributeMapper(state), parseTransitions(state.getTransitions()),
        parseExceptionHandlers(state.getExceptionHandlers(), state.getTransitions()),
View Full Code Here

Examples of org.springframework.webflow.core.collection.MutableAttributeMap

        parseExceptionHandlers(state.getExceptionHandlers(), state.getTransitions()),
        parseActions(state.getOnExitActions()), attributes);
  }

  private void parseAndAddEndState(EndStateModel state, Flow flow) {
    MutableAttributeMap attributes = parseMetaAttributes(state.getAttributes());
    if (StringUtils.hasText(state.getCommit())) {
      attributes.put("commit", fromStringTo(Boolean.class).execute(state.getCommit()));
    }
    parseAndPutSecured(state.getSecured(), attributes);
    Action finalResponseAction;
    ViewFactory viewFactory = parseViewFactory(state.getView(), state.getId(), true, null);
    if (viewFactory != null) {
View Full Code Here

Examples of org.springframework.webflow.core.collection.MutableAttributeMap

        transition.getOn());
    TargetStateResolver stateResolver = (TargetStateResolver) fromStringTo(TargetStateResolver.class).execute(
        transition.getTo());
    TransitionCriteria executionCriteria = TransitionCriteriaChain.criteriaChainFor(parseActions(transition
        .getActions()));
    MutableAttributeMap attributes = parseMetaAttributes(transition.getAttributes());
    if (StringUtils.hasText(transition.getBind())) {
      attributes.put("bind", fromStringTo(Boolean.class).execute(transition.getBind()));
    }
    if (StringUtils.hasText(transition.getValidate())) {
      attributes.put("validate", fromStringTo(Boolean.class).execute(transition.getValidate()));
    }
    if (StringUtils.hasText(transition.getHistory())) {
      attributes.put("history", fromStringTo(History.class).execute(transition.getHistory()));
    }
    parseAndPutSecured(transition.getSecured(), attributes);
    return getLocalContext().getFlowArtifactFactory().createTransition(stateResolver, matchingCriteria,
        executionCriteria, attributes);
  }
View Full Code Here

Examples of org.springframework.webflow.core.collection.MutableAttributeMap

        return flowctx.getFlowExecutionUrl();
      } else if ("externalContext".equals(name)) {
        return flowctx.getExternalContext();
      }
      //check requestScope
      final MutableAttributeMap requestScope = flowctx.getRequestScope();
      if (requestScope.contains(name)) {
        return requestScope.get(name);
      }
      //check flashScope
      final MutableAttributeMap flashScope = flowctx.getFlashScope();
      if (flashScope.contains(name)) {
        return flashScope.get(name);
      }
      //check viewScope
      final MutableAttributeMap viewScope = flowctx.getViewScope();
      if (viewScope.contains(name)) {
        return viewScope.get(name);
      }
      //check flowScope
      final MutableAttributeMap flowScope = flowctx.getFlowScope();
      if (flowScope.contains(name)) {
        return flowScope.get(name);
      }
      //check conversationScope
      final MutableAttributeMap conversationScope = flowctx.getConversationScope();
      if (conversationScope.contains(name)) {
        return conversationScope.get(name);
      }
    }
    return null;
  }
View Full Code Here

Examples of org.springframework.webflow.core.collection.MutableAttributeMap

      defaultHandleExecutionOutcome(outcome, flowHandler, request, response);
    }
  }

  private ModelAndView startFlow(FlowHandler flowHandler, RenderRequest request, RenderResponse response) {
    MutableAttributeMap input = flowHandler.createExecutionInputMap(request);
    if (input == null) {
      input = defaultCreateFlowExecutionInputMap(request);
    }
    return startFlow(flowHandler, input, request, response);
  }
View Full Code Here

Examples of org.springframework.webflow.core.collection.MutableAttributeMap

        handleFlowException(e, request, response, flowHandler);
      }
    } else {
      try {
        String flowId = getFlowId(flowHandler, request);
        MutableAttributeMap input = getInputMap(flowHandler, request);
        ServletExternalContext context = createServletExternalContext(request, response);
        FlowExecutionResult result = flowExecutor.launchExecution(flowId, input, context);
        handleFlowExecutionResult(result, context, request, response, flowHandler);
      } catch (FlowException e) {
        handleFlowException(e, request, response, flowHandler);
View Full Code Here

Examples of org.springframework.webflow.core.collection.MutableAttributeMap

  }

  private void sendFlowDefinitionRedirect(FlowExecutionResult result, ServletExternalContext context,
      HttpServletRequest request, HttpServletResponse response) throws IOException {
    String flowId = context.getFlowRedirectFlowId();
    MutableAttributeMap input = context.getFlowRedirectFlowInput();
    if (result.isPaused()) {
      input.put("refererExecution", result.getPausedKey());
    }
    String url = flowUrlHandler.createFlowDefinitionUrl(flowId, input, request);
    if (logger.isDebugEnabled()) {
      logger.debug("Sending flow definition redirect to '" + url + "'");
    }
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.