Tabnine Logo
org.springframework.webflow.engine
Code IndexAdd Tabnine to your IDE (free)

How to use org.springframework.webflow.engine

Best Java code snippets using org.springframework.webflow.engine (Showing top 20 results out of 315)

origin: org.springframework.webflow/spring-webflow

public void exit(RequestControlContext context) {
  super.exit(context);
  updateHistory(context);
  destroyVariables(context);
  context.setCurrentView(null);
}
origin: org.springframework.webflow/spring-webflow

/**
 * Handle an exception that occurred during an execution of this flow.
 * @param exception the exception that occurred
 * @param context the flow execution control context
 */
public boolean handleException(FlowExecutionException exception, RequestControlContext context)
    throws FlowExecutionException {
  return getExceptionHandlerSet().handleException(exception, context);
}
origin: org.springframework.webflow/spring-webflow

/**
 * Handle an exception that occurred in this state during the context of the current flow execution request.
 * @param exception the exception that occurred
 * @param context the flow execution control context
 */
public boolean handleException(FlowExecutionException exception, RequestControlContext context) {
  return getExceptionHandlerSet().handleException(exception, context);
}
origin: org.springframework.webflow/spring-webflow

/**
 * Configure common properties for a transitionable state.
 */
private void configureCommonProperties(TransitionableState state, Action[] entryActions, Transition[] transitions,
    FlowExecutionExceptionHandler[] exceptionHandlers, Action[] exitActions, AttributeMap<?> attributes) {
  configureCommonProperties(state, entryActions, exceptionHandlers, attributes);
  state.getTransitionSet().addAll(transitions);
  state.getExitActionList().addAll(exitActions);
}
origin: org.springframework.webflow/spring-webflow

  /**
   * Configure common properties for a state.
   */
  private void configureCommonProperties(State state, Action[] entryActions,
      FlowExecutionExceptionHandler[] exceptionHandlers, AttributeMap<?> attributes) {
    state.getEntryActionList().addAll(entryActions);
    state.getExceptionHandlerSet().addAll(exceptionHandlers);
    state.getAttributes().putAll(attributes);
  }
}
origin: org.springframework.webflow/spring-webflow

  /**
   * Creates a new exception.
   * @param state the action state
   * @param resultEvent the action result event
   */
  public NoMatchingActionResultTransitionException(ActionState state, Event resultEvent) {
    super(state.getFlow().getId(), state.getId(), resultEvent,
        "Cannot find a transition matching an action result event; continuing with next action...");
  }
}
origin: org.springframework.webflow/spring-webflow

public Transition getRequiredTransition(RequestContext context) throws NoMatchingTransitionException {
  Transition transition = getTransitionSet().getTransition(context);
  if (transition == null) {
    throw new NoMatchingActionResultTransitionException(this, context.getCurrentEvent());
  }
  return transition;
}
origin: org.springframework.webflow/spring-webflow

/**
 * Set the start state for this flow to the state with the provided <code>stateId</code>; a state must exist by the
 * provided <code>stateId</code>.
 * @param stateId the id of the new start state
 * @throws IllegalArgumentException when no state exists with the id you provided
 */
public void setStartState(String stateId) throws IllegalArgumentException {
  setStartState(getStateInstance(stateId));
}
origin: org.springframework.webflow/spring-webflow

public TransitionDefinition[] getTransitions() {
  return getTransitionSet().toArray();
}
origin: org.springframework.webflow/spring-webflow

/**
 * Convenience accessor that returns an ordered array of the String <code>ids</code> for the state definitions
 * associated with this flow definition.
 * @return the state ids
 */
public String[] getStateIds() {
  String[] stateIds = new String[getStateCount()];
  int i = 0;
  for (State state : states) {
    stateIds[i++] = state.getId();
  }
  return stateIds;
}
origin: org.springframework.webflow/spring-webflow

/**
 * Resume a paused session for this flow in its current view state.
 * @param context the flow execution control context
 * @throws FlowExecutionException when an exception occurs during the resume operation
 */
