// For complete examples and data files, please go to https://github.com/aspose-tasks/Aspose.Tasks-for-Java // The path to the documents directory. String dataDir = Utils.getDataDir(ChangeProgressOfTask.class); Project project = new Project(); System.out.println(project.getCalculationMode()); Task task = project.getRootTask().getChildren().add("Task"); task.set(Tsk.DURATION, project.getDuration(2)); task.set(Tsk.PERCENT_COMPLETE, 50);