public WorkflowInputModel getWorkflow() {
List taskInfoList = taskListPanel.getTaskList();
List taskStubs = new ArrayList(taskInfoList.size());
for (int i=0; i<taskInfoList.size(); i++) {
TaskInfo taskInfo = (TaskInfo)taskInfoList.get(i);
String stubId = String.valueOf(i);
String taskId = taskInfo.getTaskId();
TaskStub stub = new TaskStub(stubId, taskId);
stub.setInputs(inputPanels.getInputs(i));
taskStubs.add(stub);