Moving Maximo business logic from Java classes into Automation Scripts on an example of generating custom Workflow Assignments

Maximo starting with version 7.5 allows customizations using scripting languages. This possibility significantly speed-ups deployment process, since no Maximo restart needed. Although the documentation limits the cases where automation scripts can be used with a several types of launch points, in fact you may invoke an automation script from any place of your business logic. In this article I’ll show you how to use a single automation script to generate assignments for all task nodes within a workflow process. This approach has the following advantages: You need only one custom role per w...
More

Export to Excel from UI table with customized set of attributes

Basic Maximo functionality of downloading UI table content allows to export only the attributes displayed on the interface as table columns. Sometimes it may be necessary to export data with additional attributes that may belong either to the table MBO or to related MBO's. For example, we want to export related work orders from Service Request application. If you export data via the “Download” link, the output xls file will contain only fields that are displayed in the table as columns: - Work Order - Description - Class - Status - Relationship The problem is that there is no...
More

Using Java to start/stop workflow in Maximo

Sometimes you may need to start a workflow automatically but the standard functionality of escalation is not satisfying the needs of business logic. For such situations you can use a cron task to search the records and system service WorkFlowService to start a workflow. For instance, we need to start a workflow (process name PMWF) for periodical maintenance record (custom mbo PMCUST) when there comes a time specified in PLANNEDYEAR, PLANNEDWEEK attributes. Here is an example of the cron task: If you need to stop a workflow in java code, first you should get the workflow instance. ...
More

How to create a REAL multi select data bean in Maximo

There is a multi select data bean (psdi.webclient.system.beans.MultiselectDataBean) exists in Maximo. It is actually used everywhere where you expected to select multiple rows from a list. However, the way it is implemented sometimes make users surprised. The most obvious problem that users complain about - is that whenever a filter is applied to the list - all currently existing selections in the dialog are lost: I understand, that per maximo design, setting a filter for the list forces reset of the current MboSet, so the existing selection cannot be kept. So, when users want to add e....
More