Duration duration=(Duration)timephasedValue.getValue();
openprojAssignment.setInterval(openprojType, timephasedValue.getStart(), timephasedValue.getEnd(),duration.getValue());
}
//contour
WorkContour contour=assignment.getContour();
if (contour == null)
openprojAssignment.setWorkContourType(ContourTypes.FLAT);
else if (contour == WorkContour.CONTOURED)
openprojAssignment.makeContourPersonal();
else
openprojAssignment.setWorkContourType(contour.getId());
openprojAssignment.makeFlatIfPossible();
return openprojAssignment;