Package wt.ixb.pdx

Class PDXExportHelper

java.lang.Object
wt.ixb.pdx.PDXExportHelper

public class PDXExportHelper extends Object

This is a helper class for export in PDX format. Creates pdx file in a specified directory on server.

The property which may be set/overridden are:

  • If a customized xsl file will be used for transforming Windchill XML to PDX transformations, set 'pdx.export.xslFilePath=[absolute path to xsl file]' in wt.properties. If the property is not set, than either wcxml2pdx.xsl or wcxml2pdx_agile.xsl will be used, depending on the value of pdx.AgileCompatible property.
  • The corresponding DTD must be set as 'pdx.export.dtdFilePath=[absolute path to dtd file]' in wt.properties. By default Agile_07.dtd is used for Agile and IPC_2571.dtd for PDX.
  • By default, 'Agile Compatible' version of PDX 0.7 format will be used (pdx.AgileCompatible=true). If you need to export to standard PDX 1.0, set 'pdx.AgileCompatible=false' in wt.properties


  • Supported API: true

    Extendable: false

    • Method Details

      • doExportToPDX

        public static void doExportToPDX(WTContainerRef container, ExportPackageForPDX expPackage, String attachmentOption, File dirToSave, String zipName) throws WTException
        Creates pdx file on server.

        Supported API: true
        Parameters:
        container - Source container
        expPackage - Export package
        attachmentOption - Attachments option. Possible values are:
          a) PDXExportHandler.XML_VALUE_ATTACHMENTS - content files are included into pdx package (default option)
          b) PDXExportHandler.XML_VALUE_NO_ATTACHMENTS - content files are ignored (not mentioned in pdx.xml)
          c) PDXExportHandler.XML_VALUE_ATTACHMENTS_AS_FILE_NAMES - content files are mentioned in pdx.xml but are not included into zip
        dirToSave - directory on server where the resulting pdx file will be stored
        zipName - name for the resulting pdx file (pass name without extension since extension '.pdx' is added)
        Throws:
        WTException
      • doExportToPDX

        public static void doExportToPDX(ExportPackageForPDX expPackage, String attachmentOption, File dirToSave, String zipName) throws WTException
        Creates pdx file on server using the Site Container.

        Supported API: true
        Parameters:
        expPackage - Export package
        attachmentOption - Attachments option. Possible values are:
          a) PDXExportHandler.XML_VALUE_ATTACHMENTS - content files are included into pdx package (default option)
          b) PDXExportHandler.XML_VALUE_NO_ATTACHMENTS - content files are ignored (not mentioned in pdx.xml)
          c) PDXExportHandler.XML_VALUE_ATTACHMENTS_AS_FILE_NAMES - content files are mentioned in pdx.xml but are not included into zip
        dirToSave - directory on server where the resulting pdx file will be stored
        zipName - name for the resulting pdx file (pass name without extension since extension '.pdx' is added)
        Throws:
        WTException