IBM Support

Need to Copy Job Plan Description to PM Work Order

Troubleshooting


Problem

Crossover domain cannot be used to copy job plan to a work order generated by a PM.

Cause

Out of the box Maximo copies the PM description to PM generated work orders.

It is possible to have the job plan description carry over to the generated work order rather than the PM description?

Environment

7.5

Resolving The Problem

Use Automation Script to implement the required business rule.

1. Go to the System Configuration module


Go to the Platform Configuration
Go to the Automation Scripts application

2. From the "Select Action" menu, select "Create a Script with an Object Launch Point"
Enter a name for the Launch Point
Enter a name for the script
Script Language defaults to jython

Object = WORKORDER
Go to the Events frame and check "Add?"

Click "Next"



2. Enter a descriptive script name in the Script field
Script Language field defaults to jython
Enter launch point variables
  • variable = jpdesc , variable type = IN, binding type = attribute, Launch Point Attribute = jobplan.description
  • variable = description, variable type = OUT, binding type = attribute, Launch Point Attribute = description
  • variable = pmnum, variable type = INOUT, binding type = attribute, Launch Point Attribute = pmnum

3. Click Next
Enter the following in the source code:

if pmnum is not None:
    description = jpdesc


NOTE: The script has to be indented or else it will NOT work.


4. Click the "Create" button

Change the status to ACTIVE


The launch point is now active

NOTE: if its necessary to de-activate the script, de-select active checkbox and save

Test the script:

1. Bring up a PM record in the PM application



2. From the "Select Action" menu, generate a PM work order



3. Go to the generated work order 1252 and notice that the Job plan description has been copied to the PM generated work order 1252

[{"Product":{"code":"SSLKT6","label":"IBM Maximo Asset Management"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"System Related","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.5","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Document Information

Modified date:
17 June 2018

UID

swg21645602