Maximo

 View Only
  • 1.  Save (After Commit vs After Save)

    Posted Tue September 20, 2022 04:46 AM
    Hi guys,

    I have an Object Structure with a parent object and a child object linked to it.

    I have an automation script that runs off the child object's launch point, and checks for some conditions, and then calls a publish channel (linked to the above mentioned OS)

    If the script is on Save > After Commit, the XML generated by the publish channel has both the parent and the child object fields
    however, if the script is on Save > After Save, the XML generated only has the parent object fields; child object seems to be missing.

    Does anyone have a clue as to why this is happening?

    Thanks,

    ------------------------------
    KKunnuthara
    ------------------------------



    #MaximoIntegrationandScripting
    #Maximo
    #AssetandFacilitiesManagement


  • 2.  RE: Save (After Commit vs After Save)

    Posted Wed September 21, 2022 02:18 AM
    @Jason Uppenborn  @Steven Shull  @Alex Walter    would love to know your thoughts on this one. Thanks.​​​

    ------------------------------
    KKunnuthara
    ------------------------------



  • 3.  RE: Save (After Commit vs After Save)

    Posted Wed September 21, 2022 07:57 AM
    It sounds like your relationship between the parent and child object is different in the application and in the object structures. For example, if your parent object was WORKORDER and your child object was MATUSETRANS, you would want the relationship between the two on the object structure to be SHOWACTUALMATERIAL to get the records in the application that haven't been committed to the database yet. If the application (IE WOTRACK) and the object structure use different relationships (SHOWACTUALMATERIAL for the application and MATUSETRANS for the object structure), Maximo will have to query the database to get the MATUSETRANS records and won't have anything that hasn't been committed yet. 

    A lot of times when someone does this is they want to filter out the child MBOs. For example, only send ISSUE transactions. There's a few ways you can do that such as utilizing the skipMbo on the object structure (https://ibm-maximo-dev.github.io/maximo-autoscript-documentation/integration/osevents). There are also publish channel controls to be able to do this as well.

    ------------------------------
    Steven Shull
    ------------------------------



  • 4.  RE: Save (After Commit vs After Save)

    Posted Tue October 11, 2022 09:50 PM
    @Steven Shull thanks very much for the response.

    The relationship between the parent and the child in the application and in the OS is exactly the same.
    We did manage to get around this, albeit not via Maximo.

    ------------------------------
    KKunnuthara
    ------------------------------