Search in sources :

Example 1 with ExpressionSetInvocation

use of org.activiti.engine.impl.delegate.ExpressionSetInvocation in project Activiti by Activiti.

the class JuelExpression method setValue.

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

Aggregations

ActivitiException (org.activiti.engine.ActivitiException)1 ExpressionSetInvocation (org.activiti.engine.impl.delegate.ExpressionSetInvocation)1 ELContext (org.activiti.engine.impl.javax.el.ELContext)1 ELException (org.activiti.engine.impl.javax.el.ELException)1 MethodNotFoundException (org.activiti.engine.impl.javax.el.MethodNotFoundException)1 PropertyNotFoundException (org.activiti.engine.impl.javax.el.PropertyNotFoundException)1