static void EvalAssignRecordSets(IExecutionEnvironment innerEnvironment, IExecutionEnvironment environment, int update, IDev2Definition outPutRecSet, IDev2Definition outputColumnDefinitions)
        {
            var correctRecSet      = "[[" + outputColumnDefinitions.RecordSetName + "(*)." + outputColumnDefinitions.Name + "]]";
            var warewolfEvalResult = innerEnvironment.Eval(correctRecSet, 0);

            if (warewolfEvalResult.IsWarewolfAtomListresult)
            {
                var recsetResult = warewolfEvalResult as CommonFunctions.WarewolfEvalResult.WarewolfAtomListresult;
                if (outPutRecSet.IsRecordSet)
                {
                    var enRecordsetIndexType = DataListUtil.GetRecordsetIndexType(outputColumnDefinitions.RawValue);
                    if (enRecordsetIndexType == enRecordsetIndexType.Star && recsetResult != null)
                    {
                        environment.EvalAssignFromNestedStar(outputColumnDefinitions.RawValue, recsetResult, update);
                    }

                    if (enRecordsetIndexType == enRecordsetIndexType.Blank && recsetResult != null)
                    {
                        environment.EvalAssignFromNestedLast(outputColumnDefinitions.RawValue, recsetResult, 0);
                    }

                    if (enRecordsetIndexType == enRecordsetIndexType.Numeric && recsetResult != null)
                    {
                        environment.EvalAssignFromNestedNumeric(outputColumnDefinitions.RawValue, recsetResult, 0);
                    }
                }
            }
        }
 private static void EvalAssignRecordSets(IExecutionEnvironment innerEnvironment, IExecutionEnvironment environment, int update, IRecordSetCollection outputRecSets, IList <IDev2Definition> outputs)
 {
     foreach (var recordSetDefinition in outputRecSets.RecordSets)
     {
         var outPutRecSet = outputs.FirstOrDefault(definition => definition.IsRecordSet && definition.RecordSetName == recordSetDefinition.SetName);
         if (outPutRecSet != null)
         {
             foreach (var outputColumnDefinitions in recordSetDefinition.Columns)
             {
                 var correctRecSet      = "[[" + outputColumnDefinitions.RecordSetName + "(*)." + outputColumnDefinitions.Name + "]]";
                 var warewolfEvalResult = innerEnvironment.Eval(correctRecSet, 0);
                 if (warewolfEvalResult.IsWarewolfAtomListresult)
                 {
                     var recsetResult = warewolfEvalResult as CommonFunctions.WarewolfEvalResult.WarewolfAtomListresult;
                     if (outPutRecSet.IsRecordSet)
                     {
                         var enRecordsetIndexType = DataListUtil.GetRecordsetIndexType(outputColumnDefinitions.RawValue);
                         if (enRecordsetIndexType == enRecordsetIndexType.Star)
                         {
                             if (recsetResult != null)
                             {
                                 environment.EvalAssignFromNestedStar(outputColumnDefinitions.RawValue, recsetResult, update);
                             }
                         }
                         if (enRecordsetIndexType == enRecordsetIndexType.Blank)
                         {
                             if (recsetResult != null)
                             {
                                 environment.EvalAssignFromNestedLast(outputColumnDefinitions.RawValue, recsetResult, 0);
                             }
                         }
                         if (enRecordsetIndexType == enRecordsetIndexType.Numeric)
                         {
                             if (recsetResult != null)
                             {
                                 environment.EvalAssignFromNestedNumeric(outputColumnDefinitions.RawValue, recsetResult, 0);
                             }
                         }
                     }
                 }
             }
         }
     }
 }
Esempio n. 3
0
 public void EvalAssignFromNestedNumeric(string rawValue, CommonFunctions.WarewolfEvalResult.WarewolfAtomListresult recsetResult, int update)
 {
     _inner.EvalAssignFromNestedNumeric(UpdateDataSourceWithIterativeValue(_datasource, update, rawValue), recsetResult, 0);
 }