use of org.activiti.engine.impl.delegate.invocation.ExpressionGetInvocation in project Activiti by Activiti.
the class JuelExpression method getValueFromContext.
private Object getValueFromContext(ELContext elContext, DelegateInterceptor delegateInterceptor) {
try {
ExpressionGetInvocation invocation = new ExpressionGetInvocation(valueExpression, elContext);
delegateInterceptor.handleInvocation(invocation);
return invocation.getInvocationResult();
} catch (PropertyNotFoundException pnfe) {
throw new ActivitiException("Unknown property used in expression: " + expressionText, pnfe);
} catch (MethodNotFoundException mnfe) {
throw new ActivitiException("Unknown method used in expression: " + expressionText, mnfe);
} catch (Exception ele) {
throw new ActivitiException("Error while evaluating expression: " + expressionText, ele);
}
}
Aggregations