inspection. The app has few pages, and one of them does almost all the work. We used it with two of IBM’s demo forms and counted its source in our MAF editor.MAS 9.2 series case study
We looked at the app on our test system, on the MAS 9.2 series. The numbers belong to that release and change with every new version of the app, so read them as a size. This case study follows the same plan as TECHMOBILE - The Technician App, and its table carries the numbers of Technician for comparison.
An inspection in three screens#
The app opens with a list of inspections. Each card names the form and the asset, and a button starts the inspection.

The second screen is the form. Its questions are numbered and grouped, as the author of the form arranged them. The buttons at the top filter the questions: all of them, those still to do, those done, and the required ones. A counter reads 0/9 for the nine questions of this form, none of them answered yet.
The third screen creates an inspection on the spot. The user picks an asset or a location, picks a form, and assigns the inspection to a person or to a group.
Nine lists#
The selector of the list offered nine entries to our demo technician: “Assigned inspections”, “Pending”, “My Pending”, “In progress”, “My In progress”, “For review”, “My review”, “Completed” and “All inspections”.
The pattern behind them is the one we found in Technician. A few datasources read inspection results, and overrides give each list its own saved query. By their names, two of the lists are for a reviewer, so the review of a finished inspection happens in the same app.
The form is data#
The questions in our frame come from a form that IBM ships with its demo data: “Deluge Air Compressor Tested”, “Automatic shut off valves”. No page of the app’s markup names any of them. A form is a record in Maximo Manage, with its groups, its questions and its rules. The app reads the form that an inspection carries and builds the screen from it at run time.
The numbers of the app show this design:
| Part | Inspections | Technician |
|---|---|---|
| Pages | 7 | 28 |
| Datasources | 50 | 148 |
of these: maximo-datasource | 23 | 89 |
of these: maximo-datasource-override | 16 | 24 |
of these: json-datasource | 11 | 35 |
| Object structures | 11 | 26 |
Datasources that name mxapiinspectionres | 8 | |
| Dialogs | 19 | 91 |
| Sliding drawers | 6 | 22 |
| States | 113 | 147 |
| Controller classes | 24 | 50 |
| Methods in these classes | 282 | 1,012 |
| Ways from one page to another | 14 | 65 |
Lines in app.xml | 1,660 | 6,133 |
| Lines in all XML files | 1,852 | 9,932 |
| JavaScript files, without tests and mock data | 45 | 118 |
| Lines in these JavaScript files | 10,802 | 43,613 |
Both apps as shipped with our system of the MAS 9.2 series, where Inspections is app version 9.2.119 and Technician is app version 9.2.124. The lines are counted with wc -l over the source folder, the other rows by the structure view of our MAF editor.
Inspections has a quarter of the pages of Technician and less than a fifth of its markup. Its JavaScript is larger than the markup by a factor of almost six. In Technician that factor is a little above four. The share of the overrides is high too: about a third of all datasources are overrides, which fits an app with nine lists over one kind of record.
For a project this draws a clear line. A change to what an inspector is asked belongs in the form, in Maximo Manage, and needs no change of the app. A change to how a kind of question looks or behaves is a change in JavaScript, in the densest part of the app.
Where the weight sits#
| Page | Datasources | Dialogs | Drawers | States |
|---|---|---|---|---|
| the list | 15 | 2 | 1 | 25 |
| the form | 7 | 5 | 4 | 29 |
| create an inspection | 5 | 10 | 1 | 29 |
| the four other pages together | 6 | 0 | 0 | 3 |
Parts declared on the page itself, in the same version of the app on the MAS 9.2 series. Another 2 dialogs belong to the application, and so do the datasources and states that no row shows.
Three pages carry the app. The list holds most of the datasources, for its nine lists. The page that creates an inspection holds most of the dialogs: lookups for the asset, the location, the person and the group. The form has the largest controller class, with close to sixty methods, and drawers for comments, attachments and earlier results.
How the pages connect#

Our MAF editor finds seven pages and fourteen fixed ways between them. For the list, the map names no fixed target at all. Three calls of the app compute the name of the next page at run time, and the editor lists those apart. In a small app, that is a large share. Follow such a call in the running app before you change the way from the list to the form.
What the app asks of Maximo#
- Forms. An inspection is made from a form. Forms are made and revised in Maximo Manage.
- The object structures. The app reads through about a dozen of them.
mxapiinspectionrescarries the inspections, and the others deliver forms, assets, locations, persons and person groups. - An assignment. The lists with “My” in their name and the list of assigned inspections depend on who an inspection is assigned to.
What to read next#
TECHMOBILE - The Technician App shows the large app with the same list pattern. The Controller Architecture Overview explains how the controller classes of an app get their calls.
IBM describes the Inspections app and the inspection forms in the documentation of Maximo Mobile and Maximo Manage.
