object-structure="mxapiwodetail". A developer who comes from Maximo knows tables and business objects, and may read this name as a table with a prefix. It is more than that. The object structure decides what an app can see, in which shape, and with which rights.MAS 9.2 series core concept
The numbers on this page come from our test system, on the MAS 9.2 series. They show the size of things, and they change with every release.
Three words, from the bottom up#
A table holds rows. WORKORDER is a table.
A business object is a table with its rules. Maximo calls it an MBO. The business object for work orders knows that a status follows a status, that a field is required, and that a change has to be written into a history. On our system this one object has around 700 attributes.
An object structure is a named tree of business objects, made for the outside world. It has one object at the top and others below it, joined by relationships. Maximo offers each object structure through its REST API. This is the door that an app uses.
One structure, taken apart#
MXAPIWODETAIL is a structure for work orders. The Technician app names it on 17 of its datasources. Its description in Maximo is “Maximo API for Work Orders with Plans and Reservations”. We read its definition:
| Level | Objects | Examples |
|---|---|---|
| 1 | 1 | the work order |
| 2 | 23 | planned labor, planned materials, planned tools, reservations, work log, tasks, actual labor, attached documents |
| 3 | 4 | the documents of a task, the lines of a material request |
| 4 | 1 |
The object structure for work order details on our test system of the MAS 9.2 series: 29 objects on four levels.
One request to this structure can bring a work order with its tasks, its planned materials and its work log. The children arrive inside the parent, as lists.
A system has many such structures. Ours has more than 700, and about 270 of them carry the prefix MXAPI. For work orders alone we counted 27 structures with the work order at the top. They differ in what hangs below it.
What a datasource takes from it#
A datasource in an app names one object structure and takes four things from it.
It takes the records. The schema of the datasource lists the attributes it wants, and Maximo returns these and no others:
<maximo-datasource id="fs_d_load_bound" object-structure="mxapiwodetail"
where="siteid="BEDFORD"" order-by="wonum" page-size="3">
<schema id="fs_d_load_bound_s">
<attribute name="wonum" unique-id="true" id="fs_d_load_bound_a_wonum"/>
<attribute name="description" id="fs_d_load_bound_a_description"/>
</schema>
</maximo-datasource>It takes the child records. A child object is asked for by the name of its relationship, as in rel.woactivity{taskid,description}, and it arrives as a list inside the parent. The schema guide measures the forms.
It takes the saved queries. A saved query belongs to an object structure. The work lists of the Technician app are saved queries of this kind. Saved Queries and Filters explains them.
It takes the rights. Each object structure has its own security. A user who may open the app and may not read one of its structures gets an error for that datasource. We measured it in Wrong Belief: A Refused Datasource Gets an Empty Answer.
What follows for a project#
- Know the structures of your app. The Technician app reads through 26 of them, and a small app such as Timesheet through 3. Which App for Which Use Case? has the count for every app.
- A missing field is often a question of the structure. An attribute of the main object is one line in the schema. A value from another object needs that object in the structure, or a relationship that leads to it.
- Plan the rights per structure. An app with 26 object structures needs the right options on all of them, for each group of users.
- Change a copy. We leave the structures of IBM as they are. When an app needs another object or another setting, we make a structure of our own as a copy and change that one.
What to read next#
Datasource Basics shows the datasource from the side of the app. For the requests themselves, our series on the REST API goes deeper: Object Structure or Business Object: Two Ways to Read Maximo, Selecting Data with oslc.select and The oslc.where Clause.
IBM describes object structures in the documentation of Maximo Manage, in the Object Structures application, and the requests in its documentation of the Maximo REST API.
