Skip to content
Part 10 of 12

It Works as You, and Installs Nothing in Manage

The editor has no Manage account of its own. This article shows how your MAS sign-in reaches Manage, which two sets of options decide what you may do, which lists the editor reads with your account, what an installation puts into the cluster, and why Manage itself stays unchanged.

An ink and wash painting: a small figure holds up an orange card beside an orange kiosk, and a path of orange dots leads to a long teal building with six doors, two of them open with orange light inside

mas-tools.com Inspection Form Editor has no Manage account of its own. You sign in through MAS, and every read and every write runs as you, with your own options. In Manage the editor installs nothing: no automation script, no object structure, no security group and no database change. This article shows how that works, and what a team needs to know before it approves the editor.

We checked the behaviour on our test system, on the MAS 9.2 series. The steps of an installation are in the installation guide.

Your sign-in, carried into Manage

You open the editor in the browser, and it sends you to the MAS sign-in, as every app of the suite does. While your MAS session lives, you pass without a login form. The editor exchanges the sign-in for your token inside the cluster and keeps its session in the memory of its pod. Every request to Manage carries your token, so Manage sees you and applies your security.

A form that you save in the editor names you in Manage. We measured it: a form created through the editor carries the signed-in user as its creator, and a change carries the user who made it.

The editor’s session follows MAS, as a Manage tab does:

  • Signing out of MAS signs you out here. The editor checks the MAS session once a minute, and at once when you sign out in another tab.
  • The idle timeout of MAS holds here too. The editor reads it from MAS. After the idle time a dialog counts down, and Stay signed in keeps the session.
  • A forced logout reaches the editor. When an administrator ends the sessions in MAS, the editor shows the minutes left and the message, and then signs you out.
  • Another user in the same browser ends your session. The editor notices the new MAS user and ends the old session.

The editor saves each change a moment after the last keystroke. When a session ends before Manage has taken a change, the browser keeps that change for you alone. The editor saves it when you open the form again after the next sign-in.

Two sets of options, and both must allow it

Manage knows two sets of options for inspection forms. The editor reads both, and it offers an action only when both allow it.

  • The options of IBM’s Inspection Forms application, MANAGEINSPFORM. These are the options that your administrator already grants for IBM’s own application.
  • The options of the object structure MXAPIINSPFORM. Manage checks them on every read and every write, whichever client sends the request.
In the editor MANAGEINSPFORM MXAPIINSPFORM
Open the list, open a form, preview, export to a file READ READ
New form CREATE INSERT
Copy of a form CREATE INSERT, and SAVE when the form has rules
Change a Draft or a Pending revision no option SAVE
Create a revision REVISION INSERT, SAVE
Switch “Require review” of a form REVIEW SAVE
Activate and deactivate ACTIVATE, DEACTIVATE STATUS
Delete a Draft or a Pending revision DELETE DELETE

Manage takes the rules of a copy in a second request, so a copy of a form with rules needs SAVE as well. A user who may read forms and lacks SAVE sees each form read-only, with one line that names the missing option. A user without REVISION sees an Active revision with a line that says a new revision needs that option. A user without REVIEW sees the switch “Require review” read-only. The editor leaves out every action that your options do not allow.

The dialog Your options over the list of forms: the options ACTIVATE, CREATE, DEACTIVATE, DELETE, READ and REVISION in the application MANAGEINSPFORM, and DELETE, INSERT, READ, SAVE and STATUS on the object structure MXAPIINSPFORM

The user menu has My options, which shows what Manage grants you in both places. Mike Wilson, a user of IBM’s demo data on our test system, holds every option of the table above except REVIEW. The editor reads your options once a minute, so a new grant in Security Groups works in the editor within a minute.

The lists it reads with your account

A form names meters, domains, document folders, automation scripts and image analysis models, and the editor offers each of them from Manage. It also offers the organizations, the field types and the form types your Manage holds. It reads them through IBM’s stock object structures, again with your account:

