06-13-2015 06:08 AM
public Object evaluateExpression(DelegateExecution execution, String expr) {
Expression expression = expressionManager.createExpression(expr);
return expression.getValue(execution);
}
java.lang.NullPointerException at org.activiti.engine.impl.el.JuelExpression.getValue(JuelExpression.java:45)
public Object getValue(VariableScope variableScope) {
ELContext elContext = Context.getProcessEngineConfiguration().getExpressionManager().getElContext(variableScope);
try {
ExpressionGetInvocation invocation = new ExpressionGetInvocation(valueExpression, elContext);
Context.getProcessEngineConfiguration()
.getDelegateInterceptor()
.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(ELException ele) {
throw new ActivitiException("Error while evaluating expression: " + expressionText, ele);
} catch (Exception e) {
throw new ActivitiException("Error while evaluating expression: " + expressionText, e);
}
}
06-13-2015 06:19 AM
06-16-2015 05:08 AM
06-16-2015 11:22 AM
06-17-2015 06:39 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.