Maximo Open Forum

 View Only
  • 1.  How to have required default data in all work order

    Posted 05-10-2022 13:01
    Hi everyone,

       I want to have default data in long description  for all work-order created by the user (excluding the PM generated Workorders) Is it possible in MAXIMO.
    #WorkManagement

    ------------------------------
    Divakar Mani
    Qaiwan Group
    ------------------------------


  • 2.  RE: How to have required default data in all work order

    Posted 05-10-2022 21:05
    Have you thought about using an automation script?  The question is when do you need it to fire.

    ------------------------------
    Regards,
    Craig Kokay
    ISW
    Maximo Practice Manager
    eMail: ckokay@isw.net.au
    Phone: +61-411-682-040

    #IBMChampion2022
    ------------------------------



  • 3.  RE: How to have required default data in all work order

    Posted 05-11-2022 10:29
    What is the value in storing the same data multiple times? Defaults can make sense (setting a default insert site, setting a user's default storeroom, etc.) but storing a string of text over and over increases the size of the database without providing value. It'd be better to store this somewhere and display it via a relationship rather than duplicate it in the long description. 

    If defaulting is required, you could create a script called WORKORDER.NEW and that would default when a record is added immediately (so a user could change it if necessary before saving).

    To check if a PM is generating, you need to import MXServer (from psdi.server import MXServer) and add a check like

    if MXServer.getBulletinBoard().isPosted("PM.GeneratingWork")

    ------------------------------
    Steven Shull
    IBM
    ------------------------------



  • 4.  RE: How to have required default data in all work order

    Posted 9 hours ago

    Hi Steve, would you please explain the use of the MXServer.getBulletinBoard() isPosted ("XXX") method? In what scenarios can I use and build in my custom code?



    ------------------------------
    Gagan Kumar
    Arcadis
    ------------------------------



  • 5.  RE: How to have required default data in all work order

    Posted 5 hours ago

    This is used by the Maximo framework when they need different behavior based on certain temporary situations. IE this logic only fires while the PM is generating the WO, any other edit to the work order should not trigger this logic. You can technically post your own and remove your own messages. IE the life cycle can be like this:

    MXServer.getBulletinBoard().post("PM.GeneratingWork")
    MXServer.getBulletinBoard().isPosted("PM.GeneratingWork")
    MXServer.getBulletinBoard().remove("PM.GeneratingWork")

    It's important you remove it if you try to use it. And you can tie it to a specific userInfo by adding the userinfo as a second parameter.

    Depending on your use case, there might be other mechanisms that are better. This is simple boolean logic for example (it is or is not posted) but if you want to pass values temporarily, you may find the setMboCtx, getMboCtx, and removeCtx APIs on the MboSet a better fit. 



    ------------------------------
    Steven Shull
    Naviam
    ------------------------------