com.ibm.tivoli.maximo.interaction.process

Class InteractionBinder

  • java.lang.Object
    • com.ibm.tivoli.maximo.interaction.process.InteractionBinder
    • Field Detail

      • INTERACTIONLOGGER

        public static final MXLogger INTERACTIONLOGGER
        Interaction logger for logging messages related to Interaction.
    • Constructor Detail

      • InteractionBinder

        public InteractionBinder(java.lang.String interactionName)
                          throws MXException,
                                 java.rmi.RemoteException
        Constructor
        Parameters:
        interactionName - name of the interaction
        Throws:
        MXException - MAXIMO exception
        java.rmi.RemoteException - Remote exception
    • Method Detail

      • bind

        public void bind(MboSetRemote interactionSet,
                         MboRemote mainMbo,
                         boolean isResponse)
                  throws MXException,
                         java.rmi.RemoteException
        Main method of binding. It will be overriden for request or response
        Parameters:
        interactionSet - Starting Mbo set to map data to
        mainMbo - Primary MBo for the interaction mapping
        isResponse - request vs response indicator
        Throws:
        MXException - MAXIMO exception
        java.rmi.RemoteException - Remote exception
      • bindInteractionData

        public void bindInteractionData(MboRemote sourceMbo,
                                        MboRemote targetMbo,
                                        IntMappingInfo mapping)
                                 throws MXException,
                                        java.rmi.RemoteException
        Process mapping for the individual level in request or response
        Parameters:
        sourceMbo - Source Mbo of the mapping
        targetMbo - Target Mbo of the mapping
        mapping - Interaction mapping info
        Throws:
        MXException - MAXIMO exception
        java.rmi.RemoteException - Remote exception
      • bindData

        public void bindData(MboRemote sourceMbo,
                             MboRemote targetMbo,
                             java.lang.String parameter,
                             java.lang.String value)
                      throws MXException,
                             java.rmi.RemoteException
        Map individual attribute from source to target
        Parameters:
        sourceMbo - Source Mbo of the mapping
        targetMbo - Target Mbo of the mapping
        parameter - Target attribute to map
        value - value to use for mapping
        Throws:
        MXException - MAXIMO exception
        java.rmi.RemoteException - Remote exception
      • findMbo

        protected MboRemote findMbo(MboRemote sourceMbo,
                                    MboSetRemote targetSet,
                                    IntMappingInfo mapping,
                                    java.lang.String action)
                             throws MXException,
                                    java.rmi.RemoteException
        Find Mbo in target based on the mapped keys
        Parameters:
        sourceMbo - Source Mbo of the mapping
        targetSet - Target MboSet to find a Mbo
        mapping - Interaction mapping info
        action - Process action
        Throws:
        MXException - MAXIMO exception
        java.rmi.RemoteException - Remote exception
      • findKeyName

        public IntMappingDetailInfo findKeyName(IntMappingInfo mapping,
                                                java.lang.String keyName)
                                         throws MXException,
                                                java.rmi.RemoteException
        Find key column in the mapping
        Parameters:
        mapping - Interaction mapping info
        keyName - Key name
        Throws:
        MXException - MAXIMO exception
        java.rmi.RemoteException - Remote exception
      • getKeyValue

        public java.lang.String getKeyValue(MboRemote sourceMbo,
                                            java.lang.String value)
                                     throws MXException,
                                            java.rmi.RemoteException
        Get value for key column
        Parameters:
        sourceMbo - Source Mbo of the mapping
        value - Value to process
        Throws:
        MXException - MAXIMO exception
        java.rmi.RemoteException - Remote exception
      • formatColumn

        public java.lang.String formatColumn(MboRemote sourceMbo,
                                             java.lang.String name)
                                      throws MXException,
                                             java.rmi.RemoteException
        Format Column value based of the MaxType
        Parameters:
        sourceMbo - Source Mbo of the mapping
        name - Attribute name
        Throws:
        MXException - MAXIMO exception
        java.rmi.RemoteException - Remote exception
      • getRelatedSets

        public void getRelatedSets(MboRemote sourceMbo,
                                   java.lang.String value,
                                   java.util.List relatedSets)
                            throws MXException,
                                   java.rmi.RemoteException
        Find all related MboSets for asource Mbo
        Parameters:
        sourceMbo - Source Mbo of the mapping
        value - Value
        relatedSets - List of related sets
        Throws:
        MXException - MAXIMO exception
        java.rmi.RemoteException - Remote exception