code: private void processTasks(Gantt gantt)
     {
        ProjectCalendar calendar = m_projectFile.getDefaultCalendar();
  
        for (Gantt.Tasks.Task ganttTask : gantt.getTasks().getTask())
        {
           String wbs = ganttTask.getID();
           ChildTaskContainer parentTask = getParentTask(wbs);
  
           Task task = parentTask.addTask();
           //ganttTask.getB() // bar type
           //ganttTask.getBC() // bar color
           task.setCost(ganttTask.getC());
           task.setName(ganttTask.getContent());
           task.setDuration(ganttTask.getD());
           task.setDeadline(ganttTask.getDL());
           //ganttTask.getH() // height
           //ganttTask.getIn(); // indent
           task.setWBS(wbs);
           task.setPercentageComplete(ganttTask.getPC());
           task.setStart(ganttTask.getS());
           //ganttTask.getU(); // Unknown
           //ganttTask.getVA(); // Valign
  
           task.setFinish(calendar.getDate(task.getStart(), task.getDuration(), false));
           m_taskMap.put(wbs, task);
        }
     }
docs: Read task data from a Gantt Designer file.
  
  @param gantt Gantt Designer file