IBM Sterling Transformation Extender

Sterling Transformation Extender

Come for answers, stay for best practices. All we're missing is you.


#Sterling
#Supplychain
 View Only

Example for Java API onNotify() call required

  • 1.  Example for Java API onNotify() call required

    Posted 03/23/16 06:41 AM

    Originally posted by: steverats


    Hi,

     

    I have learned from docs in WTX directory that onNotify() method can be used to start and stop the adapters for incard and outcard data.

     

    Can anyone give a small example/syntax for that and its usage??

     

    PFA regading function.

     

    onNotify

    public abstract void 
    onNotify(int iID,
                                  int iParam,
                                  
    MBase Param)
                           throws java.lang.Exception
    
    Called to provide a notification for adapters of key events.

    The iID will be set to one of the following values:

    MPIN_ADAPTER_GETSTART Prior to any get calls for the card
    MPIN_ADAPTER_GETSTOP After all get calls for the card
    MPIN_ADAPTER_PUTSTART Prior to any put calls for the card
    MPIN_ADAPTER_PUTSTOP After all put calls for the card
    MPIN_ADAPTER_LISTENSTART Prior to any listen calls for the card
    MPIN_ADAPTER_LISTENSTOP After all listen calls for the card
    MPIN_ADAPTER_LISTENABORT Called to abort a non-polling listener
    MPIN_ADAPTER_MAPABORT When a map is cancelled by user action
    MPIN_OBJECT_PREPARE_DESTROY Called prior to an object being destroyed
     

    #IBM-Websphere-Transformation-Extender
    #IBMSterlingTransformationExtender
    #DataExchange