Create a Maximo Work-Order from an IoT device
Maximo Work-Order from an IoT device
In my previous article I shown how to connect my Texas Instrument SensorTag to the cloud. I was able to catch the environment temperature, the environment light and the air pressure and I displayed the real-time data on a web dashboard.
In this article I’m showing you how to create a Maximo Work-Order from an IoT device. I used the sensorTag to monitor the room’s temperature and if the detected temperature is more than 23° Celsius a Work-Order (WO) is opened against Maximo. The WO consists in an asset inspections for maintenance (the asset is my room conditional unit).
To implement the scenario I used node-RED on Bluemix. Node-RED is a tool for wiring together hardware devices, APIs and online services in new and interesting ways. Node-RED is based on Node.js, the applications run as a web server, and you customize and manipulate functional “flows”. I extended my previous IoT flow with a switch node and with a http request node. When the ambient temperature is less than 23° Celsius the switch node routes the flow in the debug window, contrariwise when the ambient temperature is more (or equal) to 23° Celsius the switch node routes the flow versus the http request node. In this case a Maximo rest API is invoked to open a Work Order. Here the complete node-RED flow:
The input node receives events sent from devices, by lightweight MQTT messaging protocol, and it produces an object called msg and sets msg.payload to be a string containing the payload of the incoming message. I wired the input node with a debug node to check in real-time the data sent from my device:
In the http request node I set in the URL parameter the Maximo rest API to open a WO:
I wired the http request node with a debug node to check in real-time the Work-Order created, in debug windows I am able to receive the classic XML response from Maximo integration framework:
Of course to implement this flow type the Maximo server must be reachable from node-RED over Internet to call the rest API. Here the Maximo Work-Order from an IoT device:
According IBM estimate, by 2020 over 470 million smart connected major home appliances will be installed globally. From refrigerators, clothes dryers and dishwashers to coffee machines, robotic vacuums and electric toothbrushes, IBM is helping the electronics industry capitalize on the promise of the Internet of Things. The future is to collect data from connected devices and apply advanced analytics to reveal insights in real time.
In my simple example I addressed a real Customer scenario using a fully integrated cloud-based IoT solution, building logic around device data to enable asset maintenance on Maximo, but the possible scenarios are countless and I will try to explore it 🙂
Comments and feedbacks are welcomed.
Hai Have You ever found the answere to create a WO using Json Objects in Maximo?
Hi,
please post the question in Q&A section, I’m going to disable post’s comment
Hi,
please post the question in Q&A section, I’m going to disable post’s comment
It works after I try many times,thanks.
Can you show the detail of creating the WO based on parameters as a JSON object? thanks.
Hi, thanks for reading.
In my node-red flow I got:
return {payload:msg.payload.d.ambient_temp};
and used in WO as parameter before to call http post:
var maximoRest = “http://maximo-hostname/maxrest/rest/os/MXMETERDATA?_action=AddChange&location=MYHOME&siteid=FIDENZA&metername=TEMP&newreading=”;
msg.url = maximoRest + msg.payload + “&newreadingdate=” + dateNow + “&_lid=maxadmin&_lpwd=XYZ”;
it works fine.
post your problem in details.
Hi, and nice work
Have you tried to do the same by creating the WO based on parameters as a JSON object? I have a simular demo, using an HTTP post integration, but I try to create the WO with more data without sending everything in the URL… without success
Thanks for reading and for feedback !
Wonderful demo 🙂
thanks a lot ! great comment
Great idea. I feel this should be the future of Enterprise Asset Management & its so wonderful to see that its a success. All the best for your future endeavors.