Maximo

Maximo

Come for answers, stay for best practices. All we're missing is you.

 View Only

How to rewrite a Maximo java class to auto script 

Wed April 26, 2023 05:35 PM

Dear expert,
We are on Mximo 7.6.1. We have a bean class:
PlusAWOAppBean extends psdi.plusa.webclient.beans.workorder.PlusAWOAppBean  
it is the beanclass of a workorder application. in this workorder app, we can remove virtual assets. I need to move the virtual asset removal code to autoscript.

there is two lines of code  most tough to me.: 
  WORemote woRemote = (WORemote) getMbo();     
  boolean repairFacilityEnabled =
           CommonUtil.isRepairFacilityEnabled(woRemote, getMXSession().getMXServerRemote());

CommonUtil is from psdi.util.CommonUtil
WORemote is  psdi.app.workorder.WORemote

My question:
1) Hot to translate the code  getMXSession().getMXServerRemote() in python?   this issue blocks my work.
2) Could I use the implicit variable mbo directly in my python program in place of the woRemote?
Thank you,
Eric


Statistics
0 Favorited
20 Views
0 Files
0 Shares
0 Downloads