public ElExpression createExpression(String expression) { return new ProcessEngineElExpression(expressionManager.createValueExpression(expression)); }
public ElExpression createExpression(String expression) { return new ProcessEngineElExpression(expressionManager.createValueExpression(expression)); }
public Expression createExpression(String expression) { ValueExpression valueExpression = createValueExpression(expression); return new JuelExpression(valueExpression, this, expression); }
public Expression createExpression(String expression) { ValueExpression valueExpression = createValueExpression(expression); return new JuelExpression(valueExpression, this, expression); }
public Expression createExpression(String expression) { ValueExpression valueExpression = createValueExpression(expression); return new JuelExpression(valueExpression, this, expression); }
public ElExpression createExpression(String expression) { return new ProcessEngineElExpression(expressionManager.createValueExpression(expression)); }
synchronized public static Object evaluateJuelWithGenerator(String expression, ContentGenerator contentGenerator, VariableScope scope) { currentEvaluationWrapperClass = getWrapperClass(contentGenerator); try { if (cachedExpressionManager == null) { cachedExpressionManager = getExpressionManager(Context.getProcessEngineConfiguration()); } ELContext elContext = cachedExpressionManager.getElContext(scope == null ? new ExecutionEntity() : scope); ExpressionGetInvocation invocation = new ExpressionGetInvocation(cachedExpressionManager.createValueExpression(expression), elContext, null); invocation.proceed(); return invocation.getInvocationResult(); } catch (Exception e) { throw new RuntimeException("Could not evaluate JUEL expression '" + expression + "'", e); } finally { currentEvaluationWrapperClass = null; } }