psdi.iface.app.inventory

Class MaxApiInvProcess

    • Constructor Detail

      • MaxApiInvProcess

        public MaxApiInvProcess()
                         throws MXException,
                                java.rmi.RemoteException
        Constructor
        Throws:
        MXException - maximo exception
        java.rmi.RemoteException - remote exception
    • Method Detail

      • setAdditionalData

        public void setAdditionalData(MboSetRemote mboSet,
                                      java.lang.String tableName)
                               throws MXException,
                                      java.rmi.RemoteException
        Overriden from base class. COSTTYPE will be replaced by NEWCOSTTYPE when record is a REPLACE, otherwise COSTTYPE from incoming file will be set to COSTTYPE.
        Overrides:
        setAdditionalData in class MosProcessImpl
        Parameters:
        mboSet - Give MboSet for the current level.
        tableName - Give name of process MAXIMO table
        Throws:
        MXException - MAXIMO exception
        java.rmi.RemoteException - Remote exception
      • checkBusinessRules

        public int checkBusinessRules(MboSetRemote mboSet,
                                      java.lang.String tableName)
                               throws MXException,
                                      java.rmi.RemoteException
        Method to call back and find out can we process data from specific table.
        Overrides:
        checkBusinessRules in class MosProcessImpl
        Parameters:
        mboSet - - The MboSet for the current processing table
        tableName - - Give name of process MAXIMO table
        Returns:
        - PROCESS, SKIP indicating can we take data from specific table or not
        Throws:
        MXException - - MAXIMO exception
        java.rmi.RemoteException - - Remote exception
      • copyParentKey

        public void copyParentKey(java.lang.String attributeName,
                                  java.lang.String value)
                           throws MXException,
                                  java.rmi.RemoteException
        Copy parent key to a child if value does not exists in the child exception is made for MATRECTRANS table as location here is oplocation
        Overrides:
        copyParentKey in class MosProcessImpl
        Parameters:
        attributeName - attribute name in child
        val - value from parent mbo to set
        Throws:
        MXException - MAXIMO exception
        java.rmi.RemoteException - Remote exception