Friday 8 December 2017

Stop Work Order Creation When The Asset is Down (Condition Monitoring) Using Automation Script | IBM Maximo

Maximo will not (automatically or manually) create work order from condition monitoring when the selected asset is down using the following automation script.

  • Launch Point: Object Lauch Point
  • Business object:  WORKORDER
  • Script Language: Python
  • Variables: 
    • asset (bind variable isrunning using relation MEASUREPOINT.ASSET.ISRUNNING)
    • point (bind variable POINTNUM)
  • Event: Save, Add, Before Save
      
  • Create error message in database configuration with errorgroup = 'assetup' and errorkey = 'mpassetup'
  • Code:
            if asset ==0 and point is not None :
                  errorgroup = 'assetup'                  
                  errorkey = 'mpassetup'



No comments:

Post a Comment