Ejemplo n.º 1
0
        private static void ExportWorkflowCompletion(int workflows, WorkflowManagement wm, DateTime startTime)
        {
            using (var w = new StreamWriter("redisWorkflowCompletion.txt"))
            {
                for (int i = 1; i <= workflows; i++)
                {
                    var details = wm.FetchWorkflowInformation(i.ToString());

                    w.WriteLine(new TimeSpan(DateTime.Parse(details.Complete).Ticks - startTime.Ticks).TotalSeconds);
                }
            }
        }
Ejemplo n.º 2
0
        private static void ExportTaskData(int workflows, WorkflowManagement wm, DateTime startTime)
        {
            using (var w = new StreamWriter("redisTaskData.txt"))
            {
                for (int i = 1; i <= workflows; i++)
                {
                    var details = wm.FetchWorkflowInformation(i.ToString());

                    foreach (var task in details.Tasks)
                    {
                        w.WriteLine(
                            new TimeSpan(DateTime.Parse(task.submitted).Ticks - startTime.Ticks).TotalSeconds + "\t" +
                            new TimeSpan(DateTime.Parse(task.complete).Ticks - startTime.Ticks).TotalSeconds);
                    }
                }
            }
        }