Friday, August 19, 2022

Trigger publish channel without event listener using automation script

The transactions from Maximo is passed to external system using Publish Channel component. 




The records can be initiated to Publish Channel using 2 ways: by an event or export from database.

  • Frequently occurring scenario is the record will be triggered by an event, Publish Channel would pick up them and transfer it to external system after processing all rules. 
  • There are a few other scenarios where in we need to resend the outbound data by export option without any user event on the object. These configuration will have "Event Listener ? " flag disabled.



Business Cases for Export:
1. The data sent from Maximo didn't reach external system due to internal data error. So, we need to resend the same transaction again to external system
2. Middleware outage or intermittent technical glitch requires resending of same record

For example, re-send Inventory Issue Transactions from Maximo to external system. MATUSETRANS object in Maximo holds the Inventory Issues transactions. 





We need to create a ACTION automation script, Sig Option, Button and Security Access for Resend operation by following this link - https://www.maximoscripting.com/use-a-button-to-launch-an-action-script/

Code to resend inventory issue - iface/invokePublishChannelfromScript.py

Referenceshttps://maximodeploy.blogspot.com/2020/05/invokecall-publish-channel.html