- Prevent completion / closure of work orders with open labor transactions
- Your first Automation Script in Maximo 7.5
- Disable Maximo business rule with an Automation Script
- How to Rollup Cost with the Automation Script
- Automation Script: params variable not working with JavaScript language
- Import Classes and Packages using Javascript Language and Automation Scripts
- Automatic Status Changes for Service Requests (SR) with Automation Script
- A Collection of Maximo Automation Script Examples
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
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?