Class DefaultTransitionCriteria

java.lang.Object
org.springframework.webflow.engine.support.DefaultTransitionCriteria
All Implemented Interfaces:
TransitionCriteria

public class DefaultTransitionCriteria extends Object implements TransitionCriteria
Transition criteria that tests the value of an expression. The expression is used to express a condition that guards transition execution in a web flow. Expressions will be evaluated against the request context. Boolean, string, and custom TransitonCriteria evaluation results are supported.
Author:
Keith Donald, Erwin Vervaet
  • Constructor Details

    • DefaultTransitionCriteria

      public DefaultTransitionCriteria(Expression expression)
      Create a new expression based transition criteria object.
      Parameters:
      expression - the expression evaluator testing the criteria
  • Method Details

    • test

      public boolean test(RequestContext context)
      Description copied from interface: TransitionCriteria
      Check if the transition should fire based on the given flow execution request context.
      Specified by:
      test in interface TransitionCriteria
      Parameters:
      context - the flow execution request context
      Returns:
      true if the transition should fire, false otherwise
    • toString

      public String toString()
      Overrides:
      toString in class Object