Skip to content

Latest commit

 

History

History
executable file
·
39 lines (30 loc) · 1.7 KB

File metadata and controls

executable file
·
39 lines (30 loc) · 1.7 KB

Automamtion script to set actual dates from scheduled dates when a work order is completed

Setup:

  1. In Maximo Asset Management, open the Automation Scripts application and create a script by selecting the Create Script action..
  2. From the menu, select the Create > Script with Attribute Launch Point action and specify the following information: ..* Object field: WORKORDER ..* Atribute field: STATUS ..* Variable field: status

Automation Scripting - Schedule Dates

Click Next.

  1. In the script name field, enter COMPSETACTUALDATES. This name is used in the documentation for the Import/Export an Automation Script sample.
  1. In the Source Code field, enter the following code and, if necessary, edit the term "COMP" to match the term that you use for the completed status:
...
    if status=='COMP':
       mbo.setValue("ActStart", mbo.getDate("SchedStart") )
       mbo.setValue("ActFinish", mbo.getDate("SchedFinish") )
...       

Automation Scripting - Schedule Dates

To verify that the automation script works, in the Work Order Tracking application, change the status to complete. The actual dates should be set to scheduled dates:

Automation Scripting - Schedule Dates