public void resume(RequestControlContext context) throws FlowExecutionException {
  restoreVariables(context);
  getCurrentViewState(context).resume(context);
}
origin: org.springframework.webflow/spring-webflow

/**
 * Returns the de-serialized id indicating the flow id of this session.
 */
String getFlowId() {
  if (flow == null) {
    return flowId;
  } else {
    return flow.getId();
  }
}
origin: org.springframework.webflow/spring-webflow

/**
 * Inform this state definition that an event was signaled in it. The signaled event is the last event available in
 * given request context ({@link RequestContext#getCurrentEvent()}).
 * @param context the flow execution control context
 * @throws NoMatchingTransitionException when a matching transition cannot be found
 */
public boolean handleEvent(RequestControlContext context) throws NoMatchingTransitionException {
  return context.execute(getRequiredTransition(context));
}
origin: org.springframework.webflow/spring-webflow

  /**
   * Specialization of State's <code>doEnter</code> template method that executes behavior specific to this state type
   * in polymorphic fashion.
   * <p>
   * Simply looks up the first transition that matches the state of the context and executes it.
   * @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(RequestControlContext context) throws FlowExecutionException {
    getRequiredTransition(context).execute(this, context);
  }
}
origin: org.springframework.webflow/spring-webflow

/**
 * Adds flow variables.
 * @param variables the variables
 */
public void addVariables(FlowVariable... variables) {
  if (variables == null) {
    return;
  }
  for (FlowVariable variable : variables) {
    addVariable(variable);
  }
}
origin: org.springframework.webflow/spring-webflow

/**
 * Returns whether or not this list has a transition that will fire for given flow execution request context.
 * @param context a flow execution context
 */
public boolean hasMatchingTransition(RequestContext context) {
  return getTransition(context) != null;
}
origin: org.springframework.webflow/spring-webflow

/**
 * Checks if this transition is eligible for execution given the state of the provided flow execution request
 * context.
 * @param context the flow execution request context
 * @return true if this transition should execute, false otherwise
 */
public boolean matches(RequestContext context) {
  return matchingCriteria.test(context);
}
origin: org.springframework.webflow/spring-webflow

/**
 * Create a new subflow state.
 * @param flow the owning flow
 * @param id the state identifier (must be unique to the flow)
 * @param subflow the subflow to spawn
 * @throws IllegalArgumentException when this state cannot be added to given flow, e.g. because the id is not unique
 * @see #setAttributeMapper(SubflowAttributeMapper)
 */
public SubflowState(Flow flow, String id, Expression subflow) throws IllegalArgumentException {
  super(flow, id);
  setSubflow(subflow);
}
origin: org.springframework.webflow/spring-webflow

/**
 * Adds a set of view variables.
 * @param variables the variables
 */
public void addVariables(ViewVariable... variables) {
  for (ViewVariable variable : variables) {
    addVariable(variable);
  }
}
origin: org.springframework.webflow/spring-webflow

/**
 * Exit this state. This is typically called when a transition takes the flow out of this state into another state.
 * By default just executes any registered exit actions.
 * @param context the flow control context
 */
public void exit(RequestControlContext context) {
  exitActionList.execute(context);
}
org.springframework.webflow.engine

Most used classes

  • ActionState
    A transitionable state that executes one or more actions when entered. When the action(s) are execut
  • Flow
    A single flow definition. A Flow definition is a reusable, self-contained controller module that pro
  • TransitionSet
    A typed set of transitions for use internally by artifacts that can apply transition execution logic
  • ActionList
    An ordered, typed list of actions, mainly for use internally by flow artifacts that can execute grou
  • TransitionableState
    Abstract superclass for states that can execute a transition in response to an event.
  • FlowBuilderServices,
  • Transition,
  • EndState,
  • FlowExecutionExceptionHandlerSet,
  • DecisionState,
  • SubflowState,
  • DefaultTargetStateResolver,
  • RequestControlContext,
  • State,
  • DefaultTransitionCriteria,
  • TransitionExecutingFlowExecutionExceptionHandler,
  • FlowVariable,
  • BinderConfiguration$Binding,
  • BinderConfiguration
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now