Maximo

 View Only

 How to call a invocation channel with a cron task

Pedro Vicente's profile image
Pedro Vicente posted Fri May 02, 2025 04:18 AM

Hello everyone,

I recently started updating old APIs and stumbled upon some endpoints being called through cron tasks. I thought it would be straightforward if I used the function service.invokeChannel in a script triggered by the task. Obviously, that didn’t work, so I'm asking for your help. I’m wondering if it has something to do with using the wrong type of script or the wrong class.(The Maximo version I'm using is 7.6.1.3)

Here’s the setup I’m using:

And the script:

Thank you kindly.

Sankar Ganesh V S's profile image
Sankar Ganesh V S IBM Champion

Hi Pedro,

Do you see any error in the Cron - JVM logs?
For Testing, try executing the script with another launch point like Object-Save. Because the autoscript triggers other scripts inside, before calling invocation channel. First step would be to identify, which stage the error occurs.

Thanks!

Sankar