Beispiel #1
0
 private void RenderWorkStepsRecursively(HtmlTextWriter writer, WorkStep workStep)
 {
     if (_workflowRepository.IsParallelStep(workStep))
     {
         RenderParallelStep(writer, workStep);
     }
     else if (_workflowRepository.IsExpandStep(workStep))
     {
         RenderExpandStep(writer, workStep);
     }
     else
     {
         RenderWorkItemList(writer, workStep);
         RenderNormalStep(writer, workStep);
     }
 }
        private void RenderWorkStepsRecursively(TextWriter writer, WorkStep workStep, bool first)
        {
            foreach (var childWorkStep in _workflowRepository.GetChildWorkSteps(workStep.Path))
            {
                if (!first)
                {
                    writer.Write(",");
                }

                if (_workflowRepository.IsExpandStep(childWorkStep))
                {
                    RenderExpandStep(writer, childWorkStep);
                }
                else if (_workflowRepository.IsParallelStep(childWorkStep))
                {
                    RenderParallelStep(writer, childWorkStep);
                }
                else
                {
                    RenderNormalStep(writer, childWorkStep);
                }

                first = false;
            }
        }