psdi.iface.app.rcv

Class MaxRCVProcess

    • Constructor Detail

      • MaxRCVProcess

        public MaxRCVProcess()
                      throws MXException,
                             java.rmi.RemoteException
        Constructor
        Throws:
        MXException - Maximo Exception
        java.rmi.RemoteException - Remote Exception
    • Method Detail

      • checkBusinessRules

        public int checkBusinessRules()
                               throws MXException,
                                      java.rmi.RemoteException
        Overriden from base class. This validates the incoming action to be insert. It also validates ISSUETYPE to be either RECEIPT or RETURN.
        Overrides:
        checkBusinessRules in class MosProcessImpl
        Returns:
        PROCESS (means continue to process)
        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.
        tableName - the name of the currently processed mbo.
        Throws:
        MXException - MAXIMO exception
        java.rmi.RemoteException - Remote exception
      • createMboSet

        public MboSetRemote createMboSet(boolean primaryMbo,
                                         MboRemote parentMbo,
                                         MosDetailInfo micInfo,
                                         java.lang.String processTable)
                                  throws MXException,
                                         java.rmi.RemoteException
        Call back method to create mbo and mbo set sets for incoming transactions.
        Overrides:
        createMboSet in class MosProcessImpl
        Parameters:
        primaryMbo - Give boolean to specify is it primary table or additional table
        parentMbo - The parent mbo of this MboSet to be created
        micInfo - The integration object info
        processTable - The name of process MAXIMO table
        Throws:
        MXException - MAXIMO exception
        java.rmi.RemoteException - Remote exception
      • findWINSPMatRec

        public MboRemote findWINSPMatRec()
                                  throws MXException,
                                         java.rmi.RemoteException
        09-15605: if this is equivalent to Change Inspection Status, then should find the WINSP Matrectrans record, instead of creating new matrec
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException
      • findWINSPMatRecINV

        public MboRemote findWINSPMatRecINV()
                                     throws MXException,
                                            java.rmi.RemoteException
        Inventory Usage: If this is equivalent to Change Inspection Status, then should find the WINSP Matrectrans record, instead of creating new matrec
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException
      • getRevisionNumber

        public int getRevisionNumber()
                              throws MXException,
                                     java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • findValidStatusPO

        public MboRemote findValidStatusPO()
                                    throws MXException,
                                           java.rmi.RemoteException
        Purchase Orders exist in database with different revisions. Find an active purchase order. Here is the order to get active purchase order. 1) Return null PO if PO doesn't exist. 2) Return APPR/INPRG PO if it exists. 3) Display error message for history status of POs. PO Set could have one APPR/INPRG PO and/or PNDREV and/or history POs. PO revision status: example 1 - REVISE, REVISE, APPR, PNDREV. Active PO is APPR. example 2 - REVISE, APPR. Active PO is APPR. example 3 - WAPPR. No active PO exists. Display error message example 4 - REVISE, REVISE, CLOSE. No active PO exists. Display error message
        Returns:
        Purchase Order
        Throws:
        MXException
        java.rmi.RemoteException
      • findOriginalReceipt

        public MboRemote findOriginalReceipt()
                                      throws MXException,
                                             java.rmi.RemoteException
        Get the Original Matrectrans Receipt for this Void Receipt. Order of selection: 1) If the Void Receipt has a value in RECEIPTREF, use that to find the receipt 2) If the Void Receipt has a value in ORGRCVEXTERNALREFID and SOURCESYSID use those to find the Receipt 3) ELSE... throw an error message if the Receipt cannot be located
        Returns:
        Matrectrans Receipt
        Throws:
        MXException
        java.rmi.RemoteException
      • findOriginalReceiptforReturn

        public MboRemote findOriginalReceiptforReturn()
                                               throws MXException,
                                                      java.rmi.RemoteException
        Get the Original Matrectrans Receipt for this Void Receipt. Order of selection: 1) If the Void Receipt has a value in RECEIPTREF, use that to find the receipt 2) If the Void Receipt has a value in ORGRCVEXTERNALREFID and SOURCESYSID use those to find the Receipt 3) ELSE... throw an error message if the Receipt cannot be located
        Returns:
        Matrectrans Receipt
        Throws:
        MXException
        java.rmi.RemoteException
      • findOriginalReceiptToVoid

        public MboRemote findOriginalReceiptToVoid()
                                            throws MXException,
                                                   java.rmi.RemoteException
        Get the Original Matrectrans Receipt for this Void Receipt. Order of selection: 1) If the Void Receipt has a value in RECEIPTREF, use that to find the receipt 2) If the Void Receipt has a value in ORGRCVEXTERNALREFID and SOURCESYSID use those to find the Receipt 3) ELSE... throw an error message if the Receipt cannot be located
        Returns:
        Matrectrans Receipt
        Throws:
        MXException
        java.rmi.RemoteException
      • presetMboRules

        public int presetMboRules()
                           throws MXException,
                                  java.rmi.RemoteException
        Default method to call back and find out do we need to set data. This method will return always PROCESS and is overriden in this file to bypass for the return of rotating assets
        Overrides:
        presetMboRules in class MosProcessImpl
        Returns:
        PROCESS (means continue to process) or BYPASS
        Throws:
        MXException - MAXIMO exception
        java.rmi.RemoteException - Remote exception
      • findOriginalReceiptforRotAssetsReturn

        public MboRemote findOriginalReceiptforRotAssetsReturn()
                                                        throws MXException,
                                                               java.rmi.RemoteException
        12-14195/IV26875: still attempts to find the original receipt when receiptref is not included in inbound xml. User intends to return the rotating assets received via PO. So there was more than likely a receipt matrectrans.
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException
      • setReceiptRef

        public void setReceiptRef(MboRemote origReceipt)
                           throws MXException,
                                  java.rmi.RemoteException
        If original receipt is not null, copy matrectransid/servrectransid to new report RECEIPTREF.
        Throws:
        MXException
        java.rmi.RemoteException
      • findValidStatusPOForReturn

        public MboRemote findValidStatusPOForReturn()
                                             throws MXException,
                                                    java.rmi.RemoteException
        Purchase Orders exist in database with different revisions. Find an active purchase order. Here is the order to get active purchase order. 1) Return null PO if PO doesn't exist. 2) Return APPR/INPRG/CLOSE PO if it exists. PO Set could have one APPR/INPRG PO and/or PNDREV and/or history POs. PO revision status: example 1 - REVISE, REVISE, APPR, PNDREV. Active PO is APPR. example 2 - REVISE, APPR. Active PO is APPR. example 3 - WAPPR. No active PO exists. Display error message example 4 - REVISE, REVISE, . No active PO exists. Display error message
        Returns:
        Purchase Order
        Throws:
        MXException
        java.rmi.RemoteException