- In Maximo Asset Management, open the Automation Scripts application and create a script by selecting the Create Script action..
- 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
Click Next.
- In the script name field, enter
COMPSETACTUALDATES. This name is used in the documentation for the Import/Export an Automation Script sample.
- 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") )
... 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:


