示例#1
0
        public List <IDatastore> GetDataObjectForDesignerItem(Guid loadUntildesignerItemId, bool isDataPreview, RunLog runLog)
        {
            moduleExecution = new ModuleExecution(objectResolver, runLog, parentItemLog);

            var targetItems   = this.FlowGraph.DesignerItems.Where(t => t.ID == loadUntildesignerItemId).ToList();
            var executionPlan = CreateExecutionPlan(targetItems);

            if (!isDataPreview)
            {
                executionPlan.Remove(targetItems.First());
            }
            ExecuteExecutionPlan(executionPlan, runLog);


            if (!isDataPreview)
            {
                var incomingConnections = FlowGraph.GetIncomingConnections(targetItems.First()).OrderBy(t => t.SinkConnectorName);
                return(BuildResultStores(incomingConnections));
            }
            else
            {
                var outgoingConnections = FlowGraph.GetOutgoingConnections(targetItems.First()).OrderBy(t => t.SourceConnectorName);
                return(BuildResultStores(outgoingConnections));
            }
        }
示例#2
0
        public void Execute(RunLog runLog)
        {
            moduleExecution = new ModuleExecution(objectResolver, runLog, parentItemLog);

            var targetItems   = this.FlowGraph.DesignerItems.Where(t => t.ModuleDescription.Attributes.ModuleType == ModuleType.Target).ToList();
            var executionPlan = CreateExecutionPlan(targetItems);

            ExecuteExecutionPlan(executionPlan, runLog);
        }