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); }
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); }