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 10from 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
------------------------------
#AssetandFacilitiesManagement#Maximo#MaximoIntegrationandScripting