Maximo Open Forum

 View Only

 Maximo Automation Script to copy workorder fields to a custom table fields when workorder status is changed to COMP

Jump to  Best Answer
  • Maximo User Groups
Rekha I's profile image
Rekha I posted 01-03-2023 13:31
Hi, I am trying to write Maximo automation script which should copy few workorder table fields to a custom table fields when we change the status of workorder to Complete. How can I accomplish this one? Should I use attribute launch point or object launch point?

Workorder has to satisfy certain condition and the status is changed to COMP, this should trigger a script to copy changeby and changedate from workorder to custom table fields.

Thank you
Phil Runion's profile image
Phil Runion  Best Answer
Rekha

I would do an attribute based launch point on WORKORDER.STATUS. Using a run action will be your best bet in my experience. I use a similar approach for status change validation and it works well. 

Phil
Vivek Nagre's profile image
Vivek Nagre

Hi @Rekha I

Good day! We can use the attribute launch script (Run Action) here. In the launch point, you need to select the WORKORDER Status attribute.

and based on the relation with the custom table, you need to fetch the MboSet(), and then in the if block, you have to check the work order status, and if it's changed or set to a business requirement, you have to use the custableMbo.setValue('Attributename','Value to be populated');