Thanks for the detailed reply.
I have questions about step 7.
In my case, Maximo will be calling a REST API of another app to fetch data in bulk.
At step 7,
- about populating, we need to populate two different tables with same data? mxin_inter_trans and related IFACE table
- The best approach is to write an automation script that will call the API of third party app.
e.g. GET abc.com/meterdata
and then process the response and populate the above mentioned tables using the automation script.
or is there any other way to do that
------------------------------
Rana Ahmed
Maximomize
------------------------------
Original Message:
Sent: 09-06-2024 17:03
From: Alex Walter
Subject: Integration best practice to get data from an external API in to maximo
There is a non-persistent object in Maximo called METERDATA that you can use to process inbound meter readings against assets.
For the integration tables approach, which offers asynchronous processing, the steps would be something like:
- Create an Object Structure similar to the MXMETERDATA Object Structure in Maximo
- Create an Enterprise Service against that Object Structure
- This is where you would enable Message Tracking
- Create an External System against that Enterprise Service / Object Structure with an MXIFACETABLE End Point
- Create the IFACE table(s) through the External Systems application
- Turn on the IFACETABLECONSUMER Cron Task
- Turn on the JMSQSEQCONSUMER Cron Task (if the External System is configured for sequential processing - not needed if configured for continuous processing)
- Write a program to call the API and write corresponding records to the mxin_inter_trans table and the related IFACE table.
For synchronous processing, you can use the Maximo REST API. I understand it may not fit your use case, but has less moving parts:
POST https://[hostname]/maximo/api/os/mxapimeterdata?lean=1apikey: [your API Key]Content-Type: application/jsonx-method-override: SYNC{ "assetnum": "11430", "siteid": "BEDFORD", "metername": "O-PRESSUR", "newreading": 4500}
Hope this helps,
------------------------------
Alex Walter
A3J Group LLC
------------------------------