Example #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="value"></param>
        /// <param name="variableScope"></param>
        public virtual void SetValue(object value, IVariableScope variableScope)
        {
            ELContext elContext = Context.ProcessEngineConfiguration.ExpressionManager.GetElContext(variableScope);

            try
            {
                ExpressionSetInvocation invocation = new ExpressionSetInvocation(valueExpression, elContext, value);
                Context.ProcessEngineConfiguration.DelegateInterceptor.HandleInvocation(invocation);
            }
            catch (Exception e)
            {
                throw new ActivitiException("Error while evaluating expression: " + expressionText, e);
            }
        }
Example #2
0
        public virtual void setValue(object value, VariableScope variableScope, BaseDelegateExecution contextExecution)
        {
            ELContext elContext = expressionManager.getElContext(variableScope);

            try
            {
                ExpressionSetInvocation invocation = new ExpressionSetInvocation(valueExpression, elContext, value, contextExecution);
                Context.ProcessEngineConfiguration.DelegateInterceptor.handleInvocation(invocation);
            }
            catch (Exception e)
            {
                throw new ProcessEngineException("Error while evaluating expression: " + expressionText + ". Cause: " + e.Message, e);
            }
        }
Example #3
0
        public virtual void SetValue(object value, IVariableScope variableScope, IBaseDelegateExecution contextExecution)
        {
            var elContext = ExpressionManager.GetElContext(variableScope);

            try
            {
                var invocation = new ExpressionSetInvocation(ValueExpression, elContext, value, contextExecution);
                Context.ProcessEngineConfiguration.DelegateInterceptor.HandleInvocation(invocation);
            }
            catch (System.Exception e)
            {
                throw new ProcessEngineException(
                          "Error while evaluating expression: " + ExpressionText + ". Cause: " + e.Message, e);
            }
        }