Maximo

Maximo

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

 View Only
  • 1.  Implementation of CHANGESTATUS function without Java Class

    Posted 4 hours ago

    Hi, I have just created a new application in Manage based on a custom object. Its class is "psdi.mbo.custapp.CustomMboSet" and I have successfully created the relationships, domains, fields and non-persistent object for the CHANGESTATUS dialog etc. How can we implement the CHANGESTATUS function in this custom object without actually using a Java class? When I was trying to call the CHANGESTATUS function on the mbo from an automation script it gives an error "psdi.mbo.custapp.custommbo object has no attribute changestatus".

    Any suggestions to implement a solution or workaround will be appreciated.

    Thank you.



    ------------------------------
    Anurag Chugh
    Data Engineer
    objec3d
    Melbourne, Australia
    https://www.objec3d.com/
    ------------------------------


  • 2.  RE: Implementation of CHANGESTATUS function without Java Class

    Posted 51 minutes ago

    Hi Anurag,

    I must admit that I'm not entirely sure whether this is doable without Java customization but I highly doubt that. I would love to hear from other community members what are your experiences?

    Here is a couple reflections of mine.

    Just by looking at other examples across Maximo to properly support status changes your MBO should extend psdi.mbo.StatefulMbo and implement abstract methods psdi.mbo.StatefulMbo#getStatusHandler, psdi.mbo.StatefulMbo#getStatusHistory and psdi.mbo.StatefulMbo#getStatusListName. Your object may need to have additional attributes as well.

    Automation Scripting framework is powerful and allows you to define classes in runtime. Perhaps, except of being "hacky", this could be one way of providing your custom StatefulMbo implementation...



    ------------------------------
    Andrzej Więcław
    Maximo Technical SME
    Naviam
    Wrocław, Poland

    If this post was helpful, please click the Like button to let others know.
    ------------------------------