Please refer to the screenshot of the mpp : mpp_error_02.PNG (61.3 KB)
Here is the output that I obtained while printing out the TimePhasedData of the highlighted Task (Task 1.1 / Resource B)
UID : 18
TYPE : 1 //AssignmentRemainingWork
UNIT : 4
VAL : PT1H0M0S
DURA : 3600000.0
STRT : Tue Mar 13 08:00:00 IST 2018
FINI :Tue Mar 13 12:00:00 IST 2018
UID : 18
TYPE : 2 //AssignmentActualWork
UNIT : 4
VAL : PT1H0M0S
DURA : 3600000.0
STRT : Mon Mar 12 08:00:00 IST 2018
FINI :Mon Mar 12 17:00:00 IST 2018
May I know, whether this is the expected behaviour ?
Code :
ResourceAssignment assn = project.getResourceAssignments().getByUid(18);
assn.set(Asn.WORK_CONTOUR,WorkContourType.Contoured);
System.out.println(assn.getTimephasedData().toString());
for(TimephasedData td : assn.getTimephasedData()) {
System.out.println("UID : " + td.getUid());
System.out.println("TYPE : " + td.getTimephasedDataType());
System.out.println("UNIT : " + td.getUnit());
System.out.println("VAL : " + td.getValue());
System.out.println("DURA : " + td.getValueToDuration());
System.out.println("STRT : " + td.getStart());
System.out.println("FINI :" + td.getFinish());
}
Please Check . The MPP file is attached along with project_aasn.mpp.zip (32.1 KB)