Maximo Automation Scripts in 2026: From Hand-Crafted Code to AI-Assisted Optimization
The Maximo automation script landscape is shifting from manual coding toward AI-assisted optimization. IBM Bob's code optimization skill, the growing power of formulas, and new patterns for workflow automation are changing how teams build and maintain custom logic.
Maximo Automation Scripts in 2026: From Hand-Crafted Code to AI-Assisted Optimization
The Maximo automation script ecosystem has been one of the platform's most powerful extensibility mechanisms for over a decade. From simple attribute validations to complex integration orchestrations, automation scripts have filled the gap between out-of-the-box functionality and real-world operational requirements. But the landscape is shifting. Three forces are converging: AI-assisted code optimization through IBM Bob, the growing sophistication of Maximo formulas as a lightweight alternative to full scripts, and new patterns for connecting external workflow automation platforms like n8n directly to Maximo's integration layer.
This article examines each of these forces in detail, with practical examples, configuration patterns, and guidance on when to use which approach. The goal is not to replace Maximo developers with AI. It is to give developers better tools so they spend less time on boilerplate and more time on the logic that actually differentiates their operations.
The automation script landscape in 2026 looks different from even two years ago. The release of Shuvajit Datta's Maximo Automation Scripts Handbook in June 2026 provides a developer-focused reference covering fundamentals, best practices, ready-to-use script templates, debugging and optimization tips, and real-world use cases from enterprise implementations. At the same time, IBM Bob's Maximo code optimization skill, demonstrated in a June 2026 session, introduces a governed, repeatable process for analyzing and improving existing automation scripts. And Maximo formulas, covered in depth by a June 2026 technical session, have evolved to the point where many calculations that previously required scripts can now be handled declaratively.
IBM Bob and the Maximo Code Optimization Skill
IBM Bob is not a code generator that replaces Maximo developers. It is an AI-assisted analysis and optimization tool that follows a structured five-stage process: Discover, Analyze, Optimize, Validate, and Update. Understanding each stage is essential to using the tool effectively.
Stage 1: Discover. Bob reads the existing automation scripts from a Maximo instance through a dedicated MCP (Model Context Protocol) server. This includes scripts tied to object launch points, attribute launch points, action launch points, integration launch points, and custom condition launch points. The objective is to build a complete understanding of the current script landscape before making any recommendations.
Stage 2: Analyze. Bob reviews each script and identifies outdated, risky, or inefficient patterns. This includes repeated code blocks, missing exception handling, logic that does not align with current Maximo standards, and performance bottlenecks. Bob also generates plain-language summaries of what each script does, which is valuable for teams inheriting scripts they did not write.
Stage 3: Optimize. Based on the analysis, Bob suggests cleaner and more maintainable logic. This could include simplifying complex conditionals, improving readability, reducing duplicate scripts, consolidating launch points, and replacing deprecated API calls with current equivalents. Bob acts as a productivity accelerator: instead of a developer manually reading every script from scratch, Bob provides a first-pass recommendation that the developer or architect reviews.
Stage 4: Validate. This is the critical governance step. In enterprise environments, you cannot generate changes and deploy them directly. Validation ensures that the optimized script still follows standards, uses the correct payload structure, and handles edge cases. Bob's validation step is designed to catch regressions before they reach a Maximo environment.
Stage 5: Update. Once recommendations are reviewed and approved, changes are written back through a governed process. This is not an automatic push. It is a controlled update that respects the team's change management workflow.
The technical architecture behind this is worth understanding. The Maximo MCP server fetches scripts from the Maximo instance and passes them to the Maximo code optimization skill, which has been specifically trained on Maximo coding patterns and best practices. The output is both optimized scripts and an optimization report that documents what changed and why.
Setting up the Bob Maximo code optimization skill requires:
1. Cloning the GitHub repository containing the skill and MCP server code
2. Creating a project folder with a .bob directory and a skills subdirectory
3. Placing the Maximo code optimization building block in the skills folder
4. Configuring the MCP server connection to your Maximo instance
The skill is designed to work with Bob's three operational modes. Plan Mode is for architectural design and MCP server planning. Code Mode is for writing, testing, and executing code independently of external MCP resources. Advanced Mode provides full access to plan, code, and connect to all MCP tools and external resources simultaneously.
Maximo Formulas: When You Do Not Need a Script
One of the most practical developments in Maximo automation is the growing power of formulas. Formulas are not a replacement for automation scripts. They fill a specific niche: lightweight mathematical expressions that calculate numerical values without the overhead of a full script execution.
The June 2026 technical session on mastering Maximo formulas laid out the key distinctions clearly. Formulas operate like Excel expressions within Maximo. They use a familiar grammar: standard math operators for addition, subtraction, multiplication, division, and remainders, alongside logic operators like greater-than, less-than, and, and or. Built-in functions include if (with standard three-parameter syntax: condition, true-value, false-value), max, min, and duration for time span calculations.
There are two types of formulas, and understanding the difference is essential:
Attribute Formulas are tied directly to a specific MBO attribute. They function like an attribute launch point in scripting but work entirely automatically. When you create a non-persistent attribute and set its formula, Maximo automatically understands the dependency chain. If the formula references YTDCOST and BUDGETCOST, any change to either attribute triggers recalculation of the formula attribute. No automation script required.
Object Formulas live at the MBO level rather than being tied to a single attribute. They act as dynamic non-persistent expressions. The key advantage: you do not need to create a new attribute in Database Configuration to store a calculation. You create the object formula, then reference it anywhere in the system using the EXP$ prefix followed by the formula name. This keeps the database schema clean while providing massive reusability.
The syntax has one important quirk: formulas do not allow the dot (.) character. Instead, you use the dollar sign ($). So PRESSUREMETER.LASTREADING becomes PRESSUREMETER$LASTREADING. This is a small syntactic difference that trips up developers coming from scripting backgrounds.
Version 2 of the Maximo formula engine introduced a critical performance optimization: conditional short-circuiting. In Version 1, an if function evaluated both the true and false branches regardless of the condition, which could trigger unnecessary database hits. Version 2 processes logically in steps: it checks the condition first, entirely skips the branch that is false, and only executes the required calculation. This protects system performance from pointless database operations.
When should you use a formula instead of a script? The decision framework is straightforward:
- Use a formula when: the calculation is purely mathematical, involves only attributes on the same MBO or related MBOs, does not require external API calls, and does not need complex control flow (loops, nested conditionals beyond what
ifcan handle). - Use an automation script when: the logic involves multiple MBOs with complex relationships, requires external integration calls, needs transaction control, involves string manipulation beyond simple concatenation, or requires error handling beyond what a formula can express.
Workflow Automation: Connecting n8n to Maximo
A June 2026 demonstration by Mahdi Salah showed how to automatically create a Maximo Work Order from the n8n workflow automation platform. This is a practical example of low-code orchestration driving work creation in Maximo without custom development.
The pattern works like this: n8n, an open-source workflow automation tool, triggers on an external event (a form submission, a sensor reading, a schedule). The workflow calls Maximo's REST API (or OSLC API) to create a work order, passing the relevant data as JSON. Maximo processes the request through its standard integration layer, creating the work order with all the standard validations, workflow triggers, and notifications.
The technical details matter. The n8n HTTP Request node needs to:
1. Authenticate to Maximo's API (using API key or OAuth, depending on your MAS configuration)
2. Construct the OSLC or REST payload for work order creation
3. Handle the response, capturing the work order number for downstream workflow steps
4. Implement error handling for API failures, timeouts, and validation errors
A sample n8n workflow configuration for creating a Maximo work order:
{
"method": "POST",
"url": "https://maximo.example.com/maximo/oslc/os/mxwo",
"headers": {
"apikey": "{{MAXIMO_API_KEY}}",
"Content-Type": "application/json"
},
"body": {
"description": "{{workOrderDescription}}",
"assetnum": "{{assetNumber}}",
"location": "{{locationCode}}",
"worktype": "CM",
"priority": "{{priority}}"
}
}
The value of this pattern is not just automation. It is that n8n can orchestrate across multiple systems. A single workflow can receive a maintenance request from a portal, create the work order in Maximo, send a Slack notification to the supervisor, and log the event in a data warehouse. Maximo becomes one node in a broader automation fabric, not a silo that requires manual data entry.
Workflow Design: Approval Routing That Actually Works
A June 2026 post from Epsilon LLC on optimizing Maximo approval workflows for risk management identified a set of design principles that are worth internalizing. The core insight: most approval workflows are designed around organizational hierarchy, not actual risk thresholds. The result is that routine work orders sit in approval queues behind administrative reviews, adding days to cycle time for no risk-reduction benefit.
The design principles that fix this:
Match approval authority to financial and risk thresholds, not job titles. If a supervisor can approve any work under $5,000 without escalation, the workflow should reflect that. Multi-level approvals on routine, low-cost work orders are cycle time waste in a formal process.
Minimize sequential dependencies. When two approvals are independent of each other (a safety review and a budget authorization), they should route in parallel, not in sequence. Sequential routing doubles cycle time when parallel routing would work just as well.
Set automatic escalations with defined timeframes. A workflow that stalls because an approver is out of office is a design failure, not a staffing problem. Escalation rules with a 24- or 48-hour trigger prevent individual availability from blocking the entire work queue.
Separate high-risk from routine. Emergency and safety-critical work orders should have a streamlined path that does not route through the same queue as routine planned work. Treating every work order identically in approval logic is how routine maintenance waits behind administrative reviews.
Maximo's Escalation module automates this. Escalations are time-based rules that trigger automated actions when a record has not progressed within a defined window. Three use cases deliver immediate value:
1. Overdue work order notifications. When a work order has been in APPR status for more than five days without a scheduled date, the system notifies the planner and supervisor automatically. No manual queue review needed.
2. Approval-pending escalation to backup approvers. When a work order or purchase requires approval and the primary approver has not acted within 48 hours, escalation routes the record to a backup. One missed approval does not stall the entire work queue.
3. Stale service request cancellation. Service requests with no technician action after a defined number of days get flagged for cancellation with automated notification to the requester. Backlog stays clean without a coordinator touching every record.
Configuration is through the Escalation application: define the cron task schedule, the query conditions, and the action to trigger. The key is designing escalation logic that matches how your operation actually breaks down, not how the org chart looks.
Practical Implications
For Maximo development teams, the convergence of these three forces (AI-assisted optimization, formulas, and external workflow automation) changes the skill mix required. Developers need to understand when a formula is sufficient and when a script is necessary. They need to be comfortable with AI-assisted code review tools like Bob. And they need to think about Maximo as one node in a broader automation architecture, not as the only platform where logic lives.
For teams inheriting large automation script libraries, Bob's discover-and-analyze capability is immediately valuable. The ability to generate plain-language summaries of what each script does, identify duplicate logic, and flag outdated patterns can compress months of manual code review into days.
For teams building new functionality, the decision tree should be: formula first (if the calculation is purely mathematical), then automation script (if logic is needed), then external workflow automation (if orchestration across systems is needed). This is not a hierarchy of quality. It is a hierarchy of appropriate complexity. Use the simplest tool that solves the problem.
Bottom Line
Maximo automation is not getting simpler. It is getting more sophisticated, with more tools and more choices. The teams that thrive will be the ones that understand the full toolkit: formulas for lightweight calculations, automation scripts for complex business logic, AI-assisted optimization for maintaining large script libraries, and external workflow platforms for cross-system orchestration. The teams that struggle will be the ones that treat every problem as a nail because they only know how to swing the automation script hammer.
Sources
- IBM Bob Maximo Code Optimization Skill Demo (June 2026): https://www.youtube.com/watch?v=bNID8QRi7Iw
- Shuvajit Datta: Maximo Automation Scripts Handbook (June 2026)
- Mastering Maximo Formulas (June 2026): https://www.youtube.com/watch?v=Ke76ftmOHew
- Mahdi Salah: Automatically Create a Maximo Work Order from n8n (June 2026)
- Epsilon LLC: Optimize Maximo Approval Workflow for Risk Management (June 2026): https://www.linkedin.com/posts/epsilon-llc_ibmmaximo-eam-workflowdesign-activity-7467579666082660353-Zcq7
- Biplab Das Choudhury: All Things Maximo June 2026: https://www.linkedin.com/pulse/all-things-maximo-june-2026-biplab-das-choudhury-ghmrc