Executing Asynchronous Job Using Maximo Automation Script

Introduction:

From Maximo 7.6.1.2 onwards, IBM has enhanced the Automation Script to support scripts that can be run as asynchronous jobs.

prSet= service.getMboSet("PR", userInfo)
prSet.setWhere(whereclause)
prSet.reset()
prMbo = prSet.moveFirst()
if prMbo:
prMbo.setValue("DESCRIPTION", "Modification via PR Async Job Worked ")
prSet.save()
prSet.close()

Step2:

Add this Asynchronous Job Script Name in “ASYNCJOBNAME” Domain as shown below:

Step3:

In the Automation Script application, add a script to run the asynchronous job. I have created a script for PR Object Launch Point

asyncSet = mbo.getMboSet("PRASYNCSCRIPT", "ASYNCSCRIPT","1=1")
asyncMbo = asyncSet.setup()
asyncMbo.setValue("AUTOSCRIPT","PRASYNCJOB")
asyncMbo.setValue("OBJECTNAME","PR")
asyncMbo.setValue("WHERECLAUSE","prid="+str(mbo.getUniqueIDValue()))
asyncMbo.execute()

Step4:

Now, Create a PR without a description and save the record & then refresh the PR record and note that the description field is updated via the async job script.

--

--

— Maximo Technical Consultant at EAM360

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store