Saturday 19 December 2015

Function Defination and Call in Automation Script - IBM Maximo

Some time its helpful to define a function in automation script to avoid repitation, just recall the function, pass parameter, if function definition set to accept parameters
Suppose in our example we create a function to getMboSet

#Function definition
def getMboSet(objectName):
      return MXServer.getMXServer().getMboSet(objectName, mbo.getUserInfo())

#Function Call
wo = getMboSet("PR")

No comments:

Post a Comment