psdi.iface.app.pc

Class MaxPCProcess

    • Constructor Detail

      • MaxPCProcess

        public MaxPCProcess()
                     throws MXException,
                            java.rmi.RemoteException
        default constructor
        Throws:
        MXException - MAXIMO exception
        java.rmi.RemoteException - Remote exception
    • Method Detail

      • createMboSet

        public MboSetRemote createMboSet(boolean isPrimaryMbo,
                                         MboRemote parentMbo,
                                         MosDetailInfo mdi,
                                         java.lang.String processTable)
                                  throws MXException,
                                         java.rmi.RemoteException
        Create mbo and mbo set sets for incomig transactions.
        Overrides:
        createMboSet in class MosProcessImpl
        Parameters:
        isPrimaryMbo - Give boolean to specify is it primary table or additional table
        parentMbo - The parent mbo of this MboSet to be created
        mdi - The object sturcture info
        processTable - The 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
      • setAdditionalData

        public void setAdditionalData(MboSetRemote mboSet,
                                      java.lang.String tableName)
                               throws MXException,
                                      java.rmi.RemoteException
        Call back method to set all values which was not set. Called per mbo after the mbo fields has been set.
        Overrides:
        setAdditionalData in class MosProcessImpl
        Parameters:
        mboSet - The MboSet of the currently processed mbo.
        objectName - the name of the currently processed mbo.
        Throws:
        MXException - MAXIMO exception
        java.rmi.RemoteException - Remote exception
      • presetMboRules

        public int presetMboRules()
                           throws MXException,
                                  java.rmi.RemoteException
        Default method to call back and find out do we need to set data.
        Overrides:
        presetMboRules in class MosProcessImpl
        Returns:
        PROCESS or BYPASS
        Throws:
        MXException - MAXIMO exception
        java.rmi.RemoteException - Remote exception
      • checkValidateErrors

        public void checkValidateErrors()
                                 throws MXException,
                                        java.rmi.RemoteException
        Default method to check all validation errors and try to fix it
        Overrides:
        checkValidateErrors in class MosProcessImpl
        Throws:
        MXException - MAXIMO exception
        java.rmi.RemoteException - Remote exception