예제 #1
0
        private void RenderTransientListItems(HtmlTextWriter writer, WorkStep expandStep)
        {
            var expandedWorkItems = _workflowRepository.GetWorkItems(expandStep.Path).OrderBy(wi => wi.Ordinal);

            foreach (var expandedWorkItem in expandedWorkItems)
            {
                var transientPath = ExpandedWorkStep.GetTransientPath(expandStep, expandedWorkItem);
                var transientStep = _workflowRepository.GetWorkStep(transientPath);

                RenderTransientListItem(writer, transientStep, expandedWorkItem);
            }
        }
예제 #2
0
        private void RenderTransientWorkSteps(WorkStep step, TextWriter writer, WorkItem workItem)
        {
            var childStepPath = ExpandedWorkStep.GetTransientPath(step, workItem);

            if (_workflowRepository.ExistsWorkStep(childStepPath))
            {
                var childStep = _workflowRepository.GetWorkStep(childStepPath);
                writer.Write(",\"worksteps\":[");

                RenderWorkStepsRecursively(writer, childStep, true);

                writer.Write("]");
            }
        }