List of usage examples for org.springframework.statemachine.support StateMachineContextUtils getConversionService
public static ConversionService getConversionService(BeanFactory beanFactory)
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); }/* ww w .j av a2 s .c o m*/ if (evaluationContext == null) { if (beanFactory != null) { conversionService = StateMachineContextUtils.getConversionService(beanFactory); } evaluationContext = createStandardEvaluationContext(conversionService, beanFactory); } return evaluationContext; }