wt.projmgmt.msproject
Class MPPXMLExporter

java.lang.Object
  extended bywt.projmgmt.msproject.Exporter
      extended bywt.projmgmt.msproject.MPPXMLExporter

public class MPPXMLExporter
extends Exporter

This class exports a ProjectPlan of (@link wt.projmgmt.execution.SummaryActivity} in Microsoft Project XML format.


Field Summary
private  Timestamp now
           
private  int resourceCounter
          This is used to produce an ID for each resource.
private  int taskCounter
          This is used to produce an ID for each task.
private static Currency ZERO_CURRENCY
           
private static Work ZERO_WORK
           
 
Fields inherited from class wt.projmgmt.msproject.Exporter
 
Constructor Summary
MPPXMLExporter(OutputStream ostream, ExportInfo info)
           
 
Method Summary
 void export(WfContainer c)
          Export the specified ProjectPlan or SummaryActivity in Microsoft Project XML format.
 Currency exportActualCost(ProjectResource resource, String tag)
          Export the actual cost of work performed by the specified ProjectResource.
 Currency exportActualCost(ResourceAssignmentLink link, String tag)
          Export the actual cost of work performed for the specified ResourceAssignmentLink.
 void exportActualFinish(ResourceAssignmentLink link, String tag)
          Export the actual finish of the ResourceAssignmentLink.
 void exportActualStart(ResourceAssignmentLink link, String tag)
          Export the actual start of the ResourceAssignmentLink.
 Work exportActualWork(ExecutionObject obj, String tag)
          Export the actual amount of work performed for the specified ExecutionObject.
 Work exportActualWork(ProjectResource resource, String tag)
          Export the actual amount of work performed by the specified ProjectResource.
 Work exportActualWork(ResourceAssignmentLink link, String tag)
          Export the actual amount of work performed for the specified ResourceAssignmentLink.
 void exportAssignment(ResourceAssignmentLink link)
          Export the specified ResourceAssignmentLink in Microsoft Project XML format.
private  void exportAssignments(WfContainer c)
           
 void exportConfirmed(ProjectResource resource, String tag)
          Export whether or not the resource has confirmed its assignments.
 void exportConstraint(ExecutionObject obj)
          Export a constraint for the specified ExecutionObject if required.
 Currency exportCost(ProjectResource resource, String tag)
          Export the total cost of work allocated to the specified ProjectResource.
 Currency exportCost(ResourceAssignmentLink link, String tag)
          Export the total cost of work allocated to the specified ResourceAssignmentLink.
 void exportDeliverables(ExecutionObject exObj)
          Export the PTC.DELIVERABLES extended attribute.
 void exportEaEstimatedDuration(ExecutionObject obj)
           
 void exportEaEstimatedFinish(ExecutionObject obj)
           
 void exportEaEstimatedStart(ExecutionObject obj)
           
 void exportEmailAddress(ProjectResource resource)
          Export the email address of the specified ProjectResource.
 void exportExtendedAttribute(Persistable p, long ea_uid, EnumeratedType enum, String ea_fieldId)
          Export a value for an ExtendedAttribute.
 void exportExtendedAttribute(Persistable p, long ea_uid, long ea_value, String ea_fieldId)
          Export a value for an ExtendedAttribute.
 void exportExtendedAttribute(Persistable p, long ea_uid, String ea_value, String ea_fieldId)
          Export a value for an ExtendedAttribute.
 void exportExtendedAttributeDef(long uid, String fieldId, int type, String alias)
          Export the specified ExtendedAttribute definition.
