Example usage for org.springframework.statemachine.support StateMachineContextUtils getEvaluationContext

List of usage examples for org.springframework.statemachine.support StateMachineContextUtils getEvaluationContext

Introduction

In this page you can find the example usage for org.springframework.statemachine.support StateMachineContextUtils getEvaluationContext.

Prototype

public static StandardEvaluationContext getEvaluationContext(BeanFactory beanFactory) 

Source Link

Document

Return the StandardEvaluationContext bean whose name is "yarnEvaluationContext" if available.

Usage

From source file:org.springframework.statemachine.support.ExpressionUtils.java

private static StandardEvaluationContext doCreateContext(BeanFactory beanFactory) {
    ConversionService conversionService = null;
    StandardEvaluationContext evaluationContext = null;
    if (beanFactory != null) {
        evaluationContext = StateMachineContextUtils.getEvaluationContext(beanFactory);
    }//w  ww . j  a v  a2 s . co m
    if (evaluationContext == null) {
        if (beanFactory != null) {
            conversionService = StateMachineContextUtils.getConversionService(beanFactory);
        }
        evaluationContext = createStandardEvaluationContext(conversionService, beanFactory);
    }
    return evaluationContext;
}