Browse our Products

Aspose.Tasks for Java 20.12 Release Notes

All Changes

KeySummaryIssue Type
TASKSNET-4520Add support for “Clear” operation for project’s OleObjects collectionEnhancement
TASKSNET-4497Refactor API for CalendarExceptionsEnhancement
TASKSNET-4444Add an API for getting a count of consumed bytes \ credits when Metered license is usedEnhancement
TASKSNET-3896Add API for saving more than 1 page to MemoryStreamEnhancement
TASKSNET-3895Implement writing of displayed time units for assignment’s Duration* extended attributesEnhancement
TASKSNET-3854Enhance reading of dates in evaluation modeEnhancement
TASKSNET-4506Fix missing embedded OLE image in resaved projectBug
TASKSNET-4499Fix incorrect TimephasedData.Uid in TimephasedData items returned by task.GetTimephasedData() methodBug
TASKSNET-4485Fix adding of CalendarException broke MPP fileBug
TASKSNET-4439Fix invalid order of null tasks after project’s recalculationBug
TASKSNET-3723Fix absent TDs for cost resourcesBug

Public API and Backwards Incompatible Changes

The following behavior was changed:

Days on which calendar exceptions are effective are no longer added to Calendar.getWeekDays() collection.

Consider a project with a calendar in which at least one calendar exception is defined:

Project project = new Project("CalendarWithExceptions.mpp");
Calendar calendar = project.getCalendars().getByUid(1);

Before ver. 20.12: days on which the exceptions were effective were added to Calendar.getWeekDays() collection (with DayType ‘Exception’) along with the “regular” WeekDays.

After ver. 20.12 (including ver. 20.12): Calendar.getWeekDays() contain only “regular” WeekDays. You can use CalendarException.getExceptionDates() method in order to determine on which days the given calendar exception is effective.

Project project = new Project("CalendarWithExceptions.mpp");
Calendar calendar = project.getCalendars().getByUid(1);
CalendarException calendarException = calendar.getExceptions().get(0);

for (java.util.Date date : calendarException.getExceptionDates()) {
    System.out.println(date);
}
The following public types were added:Description
com.aspose.tasks.IPageSavingCallbackRepresents a callback that is called when each page in multi page document is saved to a separate stream.
com.aspose.tasks.PageSavingArgsThis class represents set of data that related to saving of a document’s page to a stream.
com.aspose.tasks.TreeAlgorithmBase<T>A base class for implementations of <see cref=“T:com.aspose.tasks.ITreeAlgorithm<T>
The following public types were deleted:Description
com.aspose.tasks.TaskXMLParsingFinished
The following public methods and properties were added:Description
com.aspose.tasks.AssignmentBaseline.#ctorInitializes a new instance of the class.
com.aspose.tasks.Baseline.#ctorInitializes a new instance of the class.
com.aspose.tasks.CalendarException.getExceptionDatesReturns dates on which the calendar exception is applicable.
com.aspose.tasks.Metered.getConsumptionCreditGets consumption credit.
com.aspose.tasks.Metered.getConsumptionQuantityGets consumption file size.
com.aspose.tasks.OleObjectCollection.ClearClears the collection. In order to persist these changes project.save should be called with ’new MPPSaveOptions() {{ this.setWriteViewData(true); }}’ argument.
com.aspose.tasks.Project.getDuration(double,/TimeUnitType/int)Gets duration with the specified value and specified value.
com.aspose.tasks.HtmlSaveOptions.getPageSavingCallback com.aspose.tasks.HtmlSaveOptions.setPageSavingCallback(IPageSavingCallback)Gets or sets a user-defined callback which is used to get an output stream for each rendered page.
com.aspose.tasks.IPageSavingCallback.pageSaving(com.aspose.tasks.PageSavingArgs)The method to be called when a page is saved to a stream.
com.aspose.tasks.IPageSavingCallback.onFinishMethod which will be called when all pages are written.
com.aspose.tasks.ImageSaveOptions.getPageSavingCallback com.aspose.tasks.ImageSaveOptions.setPageSavingCallback(com.aspose.tasks.IPageSavingCallback)Gets or sets a user-defined callback which is used to get an output stream for each rendered page.
com.aspose.tasks.PageSavingArgs.getPageNumberGets a number of page to be written.
com.aspose.tasks.PageSavingArgs.getKeepStreamOpen com.aspose.tasks.PageSavingArgs.setKeepStreamOpen(boolean)Gets or sets a value indicating whether rendering routine should keep opened after a page is written.
com.aspose.tasks.PageSavingArgs.getStream com.aspose.tasks.PageSavingArgs.setStream(java.io.OutputStream)Gets or sets a stream for writing a page.
com.aspose.tasks.PdfSaveOptions.getPageSavingCallback com.aspose.tasks.PdfSaveOptions.setPageSavingCallback(com.aspose.tasks.IPageSavingCallback)Gets or sets a user-defined callback which is used to get an output stream for each rendered page.
com.aspose.tasks.SvgOptions.getPageSavingCallback com.aspose.tasks.SvgOptions.setPageSavingCallback(com.aspose.tasks.IPageSavingCallback)Gets or sets a user-defined implementation callback which is used to get an output stream for each rendered page.
com.aspose.tasks.TaskBaseline.#ctor(com.aspose.tasks.Task)Initializes a new instance of the class.
The following public methods and properties were deleted:Description
com.aspose.tasks.AvailabilityPeriod.ParentResource
com.aspose.tasks.Calendar.#ctor(System.String)
com.aspose.tasks.Calendar.makeStandardCalendar
com.aspose.tasks.Calendar.make24HourCalendar
com.aspose.tasks.Calendar.makeNightShiftCalendar
com.aspose.tasks.SaveOptions.ShowProjectSummaryTask
com.aspose.tasks.GanttBarStyle.ShowFor