Disable Maximo business rule with an Automation Script

For years, there is one default Maximo functionality that tends to annoy a lot of our clients.  When you have a workorder and you select a location, if that location has one and only one asset associate with it, that asset number will auto populate the ASSETNUM field on the workorder.  In Maximo 7.5, you can effectively disable that base functionality with a simple Automation Script.

Here is how to setup the Automation Script, but you should really read the full article over at developerWorks blog

WOASSETCLR launch point and script

I provide a short summary of the launch point and script implementation.

  • Define an Attribute launch point using the Automation Scripts application.

  • Choose business object to be WORKORDER and attribute to be LOCATION.

  • Define an INOUT variable v_assetnum and bind it to the ASSETNUM attribute of the WORKORDER object.

  • Enter these lines of Jython code representing the script logic:

 

 if v_assetnum is not None:

        v_assetnum=None

  • Save the launch point and script; launch point is already active

 

 

 

Series Navigation< Your first Automation Script in Maximo 7.5How to Rollup Cost with the Automation Script >

Did You Know...

As Maximo Experts, we have developed Maximo adds on products to make Maximo work assignment simple, reporting easy, and facilitating service requests seamless. Check out our additional products EZPlanner, EZInsight, and EZRequest.

Find Out More

One thought on “Disable Maximo business rule with an Automation Script

  1. I’m attempting to do the same with Work Group and Lead, but it doesn’t seem to be working. We have an automation script that automatically assigns the supervisor when a Work Group is selected. However, selecting a Work Group auto-populates the Lead field with a “Default” person in that Work Group. We’d like it to be blank instead so I have the script set to “lead=None” and it doesn’t seem to do anything. Thoughts?

Leave a Reply

Your email address will not be published. Required fields are marked *