Пример #1
0
        public override ProcessInstanceModificationInstantiationBuilder setVariablesLocal(IDictionary <string, object> variables)
        {
            ensureNotNull(typeof(NotValidException), "Variable map must not be null", "variablesLocal", variables);

            AbstractInstantiationCmd currentInstantiation = CurrentInstantiation;

            if (currentInstantiation != null)
            {
                currentInstantiation.addVariablesLocal(variables);
            }
            else
            {
                processVariables.putAll(variables);
            }
            return(this);
        }
Пример #2
0
        public override ProcessInstanceModificationInstantiationBuilder setVariableLocal(string name, object value)
        {
            ensureNotNull(typeof(NotValidException), "Variable name must not be null", "name", name);

            AbstractInstantiationCmd currentInstantiation = CurrentInstantiation;

            if (currentInstantiation != null)
            {
                currentInstantiation.addVariableLocal(name, value);
            }
            else
            {
                processVariables.put(name, value);
            }

            return(this);
        }