code: private void readResourceAssignment(Task task, Document.Projects.Project.Task.ResourceAssignments.ResourceAssignment assignment)
     {
        Resource resource = m_projectFile.getResourceByUniqueID(assignment.getResourceID());
        if (resource != null)
        {
           ResourceAssignment mpxjAssignment = task.addResourceAssignment(resource);
           mpxjAssignment.setUniqueID(assignment.getID());
           mpxjAssignment.setWork(Duration.getInstance(assignment.getManHour().doubleValue() * m_workHoursPerDay, TimeUnit.HOURS));
           mpxjAssignment.setUnits(assignment.getUse());
        }
     }
docs: Read resource assignments.
  
  @param task Parent task
  @param assignment ConceptDraw PROJECT resource assignment