Assetize

Ship Maximo changes as work orders, from DEV to PROD

Keep the pipeline you run today. mxR is the one step in it that knows Maximo: a work order, the right tier, the right order, Maximo tests.

The pipeline moves files well. A Maximo change is scripts, screens, grants and packages inside a running system, and nobody can say what UAT holds today.

How CI/CD works today

Most teams already have this. A developer commits to Git. A pipeline tool (Azure DevOps, GitHub Actions, GitLab CI, Jenkins or Tekton) picks the commit up, builds it, tests it and deploys it to the next environment. Approvals and logs live in the pipeline tool, and the same commit moves from DEV to TEST to PROD.

The pipeline tool is the runner. It triggers, schedules, holds approvals and keeps logs, and it runs whatever step you give it. For a container or a web app, that step already knows what it is deploying.

What a Maximo change needs

A Maximo change is a set of records and settings inside a running Manage: automation scripts with launch points and variables, Application Designer screens, security groups and signature options, object structures, endpoints and reports, Migration Manager packages, MAF apps, domains, workflows and cron tasks.

Moving them safely takes four things. The tier: a script goes in through REST in minutes, a JVM option is a pod restart, and Java or a DBC script is a new build with a window and a backup reference. The order: domains before object structures, conditions before scripts, screens before security grants, workflows before escalations. A preview: each item compared with the live site before anything is pushed. And tests that know Maximo: Jython compiled on the site, the cron task run, the integration message traced, every screen opened against a known good day.

What a Maximo change needs: for each Maximo artefact, the tier, the deploy order, the live-site check and the Maximo test mxR gives it
Each kind of Maximo artefact, with the tier, the order, the live-site check and the test mxR gives it.

Where mxR fits: one step in your deploy stage

mxR runs inside the pipeline you already have. Your runner keeps doing what it does well: triggers, stages, approval screens and logs. mxR is the step in the deploy stage that knows Maximo. It turns the change into a work order with Maximo’s own statuses, picks the tier, deploys in the right order with a preview, runs the Maximo tests and records the evidence, in run.json and as annotations on the ManageWorkspace.

Two commands are the whole step. Here they run as a GitHub Actions job on every push to main; Azure DevOps, GitLab CI and Jenkins run the same two lines in a script step, and mxr pipeline render writes the Tekton PipelineRun. The API key comes from the runner’s secret store, and the exit code tells the runner what happened: 0 done, 1 a task failed, 2 a gate held it, 3 infrastructure or sign-in, 4 bad input.

name: Maximo deploy
on:
  push:
    branches: [main]

jobs:
  dev:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
        with: { fetch-depth: 0 }          # mxr plan reads the Git diff
      - uses: actions/setup-node@v4
        with: { node-version: 22 }
      - run: npm install -g https://assetize.com.au/mxr/releases/v0.7.1/mxr-0.7.1.tgz
      - name: Raise the work order and deploy it to DEV
        env:
          MXR_DEV_APIKEY: ${{ secrets.MXR_DEV_APIKEY }}
        run: |
          WO=$(mxr plan --from ${{ github.event.before }} --json | jq -r .wo)
          mxr start "$WO" --site DEV
Maximo CI/CD with mxR: a Git commit goes through your pipeline tool, then the deploy stage runs mxr plan and mxr start, and the same work order reaches DEV, UAT and PROD
Your pipeline builds and tests; the mxR step raises the work order and deploys it one site at a time.

From Git: commit, plan, approve, start

You commit a change under hot/. mxr plan reads the Git diff and picks the tier by one written rule: scripts, screens, domains, workflows and cron tasks are HOT and go in through REST in minutes; server bundles, JVM options and certificates are a RESTART; Java, database scripts and add-on versions are a REBUILD. It raises the work order in WAPPR with the job plan for its tier, and says why for every path.

An approver runs mxr approve. mxr start deploys the work order to DEV, runs the job plan of tests and closes it at COMP when every gated test passes. The same work order then starts on UAT and PROD with the same commit; PROD waits for an approval and a window.

mxr plan                    # raise WO1001 in WAPPR from the Git diff
mxr approve WO1001          # APPR, with the approver recorded
mxr start WO1001            # deploy to DEV, run the job plan, COMP
mxr start WO1001 --site UAT --backup-ref db2-2026-10-31   # the next site, same commit
mxR in the pipeline you already run: four runners with the mxR step in Deploy, then the deploy stage site by site from mxr plan to PROD
The same step in any runner, then one work order from DEV to PROD.

From one site to the next

Many teams build on DEV and move what they built up to UAT, then to PROD. mxR 0.4 raises that as a work order too.

mxr promote plan reads both sites and compares them item by item: scripts, screens, domains, security groups, cron tasks, workflows and the rest, with their child rows such as domain values and application grants. The list has four groups. New: on DEV, missing on UAT. Changed: on both, with something for DEV to write. Only on UAT: kept as it is. Excluded: held back on purpose, because endpoints, system properties, cron schedules and group members belong to each site.

The Maximo administrator approves that exact list, and mxR records a fingerprint of every item with the approval. When mxr start runs, it reads DEV again first; an item that changed since approval stops the start before anything reaches UAT, and names the item. The approved items then go in through the same deploy as any other change, and the same job plan of tests runs on UAT.

