public void SetNext(ITaskActivity next) { if (Next == null) { Next = next; return; } Next.SetNext(next); }
public WorkflowBuilder Then(ITaskActivity activity) { current.SetNext(activity); current = activity; return(this); }
public WorkflowBuilder StartWith(ITaskActivity activity) { root = activity; current = root; return(this); }