psdi.dm.procclass

Class DMWFProcess

    • Constructor Detail

      • DMWFProcess

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

      • checkBusinessRules

        public int checkBusinessRules()
                               throws MXException,
                                      java.rmi.RemoteException
        Overriden from base class. If incoming action is ADD it needs to be insert. It also sets process revision to null thereby causing new process to get created withing mbo logic because key on process is process name and revision number.If action is change , then update the workflow
        Overrides:
        checkBusinessRules in class MosProcessImpl
        Returns:
        PROCESS (means continue to process)
        Throws:
        MXException - MAXIMO exception
        java.rmi.RemoteException - Remote exception
      • deleteAll

        public void deleteAll(MboRemote owner,
                              MboSetRemote mboSet)
                       throws MXException,
                              java.rmi.RemoteException
        overridden method to the callback to 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
      • checkBusinessRules

        public int checkBusinessRules(MboSetRemote mboSet,
                                      java.lang.String processTable)
                               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
        processTable - - 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 objectName)
                               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