Skip to main content

Power of Federated MBOs - Retrieve data from external system using JSON in Maximo

Greetings!
Maximo Integration Framework supports the sharing of data between Maximo Asset Management and external systems based in many different ways. The most
common is to replicate data between the systems. However a new feature, Federated Resource, allows the sharing of external system data with Maximo without the need to replicate the data into Maximo. With Federated Resource integration,you can associate Maximo Asset Management objects with data from an external system, and persist the data outside of the Maximo Asset Management database. To do this, the external data must be exposed through a JSON REST API in order for the data to be available as a Maximo MBO.
For example - if user need Location related data like temparature, Lat or Long etc in Maximo, we can get this data from different available API. For this example I have used OpenWeatherMap api. You need to have your appid and by this you can fetch location related weather and other information.
http://api.openweathermap.org/data/2.5/weather?q=bedford&appid=<your api id>

which returns data in JSON format as-
{"coord":{"lon":-0.47,"lat":52.14},"weather":[{"id":500,"main":"Rain","description":"light rain","icon":"10d"},{"id":721,"main":"Haze","description":"haze","icon":"50d"}],"base":"stations","main":{"temp":293.42,"pressure":1009,"humidity":64,"temp_min":291.15,"temp_max":295.15},"visibility":10000,"wind":{"speed":7.7,"deg":200},"clouds":{"all":40},"dt":1534078560,"sys":{"type":1,"id":5144,"message":0.0063,"country":"GB","sunrise":1534048878,"sunset":1534102274},"id":2656046,"name":"Bedford","cod":200}

To get this data into Maximo, go to Integration > JSON Resource and create new JSON resource as-
Copy paste  sample JSON data which we are receiving from API.
In case you want this data to be used with some object in Maximo, you can choose as Parent Object for example -LOCATIONS.

For dynamically generating response we can use set URL as -
http://api.openweathermap.org/data/2.5/weather?q={LOCATIONS.SITE}&appid=<your api id>
Click on Process button.
Now go to Database Configuration and you will see a new custom non-persistent federated MBO has been created and has attributes which are coming from JSON response.

Search for Parent Object (if any) which is LOCATIONS , go to relationship tab and you will be able to see an relationship created with same name as custom federated mbo.
Now with application degsigner, we can add new tab in Location application and using this relationship we can display data to users.

Comments

Popular posts from this blog

Maximo OSLC Integration with External System- Get data in JSON format

Greetings! If you have noticed recent version of Maximo, couple new application in Integration module has been added which are OSLC Resources and OSLC Provider.These modules gives us ability to integrate with external system in JSON. OSLC is an open community that creates specifications for the integration of products and/or tools.  IBM is a leading contributor to this community and many software products within the IBM Software Group are implementing OSLC in order to enable cross-product integrations. An OSLC integration requires 2 players-  1. OSLC Consumer application 2. OSLC Provider application.   An OSLC provider application makes containers of associated resources(data) available for integration through service providers. Consumer applications then use these service providers to query resources and to create, update, and delete resource data.  The consumer application sends a query to the service provider for resource data. The service p...

TD Tool Kit - Importing new language in Multilingual Maximo environment

Greetings! +IBM MAXIMO  gives you ability to use multiple languages like Spanish , Portuguese, Chinese , Korean , French etc other than English , if your Maximo environment is global and have users across the globe. Importing a new language in Maximo can be done by TD Tool kit. TD took kit stands for Translation Data Toolkit.  The Translation Data Toolkit is used to translate the Maximo database and handling Multi Language functionality. The TDToolkit is located under the {Maximo_install}\tools\maximo directory.  The process to import new language is a 3 step activity- 1. Take Maximo down by stopping application servers. 2. Export Labels in XLIFF file format 3. Translate the XLIFF file 4. Check for error and import translated XLIFF files. 5. Validate and start Maximo. Export Labels in XLIFF file format -  In Maximo directory , XLIFF files store all the translations for different tags related with a MBO or database table. In order to expor...

Maximo- An Introduction !!

Greetings ! Very often during conversations , I have seen a strange reaction on face of people when someone say that I am consulting in Maximo and the response which most of the time you'll get from those tech-heads is - "Maximo , What is Maximo...?" so here we are trying to explain and revisit my understanding over this product Maximo. +IBM MAXIMO   is a leading enterprise level asset management product used in various industries like - Manufacturing , Automotive , Oil & Gas , Transportation , Health Care , Retail which gives you immense ability to track down the cost of an asset in plant right starting from installation to its decommissioning. It is a pioneer Asset Life Cycle and Maintenance Management Solution and part of family of software known as "CMMS"- Computerized maintenance management system. In simple term , everything is Maximo revolves around the term - Total Cost of an Asset. In today's competitive world and atmosphere of slowing...