return wf; }
    public Workflow buildWorkflow(Task parent, Vector subtasks) {	NewWorkflow wf = newWorkflow(parent);	NewTask t;	int i, length = subtasks.size();	for (i=0; i < length; i++) {	    t = (NewTask) subtasks.elementAt(i);	    t.setWorkflow(wf);	    wf.addTask(t);	}	return wf;    }