public virtual IMessageCorrelationBuilder SetVariable(string variableName, object variableValue) { EnsureUtil.EnsureNotNull("variableName", variableName); EnsurePayloadProcessInstanceVariablesInitialized(); payloadProcessInstanceVariables.PutValue(variableName, variableValue); return(this); }
protected internal virtual void addResultToVariableContext(IDmnDecisionResult evaluatedResult, IVariableMap variableMap, IDmnDecision evaluatedDecision) { var resultList = evaluatedResult.ResultList; if (resultList.Count == 0) { } else if ((resultList.Count == 1) && !isDecisionTableWithCollectOrRuleOrderHitPolicy(evaluatedDecision)) { foreach (var it in evaluatedResult.SingleResult) { variableMap.PutValue(it.Key, it.Value); } //variableMap.putAll(evaluatedResult.SingleResult); } else { ISet <string> outputs = new HashSet <string>(); foreach (var resultMap in resultList) { outputs.UnionWith(resultMap.Keys); } foreach (var output in outputs) { var values = evaluatedResult.CollectEntries <object>(output); variableMap.PutValue(output, values); } } }
public virtual IMessageCorrelationBuilder LocalVariableEquals(string variableName, object variableValue) { EnsureUtil.EnsureNotNull("variableName", variableName); EnsureCorrelationLocalVariablesInitialized(); correlationLocalVariables.PutValue(variableName, variableValue); return(this); }
protected internal virtual IVariableMap getVariables(object input) { IVariableMap variables = ESS.FW.Bpm.Engine.Variable.Variables.CreateVariables(); variables.PutValue("input1", input); return(variables); }
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); } }
public void MapInputVariables(IDelegateExecution superExecution, IVariableMap subVariables) { subVariables.PutValue("orderId", superExecution.GetVariable("orderId")); }
public virtual void AddVariableLocal(string name, object value) { variablesLocal.PutValue(name, value); }
public void MapInputVariables(IDelegateExecution execution, IVariableMap variables) { variables.PutValue("TestInputVar", "inValue"); }