IBM Support

Maximo Automation Script (AS) to utilize for creating a Workflow specific Maximo Debug log

Question & Answer


Question

Can you use an AS in order to debug a Maximo WFinstance specific problem?

Answer

Here is the script you would need.

Set it up on the add of WFInstance per the following screen shot:



# throw stack trace
# Make sure the integration logger is set to debug.

from psdi.iface.mic import MicUtil
from java.lang import Exception

e = Exception('executing script to debug workflow init')
MicUtil.INTEGRATIONLOGGER.error(e.getMessage(),e)


If this is an ADMIN user who does not have access to the logs, you can use thread logging to view this within Maximo (this is accessed/configured in the Logging application using the Action menu items Configure Custom Logging and In session logs).
Set up the automation script locally and start something into workflow (it does not matter how) in order to print the actions in the Maximo logs.

[{"Product":{"code":"SSLKT6","label":"IBM Maximo Asset Management"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"--","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"7.5;7.6","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Document Information

Modified date:
17 June 2018

UID

swg21997846