Hi,
Thank you for posting your query.
Kindly follow the steps provided below to resolve your issue.
- 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 ==")
Go to this link for your reference https://www.ibm.com/support/pages/automation-scripts-and-non-persistent-objects
Note: This is a non-Microsoft website kindly take precautions before downloading anything.
Do not hesitate to message us if you need further assistance.
---------------------------------------------------------------------------------------------------------------------------------------------
If the answer is helpful kindly click "Accept as Answer" and upvote it. Thanks.