Maximo

Maximo

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

 View Only
  • 1.  Data is not sending out from Maximo

    Posted 02/14/23 03:23 AM

    Hello Everyone,
    We created an automation script to call publish channel to send data out from Maximo.

    Below code is used in automation script - Object Launch point - Add, Update - After Save

    try:
        PublishChannelCache.getInstance().getPublishChannel("<publish channel name>").publish(mbo, True);
        server = MXServer.getMXServer()
        userinfo=server.getSystemUserInfo()
    except MXException:
        print("Error in the script")

    Data is sending out and messages are received in Message tracking, when we update on records from UI Application. 
    But when we update any field value from the backend (DB), data is not sending out and i am not able to see the message received in Message tracking.

    Can anyone tell why messages are not receiving when we update from the DB? 

    Thanks in Advance.



    ------------------------------
    Ishwarya Soundarya
    ------------------------------

    #AssetandFacilitiesManagement
    #Maximo


  • 2.  RE: Data is not sending out from Maximo

    Posted 02/15/23 01:14 AM

    Hello,

    because these scripts work only when You update from interface, and also from MIF (if not mistaken).

    If You want to run that script in other cases, You can try to use escalation, which checks which records has been changed (but there may be not last change date/time) and then run that script.



    ------------------------------
    Juris Flugins
    ------------------------------



  • 3.  RE: Data is not sending out from Maximo

    Posted 02/15/23 03:24 AM

    Juris is correct in that DB updates would never fire the automation script as the Object Launch Point is fired on the Save event within the business object and not at the database level.

    If when you update the database you either set a changed date column or a custom flag that you can then reset in the script after the Publish event has been ran you could then call your script with an escalation that picks up any un-processed records e.g.

    Update database and set a processed flag to 0

    Escalation checks the database for the records with processed = 0 and calls your script as an action

    your script calls the publish event and then sets the processed flag to 1 for the record

    let us know if this works as required as others may want to use this process if you are successful



    ------------------------------
    Steve Lee
    Maximo Technical Sales Specialist
    IBM
    Leeds
    ------------------------------



  • 4.  RE: Data is not sending out from Maximo

    Posted 02/15/23 09:12 AM

    Hello .. These launch points are based on mbo activity. You bypass mbo's when you dig into the database directly. Therefore the part of the system 'listening' for mbo.save etc does not "hear" anything when you engage in DML in the database directly.



    ------------------------------
    jeffk 2BC7
    interloc solutions
    grand rapids MI
    ------------------------------



  • 5.  RE: Data is not sending out from Maximo

    Posted 02/15/23 09:28 AM
    Hi, How are you updating from DB? Have you tried using event listening in publish channel?

    Regards

    --

    tecso.coop

    Pablo Condoleo

    SOFTWARE ENGINEER

    t. +54 9 11 27386589

    LinkedinFacebook
    TwitterInstagram

    Buenos Aires Av. Mitre 1249 PB A Florida Oeste    t. +54 (11) 5219-0757 interno 1068

    Rosario Lamadrid 468, Zona i    t. +54 (341) 527-4470 

    Medellín Calle 67 52-20 Torre A, Ruta N    t. +57 4 516-7770 









  • 6.  RE: Data is not sending out from Maximo

    Posted 02/15/23 09:56 AM

    Please let me know if we can have a short call.

    I think may be able to assist you with this.

    -Sanjay



    ------------------------------
    SANJAY PATIL
    ------------------------------