org.springframework.webflow.engine.support
Class BooleanExpressionTransitionCriteria

java.lang.Object
  extended by org.springframework.webflow.engine.support.BooleanExpressionTransitionCriteria
All Implemented Interfaces:
TransitionCriteria

public class BooleanExpressionTransitionCriteria
extends java.lang.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 agains the request context and should return a boolean result.

Author:
Keith Donald, Erwin Vervaet

Constructor Summary
BooleanExpressionTransitionCriteria(org.springframework.binding.expression.Expression booleanExpression)
          Create a new expression based transition criteria object.
 
Method Summary
protected  org.springframework.binding.expression.EvaluationContext getEvaluationContext(RequestContext context)
          Setup a context with a few aliased values to make writing expression based transition conditions a bit easier.
 boolean test(RequestContext context)
          Check if the transition should fire based on the given flow execution request context.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BooleanExpressionTransitionCriteria

public BooleanExpressionTransitionCriteria(org.springframework.binding.expression.Expression booleanExpression)
Create a new expression based transition criteria object.

Parameters:
booleanExpression - the expression evaluator testing the criteria, this expression should be a condition that returns a Boolean value
Method Detail

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

getEvaluationContext

protected org.springframework.binding.expression.EvaluationContext getEvaluationContext(RequestContext context)
Setup a context with a few aliased values to make writing expression based transition conditions a bit easier.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2004-2007. All Rights Reserved.