If you need to handle workflows (start, stop, route, etc.) from an automation script you can use the following two Maximo API classes: WorkFlowService and WFInstance. Here are few examples. The WorkFlowService.initiateWorkflow metod can be used to start a workflow: To stop an active workflow you can use WFInstance.stopWorkflow method: To route a workflow I […]
Accessing UI methods from automation scripts
In Maximo 7.6.1.1 IBM has greatly improved the service implicit variable to provide a lot of useful methods to interact with the user interface. Two good examples are: For a full reference of the service methods refer to this page. There is very important method that can be used to get a reference to the […]
Scripting Best Practices for Performance
This post is a copy of a PDF file published by IBM. I’m republishing it here to make it more accessible. Scripting allows users to extend maximo business logic using Python/JS or for that matter any other JSR 223 compliant scripting language. All the script code gets compiled to Java bytecode and are cached as […]
Budget Monitoring with Maximo
The Budget Monitoring application was introduced in May 2007 as part of the IBM Maximo 7.6.0.8 feature pack but its potential was largely underestimated by the user community. The application may seem complex and may be daunting at first, but in reality it is quite simple to configure for basic use, allowing later to extend […]
Script to check if current user is in a Security Group
A typical business case is to prevent editing of some specific fields to a set of organizational roles in Maximo. This is typically achieved by implementing attribute data restriction or conditional UI. However, if you need more control over what field should be readonly and when, you can use an automation script on the INIT […]
Maximo bulk update from List view
In some cases Maximo allows to perform bulk updates using actions on the List View. For example, you can set the timezone of multiple assets by selecting the Associate Time Zone on the List View of the Assets application and then a dialog will appear to perform a massive update on all the selected records. […]
DBC XML Format Reference
The DBC XML Format Technical Reference document disappeared from IBM website. You can download the document from this link. Thanks to Biplab Das Choudhury and Cezar Tipa.
Strict validation of attachment types
Attachments types can be defined setting the system property mxe.doclink.doctypes.allowedFileExtensions but Maximo just checks the file extension. Implement a more strict file type scanning when you upload an attached document.
Ensure Asset’s serial number uniqueness
Sometimes you need to ensure the uniqueness of a certain database column in the Maximo database. A common example of this scenario is to ensure that asset’s serial numbers are not duplicated. This can prevent the creation of duplicate assets. In this post I describe two techniques to achieve this using a unique database index […]
Send Work Order Calendar invitations
In this article I will show how to send calendar invitations to workers with work order details and reminders for the activities. The calendar event can have a link to Maximo in order to report progress or close the work order using the standard Everyplace or Work Centers interface.