↓ Skip to main content
A mosaic of an open orange tool case seen from above, with six compartments in two rows. Each compartment holds one teal object: a wrench, a screwdriver, a clipboard with three ticked lines, a stopwatch, a pressure gauge and a camera.

TECHMOBILE - The Technician App

Technician is the app of Maximo Mobile that most projects we see start with, and most of them change it. Its application id is techmobile. Before you change an app of this size, it pays to know what is in it. We used the app as a technician with an assigned work order, and we opened its source in our MAF editor and counted every part.

MAS 9.2 series case study

We looked at the app on our test system, on the MAS 9.2 series, with IBM’s demo data. The numbers of this case study belong to that release. The app changes from release to release, so read the numbers as a size and look up the exact ones in your own system. Anatomy of a Maximo Mobile App explains the parts that every app has. This case study shows how one large app uses them.

A work order in four screens
#

A technician opens the app and sees the work list. Our demo technician has one assigned work order: an HVAC system that overheats. The card shows the priority, the due date, the asset and the location. Two buttons at the lower right accept or reject the assignment.

Four screens of the Technician app. First, the work list “Assigned work” with one record: work order 1221, HVAC overheating, priority 2, with its asset 11200 and its location BR200, and buttons to reject or accept the assignment. Second, the work order page: details with schedule dates and an estimated duration of 2 hours, a row of round buttons, and the section “Asset and location” with the asset shown as up. Third, the page “1221 tasks” with two tasks: review hot and cold air flow, and provide access to the HVAC system. Fourth, the drawer “Materials and tools” over the work order: two materials from the central storeroom and one tool kit for 2 hours.
The work list, the work order, its tasks, and its materials and tools

A tap on the card opens the work order. The page starts with the details and the schedule. A row of round buttons leads to the parts of the job, and one of them carries the number of tasks. Below follow the asset and the location. Further down the page, below the part our frame shows, come the assignment history, the attachments and the follow-up work.

The tasks have a page of their own. The materials and tools open as a drawer that slides over the work order: two materials from the storeroom and one tool kit, each with its quantity.

That is the core of the app: a list of work, a work order, and everything the technician needs to do the job and to report it.

What the app covers
#

The titles of the pages give a fair map of what the app can do:

AreaPages of the app
Finding workthe work list, a map, the history of an asset and its location
Doing the workthe work order, tasks, task details, materials and tools, reserved items, spare parts
Reportingreport work, the failure report, attachments, the tools that were used
Creating workcreate a work order, quick reporting, follow-up work, create or edit a task
More than one assetmultiple assets and locations
Calibrationdata sheets, the list of loop assets, asset functions, calibration points, repeatable calibration points, a calibration label

Two things in this table are easy to miss. Calibration is a part of Technician: six of the pages belong to it, and the app reads a system property with the name maximo.mobile.technician.enablecalibration. The work of a supervisor is in the same app too. Two of the work lists use saved queries with the names SUPWOTOAPPR and SUPWOTOCLOSE. By their names and their labels, they hold the work that waits for an approval and the work that waits to be closed.

Ten work lists, one datasource
#

The selector at the top of the work list offered ten lists in our preview. Five of them are about the technician: “Assigned work”, “Assigned work for crew”, “Work created by me”, “My work order” and “Active work”. The other five are “PMs due this week”, “Work order history”, “Work orders to review”, “Completed work orders” and “Search all records”.

The markup behind them is worth a look, because it is a pattern you can reuse. One maximo-datasource reads work orders through the object structure mxapiwodetail, with the saved query for assigned work and with the full schema. The other lists are maximo-datasource-override elements. Each one takes over the schema and names another saved query of the same object structure.

So a new work list for your technicians starts with two small things: a saved query on the object structure, and one override that names it. Saved Queries and Filters explains the saved query part.

The app in numbers
#

We opened the source of the app in our MAF editor. Its structure view resolves every included file and counts the app as the build sees it:

