Class StateContextExpressionMethods

java.lang.Object
org.springframework.statemachine.support.StateContextExpressionMethods

public class StateContextExpressionMethods extends Object
Helper class to work with a spel expressions and StateContext.
  • Constructor Details

    • StateContextExpressionMethods

      public StateContextExpressionMethods(org.springframework.expression.spel.support.StandardEvaluationContext evaluationContext)
      Instantiates a new state context expression methods with a StandardEvaluationContext.
      Parameters:
      evaluationContext - the spel evaluation context
  • Method Details

    • getValue

      public <T> T getValue(org.springframework.expression.Expression expression, StateContext<?,?> stateContext, Class<T> desiredResultType) throws org.springframework.expression.EvaluationException
      Gets the value.
      Type Parameters:
      T - the generic type
      Parameters:
      expression - the expression
      stateContext - the state context
      desiredResultType - the desired result type
      Returns:
      the value
      Throws:
      org.springframework.expression.EvaluationException - the evaluation exception