private ElementExecutionTree CalculateExecutionPlan(IWorkflowElement workflowElement) { var tree = new ElementExecutionTree(); foreach (var element in workflowElement.ToElements) { //plan inner element next elements } return(tree); }
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); }
public void Add(ElementExecutionTree workflowElementsToExecute) { _elements.Add(workflowElementsToExecute); }