@maximo, and nothing tells you which ones matter. Five of them matter for every app. Two more matter when you need a map or a shared lookup. The rest belong to the platform, and you will meet them in a log long before you need them. This is the map.MAS 9.2 series framework 3.2.8xx
This is the fourth post of the starting series. Understanding Your First Maximo Mobile App showed the files, and MAML Basics showed the language. This post shows the libraries the language compiles against. We went through the package.json of every app that ships with the 9.2 series and ordered the packages by how many apps depend on each. The order is the durable part, and the versions move with every release.
The five no app builds without#
Nearly every shipped app declares the same five packages, and your app will too, because the build scripts call them by name. They split into three that run inside the app and two that run on your machine.
Three tiers, where the top one is in every app, the middle one is added by hand, and the bottom one is the container and the shell.
@maximo/app-processorturns your MAML into React. It readsapp.xml, checks every element against the registry, and writes one React component per page plus the application bootstrap. When a build says an element is unknown or an attribute is deprecated, this is the package talking. You never call it; the CLI does. It is the reason MAML is a closed vocabulary.@maximo/maximo-js-apiis the framework under everything. Datasources, the application and page objects, the REST connection, the session, the data formatters, and the whole offline stack live here. Everythis.app, everydatasource.load(), everyapp.setCurrentPage()in a controller is a call into this package. It has no UI in it at all, which is why the same package runs in a browser tab and inside the mobile container. When a datasource misbehaves, the answer is in here.@maximo/react-componentsis the elements. Every<box>,<label>,<data-list>and<smart-input>you write compiles to a component in this package, built on IBM’s Carbon design system. Its element registry is the one the app-processor checks against. When an element renders in a way the reference did not promise, this is where the behaviour lives.@maximo/graphite-cliis the developer’s daily tool.devstarts the development server,buildcompiles,testruns the suite,previewserves a build,proxystands a Maximo proxy up, andupgrademoves a project to a newer framework. It is the command the npm scripts in every app call.@maximo/maxdev-cliis the other tool, for the app’s lifecycle.localizegenerates the label file andpackage-appzips the app.upload-appanddownload-appmove it to and from a server, andobject-structureinspects a Maximo object structure.gen-xsdwrites a schema for editor support, andsetup-proxywrites the proxy config. It handles what the framework build does not.
Together those five are the whole toolchain, which is two CLIs to drive it, one compiler, one framework and one component library.
You can check this on your own app. Here is the manifest of our Starter app, FSSTARTM, as the server handed it over after the duplicate, with only the @maximo names printed:
jq -r '(.dependencies + .devDependencies) | keys[] | select(startswith("@maximo/"))' package.json@maximo/app-processor
@maximo/graphite-cli
@maximo/map-component
@maximo/maxdev-cli
@maximo/maximo-js-api
@maximo/maximo-library
@maximo/react-componentsFive of the seven are the tier above. The other two, maximo-library and map-component, are the tier below. Our app is a copy of SRMOBILE, and its manifest lists the same seven packages as SRMOBILE’s.
The two you add when you need them#
@maximo/maximo-libraryis the shared MAML. It holds the datasources, lookups and templates that more than one app needs: the location hierarchy, the asset hierarchy, the person lookup, meter readings, ALN domains. An app pulls one in with amaximo:prefix in afileattribute, and the prefix resolves into this package throughgraphite.sharedResourcesinpackage.json. Many of the shipped apps declare it. The moment you write a location lookup, you want it.@maximo/map-componentis the map. Every map an app shows, with OpenLayers and ArcGIS adapters, offline map areas and the Maximo map layers, comes from here. Some of the shipped apps declare it, and it is the largest package in the set by file count. Leave it out until a page needs a map, because it is heavy.
The rest of the container#
You will not add these to an app, and you will meet them anyway, in a build log, in a stack trace, or in the container’s node_modules. One line each is enough to place them.
| Package | What it is | When you meet it |
|---|---|---|
config-server | the server behind the Application Configuration app: storage, jobs, versions | when a publish fails or a job hangs |
graphite-common | the HTTP connection, a hybrid data adapter, the simple API helpers | in a stack trace under a network error |
mas-common | the MAS core pieces: login, password change, the MAS data adapter | on the login screen and in the MAS user apps |
mas-common-ui | a 9.2.x platform package that react-components depends on | in the dependency list of the element library |
graphite-common-solution-components | image maps, card sliders, galleries, the linear chart | in a handful of specialised apps |
treegrid | the tree grid control the scheduling dashboards use | in the planning and dispatching apps only |
commonlib | the shared React runtime the container loads once | in the container, never in your app |
eslint-plugin-graphite | lint rules for controllers: no new Date(), no async lifecycle hooks | when the linter flags a controller |
Three more names appear in shipped manifests and nowhere in the container: cypress-testing-library, semantic-release-config and lvc. The first two are IBM’s own build tooling. The third is the linear visual control that one app uses, and its elements are the ones the MAML reference cannot see, because the reference is generated from the container.
Which package to open#
The fastest way to use this map is as a routing table, from the thing you are looking for to the package that holds it.
| You are looking for | Open |
|---|---|
| why an element exists or what it renders | react-components |
| why MAML fails to compile | app-processor |
| how a datasource, the session or offline works | maximo-js-api |
| what a build or dev command does | graphite-cli |
| what localize, package or upload does | maxdev-cli |
| a shared lookup or datasource | maximo-library |
| anything about a map | map-component |
Every one of these ships inside the Application Configuration container image. For the version on your own install, read package.json in any app your server holds.
What to read next#
Hello World in Maximo Mobile puts these packages to work in a first app. For the elements react-components provides, Maximo Mobile UI Components is the tour. For the language app-processor compiles, MAML Basics.
The framework’s own documentation ships with every MAS install. In the Application Configuration application, open the ? menu and choose Developer Documentation for the guides and Component Documentation for the element reference. Both are generated from the same packages named above.
