Skip to content

Commit

Permalink
PMXML: activity type P6 6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
joniles committed Jan 16, 2025
1 parent ffa0c00 commit bfc9ce8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/changes/changes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
</properties>
<body>
<release date="unreleased" version="13.9.1">
<action dev="joniles" type="update">Improve handling of Activity Type attribute when reading PMXML files written by Primavera P6 6.x.</action>
</release>
<release date="2025-01-09" version="13.9.0">
<action dev="joniles" type="update">Updated to POI 5.4.0</action>
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/net/sf/mpxj/primavera/ActivityTypeHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ public static String getXerFromInstance(ActivityType value)
XML_TYPE_MAP.put("Start Milestone", net.sf.mpxj.ActivityType.START_MILESTONE);
XML_TYPE_MAP.put("Finish Milestone", net.sf.mpxj.ActivityType.FINISH_MILESTONE);
XML_TYPE_MAP.put("WBS Summary", net.sf.mpxj.ActivityType.WBS_SUMMARY);

// Version 6.1 schema. Need access to prmbo.xsd to confirm other values
XML_TYPE_MAP.put("0", net.sf.mpxj.ActivityType.TASK_DEPENDENT);
}

private static final Map<net.sf.mpxj.ActivityType, String> TYPE_XML_MAP = new HashMap<>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1854,7 +1854,7 @@ private void processTasks(List<WBSType> wbs, Map<Integer, Notes> wbsNotes, List<
// and Finish Date attributes are populated with that date.
if (task.getMilestone())
{
if ("Start Milestone".equals(row.getType()))
if (task.getActivityType() == net.sf.mpxj.ActivityType.START_MILESTONE)
{
task.setFinish(task.getStart());
}
Expand Down

0 comments on commit bfc9ce8

Please sign in to comment.