//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET: //ORIGINAL LINE: private Object evaluateExpression(org.camunda.bpm.engine.impl.javax.el.ValueExpression expr, javax.script.ScriptContext ctx) throws javax.script.ScriptException private object evaluateExpression(ValueExpression expr, ScriptContext ctx) { try { return(expr.getValue(createElContext(ctx))); } catch (ELException elexp) { throw new ScriptException(elexp); } }
public override object eval(Bindings bindings, ELContext context) { ValueExpression expression = bindings.getVariable(index); if (expression != null) { return(expression.getValue(context)); } context.PropertyResolved = false; object result = context.ELResolver.getValue(context, null, name); if (!context.PropertyResolved) { throw new PropertyNotFoundException(LocalMessages.get("error.identifier.property.notfound", name)); } return(result); }