psdi.iface.app.swcatalog.mea

Class ExternalTransformation

  • java.lang.Object
    • psdi.iface.app.swcatalog.mea.ExternalTransformation


  • public class ExternalTransformation
    extends java.lang.Object
    Methods for transforming XLM outside of the MEA and running MEA loads against the transformed files. These methods were required because, as of base services 7.1.1.3, the splitter takes all sibling elements in addition to the element selected by the split tag. In future releases a filter may be available. The SwKBT files include too much information in sibling elements for efficient processing, so we transform to native Maximo format before loading the files into Enterprise Services. The splitter then creates a minimum-sized message for each Mbo object.
    Since:
    7.2
    See Also:
    psdi.iface.stax
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void runMeaLoad(java.lang.String xmlInputFilePath, java.lang.String serviceName)
      Process XML file data by reading the file from filesystem through Enterprise Services load.
      void transformXml(java.lang.String xslfile, java.lang.String catalogId, java.lang.String xmlInputFilePath, java.lang.String xmlOutputFilePath)
      Run a single xsl transformation from input file to output file using xsl file.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ExternalTransformation

        public ExternalTransformation()
    • Method Detail

      • transformXml

        public void transformXml(java.lang.String xslfile,
                                 java.lang.String catalogId,
                                 java.lang.String xmlInputFilePath,
                                 java.lang.String xmlOutputFilePath)
                          throws MXSystemException
        Run a single xsl transformation from input file to output file using xsl file.
        Parameters:
        xslfile - name without the .xsl, found in the package psdi.iface.app.swcatalog.mea
        xmlInputFilePath - path and name of file to be transformed
        xmlOutputFilePath - path and name of output file
        Throws:
        MXSystemException
      • runMeaLoad

        public void runMeaLoad(java.lang.String xmlInputFilePath,
                               java.lang.String serviceName)
                        throws MXSystemException
        Process XML file data by reading the file from filesystem through Enterprise Services load. This method calls the XmlFileLoaderImpl#processXMLData(InputStream, String, String, RecoveryService) method. Write into recorvery file in case of error.
        Parameters:
        xmlInputFilePath - File to be processed
        serviceName - Name of Enterprise Service
        Throws:
        MXSystemException