mxr promote plan --from DEV --to UAT --dry-run   # print the list
mxr promote plan --from DEV --to UAT             # raise WO1042 with the list attached
mxr approve WO1042                               # who, when, and the list's fingerprint
mxr start WO1042                                 # read DEV again, promote to UAT, test, COMP
Site-to-site promotion: the list of new, changed, only on UAT and excluded items, the approved work order, and UAT
An example promotion list from DEV to UAT, and what happens after approval.

Tests that know Maximo

Every artefact type gets the test that suits it. Scripts compile on the site’s own Jython. Cron tasks run and show up in CRONTASKHISTORY. Integrations post a message and read the tracking record back. The user interface gets Playwright journeys: create and approve a work order, look up an asset, raise a purchase order. Every record a journey creates is cancelled on the test site afterwards.

The golden screens go further. mxR opens every classic application the key’s user can see and records its title, toolbar, tabs, Select Action entries, More Search Fields dialog and saved queries, then opens the first record and walks every tab and sub-tab. On a Manage 9.2.237 lab with the Aviation and Service Provider add-ons that came to 287 screens and 894 generated tests. The weekly replay of all 894 runs in about 50 minutes, and the first full replay passed 892 (WO1010). The other two led to fixes in mxR itself, shipped in 0.3.9.

To prove the compare catches change, we edited three things in a copy of the People baseline: one Select Action entry, the search dialog’s title and one tab. Exactly those three tests failed, each with a sentence naming what went.

The everyday journeys got faster as well. Work Order Tracking, create and approve, went from 28.8 s to 14.2 s, and the asset lookup from 21.6 s to 14.0 s, with one shared Manage session and apps opened inside the shell. The whole story of the golden screens is in How we check all 287 Maximo screens after a change, at /blog/maximo-screens-black-box.

1) PERSON People opens
   Error: Select Action entries gone: Approve Payroll
2) PERSON People: More Search Fields opens and cancels
   Error: the search dialog reads "More Search Fields" (the baseline recorded "Advanced Person Search")
3) PERSON People: a record opens and every tab and sub-tab works
   Error: tabs gone: Payroll
Maximo Work Order Tracking filtered on the mxr prefix, every record in status CAN
Work Order Tracking on the test site, filtered on the mxr prefix: every record the journeys created, cancelled.

How REA makes the Playwright tests smarter

Playwright drives the browser and keeps a trace of every test: each click, each screen change and every network call, like a flight recorder. A trace holds the answer to “why was that slow?” or “why did that fail?”, and a thousand network calls are a lot to read by eye.

REA, Reverse Engineer Anything, reads them for us. It is an open-source toolkit that lets an AI agent take software apart and explain it, and it keeps what it can prove apart from what it infers. mxR hands it a run’s traces with one script, and REA sorts every call by kind with its timings and failures: static files, screen opens (loadapp), REST calls, classic events, sign-in, and the shell’s long poll.

On the golden smoke run it read 11 traces and 1,137 calls. 1,007 were static files at about 1 ms each, so they cost almost nothing. Screens opened in 235 ms typically and 821 ms at the slowest. The call that mattered was the Maximo shell’s long poll, which stays open for 1,125 ms and then opens again, all day. A test that waits for the network to go quiet waits for something the shell never does.

Those findings became three rules in mxR’s Playwright page model. Wait for the screen’s title bar or first control, rather than for the network to go quiet. Read the loadapp answer first, because it already says whether the app opened, crashed or refused the user, so a broken screen fails in seconds with Maximo’s own message. Keep one Manage session for the whole run and open each app inside the shell. With real records on the test site, Work Order Tracking went from 28.8 s to 14.2 s, the asset lookup from 21.6 s to 14.0 s, the whole set of journeys from 73.6 s to 61.2 s, and four shell loads became one.

So Playwright does the clicking and keeps the evidence, and REA turns that evidence into a reason and a fix. Every slow or failed test leaves a trace you can hand to REA the same way.

$ node scripts/rea-report.mjs .mxr/runs/WO1007/playwright/golden
11 trace(s), 1137 requests
kind                      count   p50 ms   p95 ms   max ms
static asset               1007        1      193     1313
app open (loadapp)           14      235      821      821
REST (api/oslc)              11       92     4535     4535
classic async event           6       92      138      138
login / session               2       87       87       87
shell long poll               2     1125     1125     1125

A change is a work order

The statuses are Maximo’s own. The records live in your Git repo and in the run record, never as records in Maximo. Transitions are a table, so an illegal move is refused, and a gated failure holds INPRG until the same command resumes it.

Status   Command                          Meaning
WAPPR    mxr plan or mxr promote plan     raised from the Git diff, or from what differs between two sites
APPR     mxr approve                      approved, or self-approved where the site has no approval gate
INPRG    mxr start                        deploy for the tier, then every task in the job plan
COMP     gated tasks pass                 done; the same work order starts on the next site
CAN      mxr cancel --code                one failure code and the recovery runbook, filled in
The mxR Work Order screen for WO1001: status COMP, tier HOT, the commit, the approval and the result of every job plan task
The Work Order screen in mxr ui: tier, commit, approval and the result of every task.

Put it in your Maximo

Four commands and one API key put mxR on your first site. The full guide, with every command and its real output from a live Manage, is at /mxr/docs.

npm install -g https://assetize.com.au/mxr/releases/v0.7.1/mxr-0.7.1.tgz   # free, Apache-2.0
read -rs MXR_DEV_APIKEY && export MXR_DEV_APIKEY
mxr init --site DEV --url https://<host>/maximo
mxr doctor
mxr export --all

Sources

More field guides