Object structure What the editor reads
MXAPISITE the active sites a new form may name
MXAPIORGANIZATION the active organizations a new form may name, with their descriptions, also an organization without a site
MXAPISYNONYMDOMAIN the field types and the form types your Manage holds, your own types included
MXAPIMVI the image analysis models that an upload field offers by name
MXAPIMETER the meters that a meter field offers and checks, the meter’s type and unit, and whether a meter is characteristic, which a rule on a meter field needs
MXAPIDOMAIN the domains that a domain field offers and checks, the domain’s type, and the values that a rule on a domain field or a characteristic meter offers and checks
MXAPIDOCTYPE the document folders that an upload field and an attachment offer and check
MXAPIAUTOSCRIPT the automation scripts that the Form tab offers as form scripts, to add and to remove
MXAPIJOBPLAN, MXAPIROUTES, MXAPIWODETAIL the job plans, route stops and open work orders that use a form
MXAPIINSPRESULT the inspection results of a form, and the pending inspections that an activation moves
MXAPIPROP the system property mxe.app.inspection.UpdatePendingResults, which the activation dialog shows

Each of these needs READ for the user, as any other client would. Where your account may not read a list, the editor offers less, such as a box that takes a typed name, the types that Manage ships, or the organizations of the sites you read. A count of where a form is used then reads “Not readable with your account”, with Manage’s answer. It never shows 0 for such a source, because 0 would claim that the form is unused.

What gets installed, and where

Every part of the editor lives in the MAS core namespace of your OpenShift cluster:

  • one pod with the web interface and the API;
  • a data volume of 1 GiB for the named choice lists, the acceptance of the licence agreement and the last user count;
  • a ConfigMap with the editor’s settings;
  • a Route under the suite’s domain, a Service, a NetworkPolicy and a Certificate from the MAS internal issuer;
  • a service account whose Role may read and write one Secret, the editor’s licence, and read the MAS Suite;
  • three Secrets: the sign-in client, the registry pull secret and the licence;
  • a sign-in client, registered with the MAS sign-in.
A flow from the browser through the Route to the editor pod in the MAS core namespace; the browser signs in at the MAS sign-in, the pod checks the session there, the pod keeps its own small volume, and every read and write goes from the pod to Manage as the userA flow from the browser through the Route to the editor pod in the MAS core namespace; the browser signs in at the MAS sign-in, the pod checks the session there, the pod keeps its own small volume, and every read and write goes from the pod to Manage as the user
What runs where: the editor in the MAS core namespace, and Manage as it was

The forms live in Manage, so the volume holds no form. The editor reads and writes them through MXAPIINSPFORM, the object structure that IBM’s application uses as well. We wrote the same form twice, once as IBM’s application writes it and once as the editor does, and compared every column of the form’s five tables. The two forms held the same values. So a form from the editor is a normal Manage form, and IBM’s application opens it like any other.

What Manage needs anyway

Two settings belong to Manage itself, and the editor needs them like any other app that shows attachments and times. Manage needs a volume for attached documents, so that a file outlives Manage’s pod. And Manage’s server time zone must be the one that the database writes in, so that dates show the right hour. Both settings change Manage’s workspace and install nothing of the editor. What we measured shows what happens on a system without them.

The administrator of the editor

The editor’s administration screen holds the licence agreement, the licence, the user count and the settings. A user opens it when the editor’s configuration names that user. No Manage option stands for this role, because the editor has no application in Manage. For the user count, that administrator needs READ in the object structures REP_SECURITY and MXAPISYNONYMDOMAIN.

The licence counts the active users who hold one of six options of Inspection Forms: ACTIVATE, CREATE, DEACTIVATE, DELETE, REVISION and REVIEW. Any security group can give the option. A user who only reads forms does not count. The administration guide describes the screen and the count.

Taking it out again

A removal script deletes the sign-in client and the editor’s objects in the namespace. The licence Secret stays, so a licence survives a reinstall, and a second command removes it. On request, the data volume with the named choice lists stays as well. Manage holds nothing of the editor, so Manage needs no cleanup. The forms that people made are Manage’s own records. They stay, with their revisions, rules and attachments, and IBM’s application keeps working on them.

What comes next

Side by side compares the editor with IBM’s Inspection Forms application, task by task. The mas-tools.com Inspection Form Editor page lists the whole series, and a first form walks through the editor step by step.

Do you want to try the editor with your own security groups? 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.