public ResultData Run(StepStartData data) { List <SCORunbookInstanceParameter> rbInputParams = new List <SCORunbookInstanceParameter>(); foreach (DataDescription inData in InputData) { rbInputParams.Add(new SCORunbookInstanceParameter { Name = inData.Name, Value = data.Data[inData.Name] as string }); } Guid JobId = SCOrchestratorSteps.StartRunbookWithParameters(Guid.Parse(selectedRunbook), rbInputParams.ToArray()); Dictionary <string, object> resultData = new Dictionary <string, object>(); resultData.Add("Job Id", JobId); return(new ResultData("Done", resultData)); }
private void InitializeStep() { AvailableRunbooks = SCOrchestratorSteps.GetAllRunbooks(); }