psdi.dm.procclass

Class DMMaxTkTemplateProcess

    • Constructor Detail

      • DMMaxTkTemplateProcess

        public DMMaxTkTemplateProcess()
                               throws MXException,
                                      java.rmi.RemoteException
        default constructor
        Throws:
        MXException
        java.rmi.RemoteException
    • Method Detail

      • setAdditionalData

        public void setAdditionalData(MboSetRemote mboSet,
                                      java.lang.String tableName)
                               throws MXException,
                                      java.rmi.RemoteException
        Set additional data. classstructureid is a internal ID field that gets generated automatically when a classification is created. Since it is an internal id, the external system will not know about this id. Add a non-persistent field called HIERARCHYPATH to the TKTEMPLATE mbo and include that non-persistent field in the object structure. Make CLASSSTRUCTUREID field in TKTEMPLATE mbo as "Setting Restricted". When the customer provide a value in the Hierarchypath field, then below piece of code can get the correct classstructure id from classstructure table and set it to TKTEMPLATE mbo.
        Overrides:
        setAdditionalData in class MosProcessImpl
        Parameters:
        mboSet - the mboset
        tableName - the table name
        Throws:
        MXException - Maximo Exception
        java.rmi.RemoteException - Remote Exception
      • checkBusinessRules

        public int checkBusinessRules(MboSetRemote mboSet,
                                      java.lang.String tableName)
                               throws MXException,
                                      java.rmi.RemoteException
        Description copied from class: MosProcessImpl
        Default method to call back and find out can we process data.
        Overrides:
        checkBusinessRules in class MosProcessImpl
        Parameters:
        mboSet - Give MboSet for the current level.
        tableName - Give of the table to process.
        Returns:
        PROCESS (means continue to process)
        Throws:
        MXException - MAXIMO exception
        java.rmi.RemoteException - Remote exception
      • createMboSet

        public MboSetRemote createMboSet(boolean primaryMbo,
                                         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:
        parentMbo - Give reference to parent Mbo.
        micInfo - Give MicSetInfo for the current level.
        processTable - Give name of table to process
        Throws:
        MXException - MAXIMO exception
        java.rmi.RemoteException - Remote exception