↓ Skip to main content
A watercolour of an orange clipboard seen from above, with a checklist of eight lines. The boxes of the first four lines hold an orange tick, and the other four boxes are empty. A teal pencil lies beside the clipboard.

INSPECTION - Inspections and Audits

An inspection is a list of questions about an asset or a location, answered on site. The Inspections app of Maximo Mobile shows these questions and collects the answers. Its application id is 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.

Three screens of the Inspections app. First, the list “Pending” with 2 records: “Monthly Fire System Inspection 2” for asset 1001, a fire extinguisher, and “Daily Maintenance and Inspection Log for Work Equipment” for asset 11470, a centrifugal pump, each with an information button and the button “Start inspection”. Second, the form of the fire system inspection: filter buttons All, To Do, Done and Required, a counter that reads 0/9, the group “1. Fire Water Valves and Compressor” and three questions, each with a field “Enter answer”. Third, the page “Create inspection”: fields for an asset or a location, the inspection form, and the assignment to a person or a person group.
The list of pending inspections, the form with its questions, and the page that creates an 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:

PartInspectionsTechnician
Pages728
Datasources50148
of these: maximo-datasource2389
of these: maximo-datasource-override1624
of these: json-datasource1135
Object structures1126
Datasources that name mxapiinspectionres8
Dialogs1991
Sliding drawers622
States113147
Controller classes2450
Methods in these classes2821,012
Ways from one page to another1465
Lines in app.xml1,6606,133
Lines in all XML files1,8529,932
JavaScript files, without tests and mock data45118
Lines in these JavaScript files10,80243,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
#

PageDatasourcesDialogsDrawersStates
the list152125
the form75429
create an inspection510129
the four other pages together6003

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
#

The Map panel of the MAF editor for the Inspections app. The top line reads 7 pages, 14 ways, 3 calls named at run time. The page main is selected. “Goes to” reads no page. Under “Comes from” it lists the app, batch_details, createInspection with 2 ways, inspcompletionsummary and transition_page, most with the file and line of the call. Below, the list of all seven pages.
The list page in the page map of our MAF editor

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. mxapiinspectionres carries 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.