private  void exportExtendedAttributeDefs()
           
 void exportExtendedAttributeType(int type, String tag)
          Export the type for an extended attribute.
 void exportFinishDate(ExecutionObject obj, String tag)
          Export the FinishDate of the specified ExecutionObject.
 void exportInitials(ProjectResource resource)
          Export the initials of the specified ProjectResource.
 void exportMaxUnits(ProjectResource resource)
          Export the max units of the specified ProjectResource.
 void exportMiscFields(ExecutionObject exObj)
          Export the combined string (Notebook-Executionconfiguration) that is stored
 void exportName(ProjectResource resource, String tag)
          Export the name of the specified ProjectResource.
 void exportOID(Persistable p, boolean isTask0)
          Export the PTC.ID and PTC.CLASS extended attributes.
 void exportOrgContainer(ExecutionObject exObj, String tag)
          Export the OrgContainer that this ExecutionObject lives in.
 void exportPercentComplete(ResourceAssignmentLink link, String tag)
          Export the planned start of the ResourceAssignmentLink.
private  void exportPlanAttributes(ExecutionObject exObj)
           
 TimeToElapse exportPlannedDuration(ExecutionObject obj, String tag)
          Export the PlannedDuration of the specified ExecutionObject.
 Timestamp exportPlannedFinish(ExecutionObject obj, String tag)
          Export the PlannedFinish of the specified ExecutionObject.
 void exportPlannedFinish(ResourceAssignmentLink link, String tag)
          Export the estimated finish of the ResourceAssignmentLink.
 Timestamp exportPlannedStart(ExecutionObject obj, String tag)
          Export the PlannedStart of the specified ExecutionObject.
 void exportPlannedStart(ResourceAssignmentLink link, String tag)
          Export the planned start of the ResourceAssignmentLink.
 void exportPredecessorLink(ProjectNode pred, ProjectNode succ)
          Export the PredecessorLink for the specified predecessor and sucessor nodes.
 void exportPredecessors(ProjectNode node)
          Export the Predecessors of the specified ProjectNode.
 void exportPriority(ExecutionObject obj)
          Export the priority of the specified ExecutionObject.
 void exportProjectLinkType(ProjectLinkType type, String tag)
          Export the ProjectLinkType.
 void exportPTCOwner(ExecutionObject exObj, boolean isTask0)
          Export the PTC.OWNER extended attribute.
 void exportRemainingCost(Currency total, Currency actual, String tag)
          Export the RemainingCost given the total cost and the actual cost.
 void exportRemainingDuration(TimeToElapse total, TimeToElapse actual, String tag)
          Export the RemainingDuration given the total duration and the actual duration.
 Work exportRemainingWork(ExecutionObject obj, String tag)
          Export the amount of work allocated to the specified ExecutionObject.
 void exportRemainingWork(Work total, Work actual, String tag)
          Export the RemainingWork given the total work and the actual work.
private  void exportResource(ProjectResource resource)
          Export the specified ProjectResource in Microsoft Project XML format.
private  void exportResources(WfContainer c)
           
 void exportResourceUnits(ProjectResource resource, int units, String tag)
          Export the number of resources for the specified resource using the correct data format (percent or integer).
 void exportResponsePending(ProjectResource resource, String tag)
          Export whether or not the resource has been sent an invitation to the team but has not yet confirmed participation.
 void exportServerInfo(Persistable p, boolean isTask0)
          Export the following extended attributes: PTC.CODEBASE PTC.ACTION
 void exportStartDate(ExecutionObject obj, String tag)
          Export the StartDate of the specified ExecutionObject.
 void exportStatusInfo(ExecutionObject exObj, boolean isTask0)
          Export the PTC.RISK, PTC.RISK_DESC, PTC.STATUS, PTC.STATUS_DESC and PTC.EXEC_STATE extended attributes.
private  void exportSubPlanId(ProjectProxy proxy)
          Export the sub plan id to PTC.PROJECT if existing
 void exportTask(ExecutionObject obj, boolean isTask0)
          Export the specified ExecutionObject in Microsoft Project XML format.
