Ejemplo n.º 1
0
        private ElementExecutionTree CalculateExecutionPlan(IWorkflowElement workflowElement)
        {
            var tree = new ElementExecutionTree();

            foreach (var element in workflowElement.ToElements)
            {
                //plan inner element next elements
            }

            return(tree);
        }
Ejemplo n.º 2
0
        public WorkflowStatus ExecuteElement(WorkflowContext context)
        {
            var status = new WorkflowStatus
            {
                ExecutionPlan = new WorkflowExecutionPlan()
            };

            foreach (var workflowElement in context.CurrentElements)
            {
                ElementExecutionTree workflowElementsToExecute = CalculateExecutionPlan(workflowElement);
                status.ExecutionPlan.Add(workflowElementsToExecute);
            }
            return(status);
        }
Ejemplo n.º 3
0
 public void Add(ElementExecutionTree workflowElementsToExecute)
 {
     _elements.Add(workflowElementsToExecute);
 }