↓ Skip to main content
A mixed-media painting of six square paper notes pinned to a board in two rows of three. Five notes are teal and one is orange. Each note shows one white sign: a water drop, a light bulb, a door, a thermometer, a wrench and a chair.

SRMOBILE - Service Requests

The other apps in this series of case studies are for people who do maintenance work. Service Requests is for the people who ask for it: the employee who sees water on the floor, or a door that does not close. Its application id is srmobile. Such an app has to be simple for somebody who uses it twice a year. We used it with three demo requests 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.

A request in four screens
#

The app opens with the requests of the signed-in user that are still active. Each card shows the status, the priority, the text of the request and the day it was reported.

Four screens of the Service Requests app. First, the list “Active requests” with 37 records: a request with the tags “New” and “High” about a door of the printer room that does not close, and one with “New” and “Medium” about an emergency light at the loading dock. Second, the page “Service request” for request 1504, water that drips from the ceiling, with the tags “New” and “Urgent”, the asset 11200 and the location BR200, and rows for comments, attachments and similar service requests. Third, the page “New request”: a search field and a list of categories, among them Security, Restrooms, Outdoor, Offices and Cubes, Meeting Rooms and Lighting, most with a small picture, and at the bottom the link “Describe the request”. Fourth, the form “New service request”: the category, switches for high priority and for a safety hazard, and rows for details, contact person, location, asset, service address, similar service requests and attachments.
The active requests, one request, the choice of a category, and the form

A tap on a card opens the request, with its asset and its location, its comments and its attachments. One row leads to similar service requests.

The plus button starts a new request. The app first asks for a category, with pictures: restrooms, meeting rooms, lighting. A user who finds no fitting category can describe the request in free words. Then follows a short form: two switches, for a high priority and for a safety hazard, and rows for the details, the place and the attachments.

Simple for the user, dense in the source
#

The categories in our frame are data. They come from the classifications of IBM’s demo data, and the app shows what it finds there. So the first screen of a new request is configured in Maximo Manage.

The form behind it is dense. The numbers show it:

PartService RequestsTechnician
Pages928
Datasources52148
of these: maximo-datasource2789
of these: maximo-datasource-override1424
of these: json-datasource1135
Object structures1426
Dialogs2891
Sliding drawers022
States233147
Controller classes1950
Methods in these classes1961,012
Ways from one page to another3965
Lines in app.xml1,4196,133
Lines in all XML files1,9909,932
JavaScript files, without tests and mock data31118
Lines in these JavaScript files7,39143,613

Both apps as shipped with our system of the MAS 9.2 series, where Service Requests is app version 9.2.133 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.

Two things stand out against Technician, which is the far larger app.

The states stand out first. Service Requests declares 233 states, and Technician 147. A state is a named value that the page keeps and that the markup can bind to. The form of a new request alone declares 143 of them.

The ways per page come second. Nine pages are connected by 39 ways. Technician has about two ways per page, and this app has more than four. The pages of a new request lead to each other in many combinations: forward, back, and across.

Where the weight sits
#

PageDatasourcesDialogsStates
the form of a new request620143
the list of active requests125
one request122
the six other pages together012

Parts declared on the page itself, in the same version of the app on the MAS 9.2 series. Another 3 dialogs belong to the application, and so do the datasources and states that no row shows.

One page carries the app. The form of a new request holds 20 of the 28 dialogs and well over half of all states. Its controller is the largest class, with close to a hundred methods, about half of all methods in the app.

The dialogs of the form are mostly lookups: for a person, a location, an asset, and for values of several kinds of domains. Two dialogs warn when an asset and a location do not fit together. Others confirm that the user wants to submit or to discard.

For a project this is the key fact. A change to the list or to the page of one request is small. A change to the form of a new request touches a page that declares almost as many states as the whole Technician app. Read the page and its controller in full before you add a field there.

How the pages connect
#

The Map panel of the MAF editor for the Service Requests app. The top line reads 9 pages, 39 ways, 4 calls named at run time. The page main, “My active requests”, is selected. Under “Goes to” it lists tktemp, createSR with 2 ways, newRequest with 2 ways, similarSr, attachments, watchlistAttachments and srDetails. Under “Comes from” it lists the app, createSR with 4 ways, newRequest, srDetails with 2 ways and tktemp. Below, the list of the pages.
The list of active requests in the page map of our MAF editor

The list is the place the user returns to. Seven pages can be reached from it, and the form alone leads back to it in four ways. Between the list and the form stand up to three pages that narrow the request: the category, a sub-category and a type.

What the app asks of Maximo
#

  • Classifications. The categories of a new request are data, maintained as classifications in Maximo Manage.
  • The object structures. The app reads through about 14 of them. mxapisr carries the requests. The others deliver assets, locations, persons, ticket templates, a watch list and the domains.
  • System properties. The app declares about a dozen of them.
  • Users outside maintenance. The people who report a problem often work outside the maintenance team. Plan their accounts and their rights early.

What to read next#

TECHMOBILE - The Technician App shows the app that works on what this app reports. State Management explains the states that fill the form page of this app.


IBM describes the Service Requests app in the documentation of Maximo Mobile. Classifications are maintained in the Classifications application of Maximo Manage.