private  void exportTasks(WfContainer c)
           
 Work exportWork(ExecutionObject obj, String tag)
          Export the amount of work allocated to the specified ExecutionObject.
 Work exportWork(ProjectResource resource, String tag)
          Export the amount of work allocated to the specified ProjectResource.
 Work exportWork(ResourceAssignmentLink link, String tag)
          Export the amount of work allocated to the specified ResourceAssignmentLink.
 void exportWTContainer(ExecutionObject exObj, boolean isTask0)
          Export the following extended attributes: PTC.PROJECT PTC.LOCATION
private  long getLag(ProjectNode pred, ProjectNode succ)
          THIS WILL ONLY RETURN A NEGATIVE LAG OR 0 DOES NOT COMPUTE POSITIVE LAG Get the lag (the difference in working days between the finish of the predecessor and the start of the succesor.
protected  Timestamp getNow()
           
 boolean isEdit()
          Get the flag that determines whether this export is intended to supporting editing the plan in the client.
 
Methods inherited from class wt.projmgmt.msproject.Exporter
close, comment, decreaseIndent, endElement, exportBoolean, exportClass, exportCurrency, exportDateTime, exportDateTime, exportDuration, exportDuration, exportDuration, exportEnumeratedType, exportInt, exportNonNegInt, exportOwner, exportPercent, exportPrincipal, exportPrincipal, exportRate, exportString, exportUID, exportWork, getInfo, increaseIndent, startElement, startElement, writeElement, writeElement, writeElement, writeElement, writeElement, writeElement, writeElement, writeElementData, writeHeader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ZERO_CURRENCY

private static final Currency ZERO_CURRENCY

ZERO_WORK

private static final Work ZERO_WORK

now

private final Timestamp now

taskCounter

private int taskCounter
This is used to produce an ID for each task. They are just numered sequentially as they appear.


resourceCounter

private int resourceCounter
This is used to produce an ID for each resource. They are just numered sequentially as they appear.

Constructor Detail

MPPXMLExporter

public MPPXMLExporter(OutputStream ostream,
                      ExportInfo info)
               throws UnsupportedEncodingException
Method Detail

getNow

protected final Timestamp getNow()

isEdit

public final boolean isEdit()
Get the flag that determines whether this export is intended to supporting editing the plan in the client.


export

public void export(WfContainer c)
            throws WTException,
                   IOException
Export the specified ProjectPlan or SummaryActivity in Microsoft Project XML format.

The XML is written to the OutputStream that was passed in when this exporter was created.

Specified by:
export in class Exporter
Parameters:
c - the ProjectPlan or SummaryActivity to export
Throws:
WTException
IOException

exportPlanAttributes

private void exportPlanAttributes(ExecutionObject exObj)
                           throws WTException,
                                  IOException
Throws:
WTException
IOException

exportExtendedAttributeDefs

private void exportExtendedAttributeDefs()

exportTasks

private void exportTasks(WfContainer c)
                  throws WTException,
                         IOException
Throws:
WTException
IOException

exportResources

private void exportResources(WfContainer c)
                      throws WTException,
                             IOException
Throws:
WTException
IOException

exportAssignments

private void exportAssignments(WfContainer c)
                        throws WTException
Throws:
WTException

exportExtendedAttributeDef

public void exportExtendedAttributeDef(long uid,
                                       String fieldId,
                                       int type,
                                       String alias)
Export the specified ExtendedAttribute definition.

The type can be one of the following values:

Parameters:
uid - the UID of the extended attribute
fieldId - the fieldId of the extended attribute
type - the type of the extended attribute (0, 1, 2, 3, 4, 5, 6 or 7)

exportTask

public void exportTask(ExecutionObject obj,
                       boolean isTask0)
                throws WTException
Export the specified ExecutionObject in Microsoft Project XML format.

The XML is written to the OutputStream that was passed in when this exporter was created.

Parameters:
isTask0 - true if this is the top task (i.e. task 0)
Throws:
WTException

exportResource

private void exportResource(ProjectResource resource)
                     throws WTException
Export the specified ProjectResource in Microsoft Project XML format.

The XML is written to the OutputStream that was passed in when this exporter was created.

Parameters:
resource - the resource to export
Throws:
WTException

exportAssignment

public void exportAssignment(ResourceAssignmentLink link)
                      throws WTException
Export the specified ResourceAssignmentLink in Microsoft Project XML format.

The XML is written to the OutputStream that was passed in when this exporter was created.

Parameters:
link - the link to export
Throws:
WTException

exportPredecessors

public void exportPredecessors(ProjectNode node)
                        throws WTException
Export the Predecessors of the specified ProjectNode.

Parameters:
node - the node to be exported
Throws:
WTException

exportPredecessorLink

public void exportPredecessorLink(ProjectNode pred,
                                  ProjectNode succ)
                           throws WTException
Export the PredecessorLink for the specified predecessor and sucessor nodes.

Parameters:
pred - the predecessor node
succ - the successor node
Throws:
WTException

getLag

private long getLag(ProjectNode pred,
                    ProjectNode succ)
             throws WTException
THIS WILL ONLY RETURN A NEGATIVE LAG OR 0 DOES NOT COMPUTE POSITIVE LAG Get the lag (the difference in working days between the finish of the predecessor and the start of the succesor. Only returns a negative lag. Otherwise, will return 0 Only computes the negative lag if the successor has an actual start

Parameters:
pred - the predecessor node
succ - the successor node
Throws:
WTException

exportProjectLinkType

public void exportProjectLinkType(ProjectLinkType type,
                                  String tag)
Export the ProjectLinkType.

Parameters:
type - the type to be exported
tag - the name of the tag that holds the type

exportOrgContainer

public void exportOrgContainer(ExecutionObject exObj,
                               String tag)
                        throws WTException
Export the OrgContainer that this ExecutionObject lives in.

Throws:
WTException

exportStartDate

public void exportStartDate(ExecutionObject obj,
                            String tag)
Export the StartDate of the specified ExecutionObject.

Parameters:
obj - the execution object to export
tag - the name of the tag that holds the date

exportPlannedStart

public Timestamp exportPlannedStart(ExecutionObject obj,
                                    String tag)
Export the PlannedStart of the specified ExecutionObject.

Parameters:
obj - the execution object to export
tag - the name of the tag that holds the date
Returns:
the planned start that was exported

exportFinishDate

public void exportFinishDate(ExecutionObject obj,
                             String tag)
Export the FinishDate of the specified ExecutionObject.

Parameters:
obj - the execution object to export
tag - the name of the tag that holds the date

exportPlannedFinish

public Timestamp exportPlannedFinish(ExecutionObject obj,
                                     String tag)
Export the PlannedFinish of the specified ExecutionObject.

Parameters:
obj - the execution object to export
tag - the name of the tag that holds the date
Returns:
the planned finish that was exported

exportRemainingDuration

public void exportRemainingDuration(TimeToElapse total,
                                    TimeToElapse actual,
                                    String tag)
Export the RemainingDuration given the total duration and the actual duration.

Parameters:
total - the total duration
actual - the actual duration
tag - the name of the tag that holds the duration

exportConstraint

public void exportConstraint(ExecutionObject obj)
Export a constraint for the specified ExecutionObject if required.

It is only possible to export one constraint. The start date takes precedence over the finish date when exporting the constraint.

  1. If the timeToStart is not computed then a START_NO_EARLIER_THAN constraint is exported for the start date
  2. If the timeToStart is computed and the estimatedFinishDate is not rolled-up then a FINISH_NO_LATER_THAN constraint is exported for the finish date
  3. If the timeToStart is computed and the estimatedFinishDate is rolled-up then an AS_SOON_AS_POSSIBLE constraint1 is exported

Parameters:
obj - the execution object to export the constraint for

exportPlannedDuration

public TimeToElapse exportPlannedDuration(ExecutionObject obj,
                                          String tag)
                                   throws WTException
Export the PlannedDuration of the specified ExecutionObject.

Parameters:
obj - the execution object to export
tag - the name of the tag that holds the date
Returns:
the planned duration that was exported
Throws:
WTException

exportPriority

public void exportPriority(ExecutionObject obj)
Export the priority of the specified ExecutionObject.

Parameters:
obj - the obj to export

exportEmailAddress

public void exportEmailAddress(ProjectResource resource)
Export the email address of the specified ProjectResource.

Parameters:
resource - the resource to export

exportInitials

public void exportInitials(ProjectResource resource)
Export the initials of the specified ProjectResource.

Parameters:
resource - the resource to export

exportConfirmed

public void exportConfirmed(ProjectResource resource,
                            String tag)
                     throws WTException
Export whether or not the resource has confirmed its assignments. This is only appropriate for person resources. If there is a ContainerTeamManaged associated with the plan being exported then this resource is confirmed if its associated user has confirmed participation in the container's team.

Throws:
WTException

exportResponsePending

public void exportResponsePending(ProjectResource resource,
                                  String tag)
                           throws WTException
Export whether or not the resource has been sent an invitation to the team but has not yet confirmed participation. This is only appropriate for person resources. If there is a ContainerTeamManaged associated with the plan being exported then this resource has a "pending response" if the user has been sent an invitation but has not yet confirmed participation.

Throws:
WTException

exportMaxUnits

public void exportMaxUnits(ProjectResource resource)
Export the max units of the specified ProjectResource.

Parameters:
resource - the resource to export

exportResourceUnits

public void exportResourceUnits(ProjectResource resource,
                                int units,
                                String tag)
Export the number of resources for the specified resource using the correct data format (percent or integer).


exportWork

public Work exportWork(ExecutionObject obj,
                       String tag)
                throws WTException
Export the amount of work allocated to the specified ExecutionObject.

Returns:
the total work that was exported
Throws:
WTException

exportRemainingWork

public Work exportRemainingWork(ExecutionObject obj,
                                String tag)
                         throws WTException
Export the amount of work allocated to the specified ExecutionObject.

Returns:
the total work that was exported
Throws:
WTException

exportWork

public Work exportWork(ProjectResource resource,
                       String tag)
                throws WTException
Export the amount of work allocated to the specified ProjectResource.

Returns:
the total work that was exported
Throws:
WTException

exportWork

public Work exportWork(ResourceAssignmentLink link,
                       String tag)
                throws WTException
Export the amount of work allocated to the specified ResourceAssignmentLink.

This method uses ProjResourceService.getTotalUnits(wt.projmgmt.resource.ProjectResource, wt.projmgmt.execution.ProjectActivity) which takes into account whether or not the activity has work items.

Returns:
the total work for the assignment
Throws:
WTException
See Also:
ProjResourceService.getTotalUnits(wt.projmgmt.resource.ProjectResource, wt.projmgmt.execution.ProjectActivity)

exportActualWork

public Work exportActualWork(ExecutionObject obj,
                             String tag)
                      throws WTException
Export the actual amount of work performed for the specified ExecutionObject.

Returns:
the actual work that was exported
Throws:
WTException

exportActualWork

public Work exportActualWork(ProjectResource resource,
                             String tag)
                      throws WTException
Export the actual amount of work performed by the specified ProjectResource.

Returns:
the actual work that was exported
Throws:
WTException

exportActualWork

public Work exportActualWork(ResourceAssignmentLink link,
                             String tag)
                      throws WTException
Export the actual amount of work performed for the specified ResourceAssignmentLink.

This method uses ProjResourceService.getCurrentUnits(wt.projmgmt.resource.ProjectResource, wt.projmgmt.execution.ProjectActivity, java.sql.Timestamp) which takes into account whether or not the activity has work items.

Returns:
the actual work that was exported
Throws:
WTException
See Also:
ProjResourceService.getCurrentUnits(wt.projmgmt.resource.ProjectResource, wt.projmgmt.execution.ProjectActivity, java.sql.Timestamp)

exportRemainingWork

public void exportRemainingWork(Work total,
                                Work actual,
                                String tag)
                         throws WTException
Export the RemainingWork given the total work and the actual work.

Parameters:
total - the total work
actual - the actual work
tag - the name of the tag that holds the work
Throws:
WTException

exportCost

public Currency exportCost(ProjectResource resource,
                           String tag)
                    throws WTException
Export the total cost of work allocated to the specified ProjectResource.

This method uses ProjResourceService.getTotalResourceCost(wt.projmgmt.resource.ProjectResource).

Returns:
the cost that was exported
Throws:
WTException
See Also:
ProjResourceService.getTotalResourceCost(wt.projmgmt.resource.ProjectResource)

exportCost

public Currency exportCost(ResourceAssignmentLink link,
                           String tag)
                    throws WTException
Export the total cost of work allocated to the specified ResourceAssignmentLink.

This method uses ProjResourceService.getTotalCost(wt.projmgmt.execution.ExecutionObject). When computing total cost, this method makes use of ProjResourceService.getTotalUnits(wt.projmgmt.resource.ProjectResource, wt.projmgmt.execution.ProjectActivity) which takes into account whether or not the activity has work items.

Returns:
the cost that was exported
Throws:
WTException
See Also:
ProjResourceService.getTotalCost(wt.projmgmt.execution.ExecutionObject), ProjResourceService.getTotalUnits(wt.projmgmt.resource.ProjectResource, wt.projmgmt.execution.ProjectActivity)

exportActualCost

public Currency exportActualCost(ProjectResource resource,
                                 String tag)
                          throws WTException
Export the actual cost of work performed by the specified ProjectResource.

This method uses ProjResourceService.getCurrentResourceCost(wt.projmgmt.resource.ProjectResource, java.sql.Timestamp).

Returns:
the cost that was exported
Throws:
WTException
See Also:
ProjResourceService.getCurrentResourceCost(wt.projmgmt.resource.ProjectResource, java.sql.Timestamp)

exportActualCost

public Currency exportActualCost(ResourceAssignmentLink link,
                                 String tag)
                          throws WTException
Export the actual cost of work performed for the specified ResourceAssignmentLink.

This method uses ProjResourceService.getCurrentCost(wt.projmgmt.execution.ExecutionObject, java.sql.Timestamp). When computing current cost, this method makes use of ProjResourceService.getCurrentUnits(wt.projmgmt.resource.ProjectResource, wt.projmgmt.execution.ProjectActivity, java.sql.Timestamp) which takes into account whether or not the activity has work items.

Returns:
the cost that was exported
Throws:
WTException
See Also:
ProjResourceService.getCurrentCost(wt.projmgmt.execution.ExecutionObject, java.sql.Timestamp), ProjResourceService.getCurrentUnits(wt.projmgmt.resource.ProjectResource, wt.projmgmt.execution.ProjectActivity, java.sql.Timestamp)

exportRemainingCost

public void exportRemainingCost(Currency total,
                                Currency actual,
                                String tag)
Export the RemainingCost given the total cost and the actual cost.

Parameters:
total - the total cost
actual - the actual cost
tag - the name of the tag that holds the cost

exportPlannedStart

public void exportPlannedStart(ResourceAssignmentLink link,
                               String tag)
                        throws WTException
Export the planned start of the ResourceAssignmentLink.

Throws:
WTException

exportPercentComplete

public void exportPercentComplete(ResourceAssignmentLink link,
                                  String tag)
                           throws WTException
Export the planned start of the ResourceAssignmentLink.

Throws:
WTException

exportActualStart

public void exportActualStart(ResourceAssignmentLink link,
                              String tag)
                       throws WTException
Export the actual start of the ResourceAssignmentLink.

Throws:
WTException

exportPlannedFinish

public void exportPlannedFinish(ResourceAssignmentLink link,
                                String tag)
                         throws WTException
Export the estimated finish of the ResourceAssignmentLink.

Throws:
WTException

exportActualFinish

public void exportActualFinish(ResourceAssignmentLink link,
                               String tag)
                        throws WTException
Export the actual finish of the ResourceAssignmentLink.

Throws:
WTException

exportName

public void exportName(ProjectResource resource,
                       String tag)
Export the name of the specified ProjectResource.

Microsoft Project does not allow commas or brackets in resource names, so replace these characers with acceptable characters:

Parameters:
resource - the resource to export

exportExtendedAttributeType

public void exportExtendedAttributeType(int type,
                                        String tag)
Export the type for an extended attribute.

The type can be one of the following values:


exportOID

public void exportOID(Persistable p,
                      boolean isTask0)
Export the PTC.ID and PTC.CLASS extended attributes. If isTask0 is true then 0 is used as the value for the attribute's UID element.


exportServerInfo

public void exportServerInfo(Persistable p,
                             boolean isTask0)
Export the following extended attributes:


exportWTContainer

public void exportWTContainer(ExecutionObject exObj,
                              boolean isTask0)
                       throws WTException
Export the following extended attributes:

Throws:
WTException

exportDeliverables

public void exportDeliverables(ExecutionObject exObj)
                        throws WTException
Export the PTC.DELIVERABLES extended attribute.

Throws:
WTException

exportMiscFields

public void exportMiscFields(ExecutionObject exObj)
                      throws WTException
Export the combined string (Notebook-Executionconfiguration) that is stored

Since M010, the Notebook textfield was renamed to MISC and combined with other fields

the MISC textfield contains NoteBookReference-ExecutionConfiguration|BeforeDeadline|AfterDeadline where before and after deadline are stored as days. There are 4 possible scenarios:

Throws:
WTException

exportPTCOwner

public void exportPTCOwner(ExecutionObject exObj,
                           boolean isTask0)
                    throws WTException
Export the PTC.OWNER extended attribute.

Throws:
WTException

exportStatusInfo

public void exportStatusInfo(ExecutionObject exObj,
                             boolean isTask0)
                      throws WTException
Export the PTC.RISK, PTC.RISK_DESC, PTC.STATUS, PTC.STATUS_DESC and PTC.EXEC_STATE extended attributes.

Throws:
WTException

exportSubPlanId

private void exportSubPlanId(ProjectProxy proxy)
Export the sub plan id to PTC.PROJECT if existing


exportExtendedAttribute

public void exportExtendedAttribute(Persistable p,
                                    long ea_uid,
                                    String ea_value,
                                    String ea_fieldId)
Export a value for an ExtendedAttribute. If the persistable is null then the value of the UID element is exported as 0. If ea_value is null then nothing is exported.

Parameters:
p - the persistable that the attribute applies to
ea_uid - the UID of the extended attribute
ea_value - the value for the extended attribute
ea_fieldId - the field ID for the extended attribute

exportExtendedAttribute

public void exportExtendedAttribute(Persistable p,
                                    long ea_uid,
                                    long ea_value,
                                    String ea_fieldId)
Export a value for an ExtendedAttribute.

Parameters:
p - the persistable that the attribute applies to
ea_uid - the UID of the extended attribute
ea_value - the value for the extended attribute
ea_fieldId - the field ID for the extended attribute

exportExtendedAttribute

public void exportExtendedAttribute(Persistable p,
                                    long ea_uid,
                                    EnumeratedType enum,
                                    String ea_fieldId)
Export a value for an ExtendedAttribute.

Parameters:
p - the persistable that the attribute applies to
ea_uid - the UID of the extended attribute
ea_fieldId - the field ID for the extended attribute

exportEaEstimatedStart

public void exportEaEstimatedStart(ExecutionObject obj)

exportEaEstimatedFinish

public void exportEaEstimatedFinish(ExecutionObject obj)

exportEaEstimatedDuration

public void exportEaEstimatedDuration(ExecutionObject obj)
                               throws WTException
Throws:
WTException