public virtual void AddTask(WorkflowTask task) { task.Workflow = this; Tasks.Add(task); }
public virtual void DependsOn(WorkflowTask dependent) { TaskDependsOns.Add(new WorkflowTaskDependsOn(this, dependent)); }