Maximo

Maximo

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

 View Only
  • 1.  REST API - Message Tracking for specific Interface

    Posted 08/13/23 09:07 PM

    Hi ,

    I need to enable message tracking for a REST API interface. We can enable via system properties, but, it will affect globally for inbound messages. I would like to enable for a specific REST API. Is it possible via any settings / customisation.

    Kindly let me know your suggestion.

    Thanks!

    Sankar



    ------------------------------
    Sankar Ganesh
    ------------------------------


  • 2.  RE: REST API - Message Tracking for specific Interface

    Posted 08/14/23 09:13 AM

    With an object structure inbound processing automation script you can use the implicit variable request which will be the OslcRequest being made and gives you access to some of the things such as the body. But importantly it's during processing (not after) so you won't know things like the response and any errors that may have been encountered. 

    I would support this as an idea ( https://ibm-ai-apps.ideas.ibm.com/ideas/ ). I recommend opening an idea so we can add it to the product. 



    ------------------------------
    Steven Shull
    ------------------------------



  • 3.  RE: REST API - Message Tracking for specific Interface

    Posted 08/14/23 10:13 AM

    Hi Steve,

    Thanks for the suggestion. I've added this to 'IBM Ideas' portal and will share if receipve any update.

    On trying 'Automation script', Are you suggesting to call the mbo/methods of Message tracking to control specific to Object structure?

    Regards,

    Sankar



    ------------------------------
    Sankar Ganesh
    ------------------------------



  • 4.  RE: REST API - Message Tracking for specific Interface

    Posted 08/14/23 10:25 AM

    I was implying that you could do your own poor experience of Message Tracking with an integration automation script that is specific to the object structure. We talk about the launch point here: https://ibm-maximo-dev.github.io/maximo-autoscript-documentation/integration/osevents

    From there, you can use the implicit variable request to get information about the API request being made. But again, your processing is prior to completion so you won't be able to track the response code and such like you could with the mxe.int.trackrestrequests system property enabled. That's the closest approach I can think of today until we implement an enhancement. 



    ------------------------------
    Steven Shull
    ------------------------------



  • 5.  RE: REST API - Message Tracking for specific Interface

    Posted 08/15/23 01:08 AM

    Thanks Steven! Will try that.



    ------------------------------
    Sankar Ganesh
    ------------------------------