internal ActivityGroupReport GetAGReportData(ActivitiesGroup activityGroup, BusinessFlow businessFlow) { ActivityGroupReport AGR = new ActivityGroupReport(activityGroup, businessFlow); AGR.Seq = businessFlow.ActivitiesGroups.IndexOf(activityGroup) + 1; AGR.ExecutionLogFolder = ExecutionLogfolder + businessFlow.ExecutionLogFolder; return(AGR); }
internal void SetReportData(ActivityGroupReport agReport) { //this.Seq = businessFlow.ActivitiesGroups.IndexOf(activityGroup) + 1; //this.ExecutionLogFolder = executionLogFolder + bf.ExecutionLogFolder; Seq = agReport.Seq; GUID = Guid.Parse(agReport.GUID); Name = agReport.Name; Description = agReport.Description; AutomationPrecentage = agReport.AutomationPrecentage; StartTimeStamp = agReport.StartTimeStamp; EndTimeStamp = agReport.EndTimeStamp; Elapsed = agReport.Elapsed; this.RunStatus = agReport.RunStatus; ExecutedActivitiesGUID = agReport.ExecutedActivitiesGUID; }
public override object SetReportActivityGroup(ActivitiesGroup activityGroup, BusinessFlow businessFlow, bool offlineMode) { ActivityGroupReport AGR = GetAGReportData(activityGroup, businessFlow); //AGR.ReportMapper(activityGroup, businessFlow, ExecutionLogfolder); if (offlineMode && activityGroup.ExecutionLogFolder != null) { SaveObjToReporsitory(AGR, Path.Combine(activityGroup.ExecutionLogFolder, "ActivityGroups.txt"), true); File.AppendAllText(Path.Combine(activityGroup.ExecutionLogFolder, "ActivityGroups.txt"), Environment.NewLine); } else if (ExecutionLogfolder != null && businessFlow.ExecutionLogFolder != null) { SaveObjToReporsitory(AGR, Path.Combine(ExecutionLogfolder, businessFlow.ExecutionLogFolder, "ActivityGroups.txt"), true); File.AppendAllText(Path.Combine(ExecutionLogfolder, businessFlow.ExecutionLogFolder, "ActivityGroups.txt"), Environment.NewLine); } return(AGR); }