PartCount
Pages28
Datasources148
of these: maximo-datasource89
of these: maximo-datasource-override24
of these: json-datasource35
Object structures26
Datasources that name mxapiwodetail17, and 14 of them in app.xml
Dialogs91
Sliding drawers22
States147
Controller classes50
Methods in these classes1,012
Methods of the largest class127
System properties the app reads18
Ways from one page to another65
Lines in app.xml6,133
XML files, with app.xml49
Lines in all XML files9,932
JavaScript files, without tests and mock data118
Lines in these JavaScript files43,613

Technician as shipped with our system of the MAS 9.2 series, 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.

The numbers say three things.

The app is large. About 150 datasources and about 90 dialogs are far more than any tutorial app has.

Most of the app is JavaScript. The markup has about 10,000 lines in all its files. The JavaScript has more than four times as many.

The data model is narrow. The app reads through about 25 object structures. One of them, mxapiwodetail, carries the app: more datasources name it than any other structure. The others deliver assets, locations, labor, items, tools and the domains for the value lists.

Where the weight sits
#

The pages are far from equal:

PageDatasourcesDialogsDrawers
report work18237
the work order1386
the work list1500
all 25 other pages together41199

Parts declared on the page itself, in the same version of the app on the MAS 9.2 series. Another 41 dialogs belong to the application and can open from any page.

The page for reporting work is the heaviest one. Labor, materials and tools meet there. Most of its dialogs are lookups: for the craft, the crew, the storeroom, the bin and the tool. Its controller is the largest class of the app, with more than 120 methods. The controller of the work order page follows with about 100.

For a project this is a useful warning. A change on the work list touches a page with a clear structure. A change on the page for reporting work touches the densest part of the app, so plan more time for reading there.

How the pages connect
#

Our MAF editor draws a map of the app from the markup and the controllers: every page, and every place in the code that leads from one page to another. For Technician it finds about 30 pages and more than 60 ways between them.

The Map panel of the MAF editor for the Technician app. The top line reads 28 pages, 65 ways, 4 calls named at run time. The page workOrderDetails is selected. Under “Goes to” it lists eleven pages, among them tasks, report_work, attachments, relatedWorkOrder and schedule, each with the controller file and line of the call. Under “Comes from” it lists the app and seven pages, among them schedule, assetWorkOrder and tasks.
The work order page in the page map of our MAF editor: where it leads and where users come from

The work order page is the hub. Eleven pages can be reached from it, and seven pages and the application itself lead to it. The map also names four calls whose target is computed at run time. For those, the page name stands in a variable, and only a run of the app shows where they go.

The map answers the first question of every change: which pages does a user pass on the way to this one, and where can they go from here.

What the app asks of Maximo
#

An app of this kind is only as good as the system behind it. Three things have to be right in Maximo:

  • The object structures. The app reads through 26 of them. Each one must exist, and the security group of the technician needs access to it.
  • The saved queries. The work lists and many lookups name a saved query, and the app shows what the query returns for the signed-in user.
  • The system properties. The app reads about twenty of them at its start. They switch the timer, the review of the safety plan, the electronic signature for a status, the travel prompt and calibration, among others.

The second point explains a surprise we had ourselves. We opened the app in the local preview, which reads its data with the API key of the developer. The list “Assigned work” read “No results found”. For the demo technician, the same list showed the HVAC work order. The app was the same, and the user was a different one. Ten Things Every Maximo Developer Believes That Are Wrong has more of this kind.

What this means for your project
#

Most projects that start with Technician want a small change: one more field, one more list, one rule before a status change. The size of the app makes three habits worth the time.

  1. Read before you change. Find the page, its datasources and its controller first. The structure view and the map of an editor save time here.
  2. Change as little as possible. An update of Maximo can bring a new version of the app, and your changes have to travel to it. A field and a schema attribute travel easily. A rewritten controller method has to be compared with IBM’s new one every time.
  3. Use the pattern the app uses. A new list is an override with a saved query. A new field goes into the schema and onto the page. The cookbook recipes Add a Field, Add a Dialog and Lookup Field show these changes step by step.

What to read next#

Anatomy of a Maximo Mobile App explains the building blocks that the numbers of this case study count. The Controller Architecture Overview shows how the controller classes of such an app get their calls.


IBM describes the Technician app and its functions in the documentation of Maximo Mobile. The system properties of the app are listed in the System Properties application of Maximo Manage, under the names that start with maximo.mobile and mxe.mobile.