private void RaiseWSDataHandlerCreatedEvent(WSDataHandler dataHandler) { if (this.WSDataHandlerCreated != null) { this.WSDataHandlerCreated(this, new ExecutingWorkflowEventArgs(dataHandler.ExecutingWorkflow)); } }
private List <string> InitializeDDIParameters(WSDataHandler dataHandler, DDIParameters parameters) { List <string> list = new List <string>(); if (parameters != null && parameters.Parameters != null) { Dictionary <string, object> dictionary = parameters.Parameters; foreach (string text in dictionary.Keys) { if (dataHandler.Table.Columns.Contains(text)) { dataHandler.InputValue(text, dictionary[text]); list.Add(text); } } } return(list); }
private void SetWorkflowOutput(string workflowName, WSDataHandler dataHandler, DDIParameters filter) { Workflow workFlow = dataHandler.GetWorkFlow(workflowName); string text = null; if (filter != null && filter.Parameters != null) { Dictionary <string, object> dictionary = filter.Parameters; if (dictionary.ContainsKey("workflowOutput")) { text = (string)dictionary["workflowOutput"]; } else if (dictionary.ContainsKey("AdditionalCustomOutputs")) { text = workFlow.Output + ',' + dictionary["AdditionalCustomOutputs"]; } } if (!string.IsNullOrWhiteSpace(text) && workFlow != null) { workFlow.Output = text; } }