At times it is necessary to override or extend the functionality in core MAXIMO. This can be achieved by ‘extending’ methods in the Maximo business objects. The following section outlines the process involved in extending the add() method in the Items application. This same approach can be used to extend any add() method from the core Maximo business objects. Review the javadocs for more details on methods available.
Scenario: On insert of an item in the Item Master application, we would like an extra field to be set to a specific value on the Item table. In order to perform this functionality, follow the steps below to extend the add() method on the Item package.
By reviewing the javadocs, the add method can be located in the Item object. We will need to create two new files, ItemTest and ItemTestSet. ItemTest will extend the add() method in the Item class and ItemTestSet will return the reference of our new object ‘ItemTest’.