Browse our Products

Aspose.Tasks for Java 22.5 Release Notes

All Changes

KeySummaryIssue Type
TASKSNET-4602Extend XER import to support XER files with more than 1 projectsFeature
TASKSNET-10500Add a way to specify behavior of task constraints import for XER formatEnhancement
TASKSNET-10468Add support of reading User Defined Fields for Primavera XER formatEnhancement
TASKSNET-10520Fix reading \ writing of PreleveledStart and PreleveledFinish fieldsBug
TASKSNET-10519Fix task ‘Notes’ icon is incorrectly shown when MPP saved by Aspose.Tasks is opened using MS ProjectBug
TASKSNET-10508Fix calculation of formulaBug
TASKSNET-10507Fix reading of Activity Codes from XER: some codes are missingBug
TASKSNET-10497Fix calculation of PercentComplete and PercentWorkComplete for tasks read from XER fileBug
TASKSNET-10482Fix incorrect Start\Finish dates of task with zero durationBug
TASKSNET-4691Fix incorrect writing of extended attributes for specific version of MPP 2003 formatBug

Public API and Backwards Incompatible Changes

The following public types were added:Description
com.aspose.tasks.PrimaveraReadOptionsAllows to specify additional options when reading Primavera Xml or Primavera Xer files.
com.aspose.tasks.PrimaveraXerReaderRepresents a reader to read Project UIDs from Primavera XER file
com.aspose.tasks.UndefinedConstraintHandlingBehaviorSpecifies the behavior used to handle tasks with undefined constraints.
The following public methods and properties were added:Description
com.aspose.tasks.LoadOptions.PrimaveraReadOptionsGets or sets a specified instance of the PrimaveraReadOptions class which can be used to customize the behavior of loading Primavera formats (Primavera P6 XER or Primavera P6 Xml).
com.aspose.tasks.PrimaveraReadOptions.#ctorInitializes a new instance of the PrimaveraReadOptions class.
com.aspose.tasks.PrimaveraReadOptions.ProjectUidGets or sets the UID of a project to read from file containing multiple projects.
com.aspose.tasks.PrimaveraReadOptions.UndefinedConstraintHandlingBehaviorSpecifies the behavior used to process tasks with undefined constraints read from XER format.
com.aspose.tasks.PrimaveraXerReader.#ctor(java.lang.String)Initializes a new instance of the PrimaveraXerReader class.
com.aspose.tasks.PrimaveraXerReader.#ctor( a new instance of the PrimaveraXerReader class.
com.aspose.tasks.PrimaveraXerReader.getProjectUidsReturn a list of the projects’ unique identifiers.
com.aspose.tasks.Project.#ctor(,com.aspose.tasks.PrimaveraReadOptions)Initializes a new instance of the Project class from the Stream
com.aspose.tasks.Project.#ctor(java.lang.String,com.aspose.tasks.PrimaveraReadOptions)Initializes a new instance of the Project class from a template (existent MPP or MPT file
The following public enumerations were added:Description
com.aspose.tasks.UndefinedConstraintHandlingBehavior.NoneThe default behavior for loading from XER format.
com.aspose.tasks.UndefinedConstraintHandlingBehavior.SubstituteWithStartNoEarlierThanConstraints with type ‘ConstraintType.StartNoEarlierThan’ and date = Start are added for tasks with ‘Undefined’ constraint.

Examples and additional notes

In this release we focused on improvement of Primavera XER format support.

Related issue: TASKSNET-4602 - Extend XER import to support XER files with more than 1 projects

The support of reading of XER files containing multiple projects was added. Also PrimaveraReadOptions class was introduced to make a unified API for both Primavera XML and Primavera XER formats reading. PrimaveraReadOptions.ProjectUid can be used to specify ID of project to read. You can use PrimaveraXerReader to read IDs of projects contained in .XER file:

String xerFile = "test.xer";
PrimaveraXerReader reader = new PrimaveraXerReader(xerFile);
java.util.List<Integer> projectUids = reader.getProjectUids();
int projectId = projectUids.get(0);

Project firstProject = new Project(
    new PrimaveraReadOptions() {{

Related issue: TASKSNET-10500 - Add a way to specify behavior of task constraints import for XER format

PrimaveraReadOptions.UndefinedConstraintHandlingBehavior was added to make it possible to specify behavior used to handle tasks with Undefined contraint when reading project. Prior to 22.5 the default behavior was to add “StartNoEarlier” constraint with “Start” date for these tasks. Now the default behavior is “None” (no constraints are added).

Project firstProject = new Project(
        new PrimaveraReadOptions() {{