Skip to content
Part 4 of 12

Revisions You Can Explain: Compare, Reason and What an Activation Does

An Active inspection form changes through a new revision. mas-tools.com Inspection Form Editor compares any two revisions in plain words, proposes the reason of the revision from that comparison, names what an activation moves before it runs, and shows in the list which job plans, route stops and work orders use the form.

A pen and ink drawing of two checklist sheets side by side on a drafting table; the right sheet has more lines, three of them circled in rose with short marks in the margin, and an orange and teal fountain pen lies across it

An Active inspection form changes through a new revision. mas-tools.com Inspection Form Editor compares any two revisions in words, proposes the reason from that comparison, and says what an activation does before it does it. The list of forms shows where each form is used.

In Manage, an Active inspection form stays as it is. To change it, you create a revision, change the revision, type a reason and activate it. IBM’s Inspection Forms application does all of this, and it works. Three parts of the job stay with you, though.

  • What changed? The application lists the revisions of a form, and we found no way there to compare two of them. Which question is new in revision 4, and which limit moved? You open both and compare them by eye.
  • Why? The reason is a free text of 100 characters. You write it from memory, after the work is done.
  • What happens now? The status is a switch in the list of forms. Which inspections move to the new revision, and which job plans and routes use the form? The application leaves you to find out.

Six months later, a colleague asks why an inspector on a route answers a question that was not there in spring. The answer should be on the screen. This article shows how the editor puts it there. We checked the behaviour on our test system, on the MAS 9.2 series.

A revision starts as a copy

Create revision in the list opens a dialog that says what happens before it happens. The new revision is a Pending revision with every question, field, choice and rule of the revision before. The revision before stays as it is until the new one is activated.

The dialog Create revision: revision 2 is created as a Pending revision with everything of revision 1, and revision 1 stays as it is until revision 2 is activated.

You change the Pending revision like a Draft, and every change is saved to Manage at once. The inspectors keep the Active revision until you activate the new one. The step-by-step path is in the user guide, under Revisions of an inspection form.

Any two revisions, compared in words

Compare with r1 in the editor’s bar opens the comparison. Compare r1↔r2 on a revision in the list opens it too, and so does the history in the Form tab. Two boxes choose the two revisions, so you can compare revision 2 with revision 7 as well as with revision 6.

The dialog Compare revision 1 with revision 2: one question added, 2.2 Temperature of the crank bearing, and two rules changed, each with Limit changed from 40 to 45, and the buttons Close and Copy as text.

The comparison lists the changes in the words an administrator uses:

  • questions added, removed, reworded and moved, also inside their section;
  • sections moved and renamed;
  • fields and choices changed;
  • rules changed, with the old value, such as “Limit changed from 40 to 45”.

The beam engine round in the picture shows the shape. Revision 2 adds a question about the temperature of the crank bearing, and it raises the limit of two validations from 40 to 45 litres. The list says exactly that.

The comparison matches questions by their text. A new revision numbers its questions again, so a comparison by number would call every question after an insert “changed”. The editor matches a question by its text and a section by its title. A rule is compared by what it says, with its source and its target named through the matched questions, so a renumbering alone changes no rule. A question that moved inside its section is one question moved.

The list reads from the first box to the second. From a newer revision to an older one, it reads backwards, and the dialog says so. Copy as text copies the list for a change request or a mail. The option READ is enough to compare, so a reviewer who may not change forms can still read every difference.

The same words appear in two more places. The import of a form file lists its changes this way, and so does the command line mtif diff for two files in git.

A reason proposed from the comparison

Manage keeps the reason in a field of 100 characters. On our test system, Manage stored a reason of 100 characters and refused one of 101 with a message about the maximum field length.

The Form tab of a Pending revision holds the box Reason for the revision. Below it, the editor proposes a reason from the comparison with the revision before. What was added and removed comes first, then what changed, with a question’s text in quotes. Where the names do not fit into 100 characters, it counts them, such as “3 questions changed”.

The empty box Reason for the revision, 0 of 100 characters, and the proposal from the changes, “Temperature of the crank bearing” added, 2 limits changed, with the button Use.

