IBM Support

Automation scripts and non-persistent objects

Troubleshooting


Problem

This document provides some info about working with non-persistent objects and automation scripts.

Symptom

Automation Scripts not working for some non-persistent objects, such as ASCHANGESTATUS or USERSTATUSCHANGE

1. Steps to replicate:

Create an object level automation script using the following

Object Level Launch Point

Launch Point = OBJ-ASSET-STATUS
Description = Object Asset Status History
Object = ASCHANGESTATUS
Active = Y
Add = Y
update = Y
Initialize = N
Delete = N

No required variables.

Script = OBJ-ASSET-STATUS-SCRIPT
Description = Object asset status history
Log Level = DEBUG
Status = Active
language = jython

Script should be like below :

from psdi.util.logging import MXLogger
from psdi.util.logging import MXLoggerFactory
from psdi.mbo import MboConstants
from java.util import Date
logger = MXLoggerFactory.getLogger("maximo.script");
logger.debug("==OBJ-ASSET-STATUS-SCRIPT." + launchPoint + ": START ==")
assetnum = mbo.getOwner().getString("assetnum");
logger.debug("==OBJ-ASSET-MSM-SCRIPT.assetnum=="+ assetnum)
logger.debug("==OBJ-ASSET-STATUS-SCRIPT." + launchPoint + ": END ==")


After going to Logging app and making sure that the script logger is set to DEBUG, you will observe that there is no log file messages getting generated with assetnum value, in the log files.

NOTE : This was tested with persistent object called PERSON and it works.
But not for non-persistent object, such as ASCHANGESTATUS or USERSTATUSCHANGE.

[{"Product":{"code":"SSLKT6","label":"IBM Maximo Asset Management"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"--","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.5;7.6","Edition":"","Line of Business":{"code":"LOB77","label":"Automation Platform"}}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

More support for:
IBM Maximo Asset Management

Software version:
7.5, 7.6

Document number:
267089

Modified date:
17 June 2018

UID

swg21967449

Manage My Notification Subscriptions