psdi.iface.app.ap

Class MaxAPProcess

    • Field Detail

      • lineNumSet

        protected java.util.Map lineNumSet
    • Constructor Detail

      • MaxAPProcess

        public MaxAPProcess()
                     throws MXException,
                            java.rmi.RemoteException
        Construct the set
        Throws:
        MXException
        java.rmi.RemoteException
    • Method Detail

      • 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
      • deleteAll

        public void deleteAll(MboRemote owner,
                              MboSetRemote mboSet)
                       throws MXException,
                              java.rmi.RemoteException
        Description copied from class: MosProcessImpl
        Default method to call back delete all Mbo's in MboSet
        Overrides:
        deleteAll in class MosProcessImpl
        Parameters:
        owner - Give reference to parent Mbo.
        mboSet - Give MboSet for the current level.
        Throws:
        MXException - MAXIMO exception
        java.rmi.RemoteException - Remote exception
      • presetMboRules

        public int presetMboRules()
                           throws MXException,
                                  java.rmi.RemoteException
        Description copied from class: MosProcessImpl
        Default method to call back and find out do we need to set data. This method will return always PROCESS and can be overridden in MicSet
        Overrides:
        presetMboRules in class MosProcessImpl
        Returns:
        PROCESS (means continue to process)
        Throws:
        MXException - MAXIMO exception
        java.rmi.RemoteException - Remote exception
      • compareMboKeyValues

        public boolean compareMboKeyValues(MboSetRemote mboSet,
                                           MosDetailInfo mdi,
                                           java.lang.String[] keys)
                                    throws MXException,
                                           java.rmi.RemoteException
        Default method to try to find in memory MBO with the keys matched with XML data for the currebt level
        Overrides:
        compareMboKeyValues in class MosProcessImpl
        Parameters:
        mboSet - Give reverence to current MboSet
        micInfo - The integration object info
        keys - Keys of the object
        Returns:
        Boolean indicating that compare was sucessfull or not
        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
        Parameters:
        errors - Give Hastable with all errors
        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
      • changeStatus

        public void changeStatus(MboRemote setMbo,
                                 java.lang.String stat,
                                 java.lang.String memo)
                          throws MXException,
                                 java.rmi.RemoteException
        Call actual ctatus change in Mbo.
        Overrides:
        changeStatus in class StatefulMicSetIn
        Parameters:
        setMbo - Mbo to change status
        stat - new status
        memo - status change memo
        Throws:
        MXException - MAXIMO exception
        java.rmi.RemoteException - Remote exception
      • checkBusinessRules

        public int checkBusinessRules()
                               throws MXException,
                                      java.rmi.RemoteException
        For reversal type invoices there should always be a reversal reason, if not throw exception.
        Overrides:
        checkBusinessRules in class MosProcessImpl
        Returns:
        PROCESS (means continue to process)
        Throws:
        MXException - MAXIMO exception
        java.rmi.RemoteException - Remote exception