Exemplo n.º 1
0
        public virtual void applyTo(VariableScope variableScope, VariableMap variables)
        {
            if (readLocal)
            {
                variableScope = new VariableScopeLocalAdapter(variableScope);
            }

            if (allVariables)
            {
                IDictionary <string, object> allVariables = variableScope.Variables;
                variables.putAll(allVariables);
            }
            else
            {
                object value = getSource(variableScope);
                variables.put(target, value);
            }
        }
Exemplo n.º 2
0
        public virtual void ApplyTo(IVariableScope variableScope, IVariableMap variables)
        {
            if (readLocal)
            {
                variableScope = new VariableScopeLocalAdapter(variableScope);
            }

            if (allVariables)
            {
                var _allVariables = variableScope.Variables;
                foreach (var it in _allVariables)
                {
                    variables.PutValue(it.Key, it.Value);//.Add(it.Key, it.Value);
                }
            }
            else
            {
                var value = GetSource(variableScope);
                variables.PutValue(target, value);
            }
        }