Maximo Integration

 View Only

Invoke Publish Channel on click of Button without enabling event listener

  • 1.  Invoke Publish Channel on click of Button without enabling event listener

    Posted Thu June 23, 2022 07:07 AM
    Is there a way to invoke publish channel on click on a button from Maximo UI without enabling event listener? I have tried the below logic on action launch point which is mapped to a button  

    PublishChannelCache.getInstance().getPublishChannel("Publishchannelname").publish(mbo, True) > Does not work , no error. 

    The below logic resulted in an error > BMXAA7837E - An error occured that prevented the CXTEST script for the CXTEST launch point from running. java.lang.IndexOutOfBoundsException: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 in <script> at line number 10

    from psdi.server import MXServer
    server = MXServer.getMXServer()
    adminuser = server.getUserInfo("MAXADMIN")
    locMbo = service.getMbo()
    extSysName = 'EXTSYSNAME'
    ifaceName = 'PUBNAME'
    whereClause = "LOCATION='"+mbo.getString("LOCATION")+"'"
    maxRecCount = 1
    server.lookup("MIC").exportData(ifaceName, extSysName, whereClause, adminuser, maxRecCount)

    Please advise whether it is possible to invoke publish channel using button.

    ------------------------------
    MAX092012
    ------------------------------