use of org.springframework.binding.expression.ParserContext in project cas by apereo.
the class AbstractCasWebflowConfigurer method createEvaluateAction.
@Override
public EvaluateAction createEvaluateAction(final String expression) {
if (this.flowBuilderServices == null) {
LOGGER.error("Flow builder services is not configured correctly.");
return null;
}
final ParserContext ctx = new FluentParserContext();
final Expression action = this.flowBuilderServices.getExpressionParser().parseExpression(expression, ctx);
final EvaluateAction newAction = new EvaluateAction(action, null);
LOGGER.debug("Created evaluate action for expression [[{}]]", action.getExpressionString());
return newAction;
}
Aggregations