Use takes the proposal. You may change it or write your own. So the reason starts from the facts of the revision. A reason such as “Temperature of the crank bearing added, 2 limits changed” tells the next administrator where to look.

The activation dialog holds the reason too. An activation without a reason is possible, and the dialog says first that the reason is empty. An Active revision also takes a reason in its Form tab, for a user with the options REVISION and SAVE, so a reason that was forgotten can still be written. Nothing else of the Active revision changes.

What an activation does, before it does it

Activate… opens a dialog, and the dialog names what will change. Nothing changes until you click Activate in it.

A flow from Activate: the editor saves what is not saved, runs the form check, keeps Activate closed on an error, and otherwise names the new Active revision, the revision that becomes Revised, the pending inspections that move, and where the form is usedA flow from Activate: the editor saves what is not saved, runs the form check, keeps Activate closed on an error, and otherwise names the new Active revision, the revision that becomes Revised, the pending inspections that move, and where the form is used
What the editor checks and says before an activation

The dialog Activate revision 2: the reason taken from the proposal, revision 2 becomes active, revision 1 becomes Revised, the form check has no errors, and no inspection moves.

The pending inspections follow a rule of Manage that is easy to get wrong. We measured it with inspections in every status:

  • Manage moves inspections only when the system property mxe.app.inspection.UpdatePendingResults is 1.
  • It moves the pending inspections of the revision right before the new one. A pending inspection of an older revision stays where it is.
  • Inspections in progress, in review, completed or cancelled stay on their revision.
  • The work order has a status of its own. When a work order is cancelled, its inspection stays pending, so that inspection moves as well.

The dialog names the inspections that move. When none move, it says why, as in the picture: revision 1 has no pending inspection.

Where the form is used. Job plans, job plan tasks, route stops and open work orders name a form by its number. So from the moment of the activation, the new inspections they create take the new Active revision. The dialog names where the form is used, so you see the reach of the change before you make it.

Deactivate and Delete work the same way. Deactivate says that no revision is Active afterwards, so nobody can choose the form anew. Delete names the questions and rules that go and the Active revision that stays.

The list shows where a form is used

The list of forms shows each form as one row, with its revisions inside it. Under the name, a usage line counts the job plans, job plan tasks, route stops and open work orders that name the form, and its inspection results. A click lists the records. A job plan, a route and a work order have a link that opens the record in Manage.

Every count is read with your account. Where your account may not read a source, the line says so, and the count never shows 0. Route stops need READ in the object structure MXAPIROUTES. On our test system, no security group held that option at the start, so check it on yours.

The list sorts by the column you pick: number, name, revision, changed, status, site or type, up or down. Boxes below the search filter by number, name, revision and a span of dates. The search also finds a form by Manage’s internal id of one of its revisions.

The row of the beam engine form unfolded: the box Sort revisions by, revision 2 Active with its reason, revision 1 Revised, and the button to compare them.

The history sits in the same row. Each revision shows who changed it, when, and its reason. Sort revisions by orders them by revision, date, user, status or reason. When a revision becomes Revised, Manage writes the activation of its successor into its changed line, so the line names the user and the time of that activation. The Form tab adds the status changes of the open revision, with who changed the status and when. IBM’s application does not show this status history.

The same forms, for every tool

The editor reads and writes the forms through the object structure MXAPIINSPFORM, as you, with your options. Every revision it writes is a normal Manage form. IBM’s Inspection Forms application opens it, and the inspection app of Maximo Mobile reads the same records from Manage. A team can therefore start with the editor for the comparison and the activation dialog, and keep IBM’s application for everything else.

What comes next

The user guide walks through a revision step by step, in Revisions of an inspection form, and through the list of forms in Find an inspection form in the list. The mas-tools.com Inspection Form Editor page lists the whole series. The next article is about choice lists: one named list for many forms.

If you want to see a comparison of your own forms, get in touch.

IBM and Maximo are trademarks of International Business Machines Corporation, registered in many jurisdictions worldwide.

← Back to mas-tools.com Inspection Form Editor

See the tools on your own data.

Ask us for a price, a trial licence or a demo. We work in English and German.