Search in sources :

Example 1 with ExpressionSetInvocation

use of org.camunda.bpm.engine.impl.delegate.ExpressionSetInvocation in project camunda-bpm-platform by camunda.

the class JuelExpression method setValue.

public void setValue(Object value, VariableScope variableScope, BaseDelegateExecution contextExecution) {
    ELContext elContext = expressionManager.getElContext(variableScope);
    try {
        ExpressionSetInvocation invocation = new ExpressionSetInvocation(valueExpression, elContext, value, contextExecution);
        Context.getProcessEngineConfiguration().getDelegateInterceptor().handleInvocation(invocation);
    } catch (Exception e) {
        throw new ProcessEngineException("Error while evaluating expression: " + expressionText + ". Cause: " + e.getMessage(), e);
    }
}
Also used : ELContext(org.camunda.bpm.engine.impl.javax.el.ELContext) ExpressionSetInvocation(org.camunda.bpm.engine.impl.delegate.ExpressionSetInvocation) ProcessEngineException(org.camunda.bpm.engine.ProcessEngineException) MethodNotFoundException(org.camunda.bpm.engine.impl.javax.el.MethodNotFoundException) PropertyNotFoundException(org.camunda.bpm.engine.impl.javax.el.PropertyNotFoundException) ELException(org.camunda.bpm.engine.impl.javax.el.ELException) ProcessEngineException(org.camunda.bpm.engine.ProcessEngineException)

Aggregations

ProcessEngineException (org.camunda.bpm.engine.ProcessEngineException)1 ExpressionSetInvocation (org.camunda.bpm.engine.impl.delegate.ExpressionSetInvocation)1 ELContext (org.camunda.bpm.engine.impl.javax.el.ELContext)1 ELException (org.camunda.bpm.engine.impl.javax.el.ELException)1 MethodNotFoundException (org.camunda.bpm.engine.impl.javax.el.MethodNotFoundException)1 PropertyNotFoundException (org.camunda.bpm.engine.impl.javax.el.PropertyNotFoundException)1