Service Management 360

How to configure queryBases in Maximo Anywhere

Would you like to understand how to do the initial setup and configuration of IBM Maximo Anywhere and what you need to get your mobile implementation up and running?

In my previous blog post, “How can you turbocharge your Maximo Anywhere application?” I provided an overview of the Maximo Anywhere platform and introduced its configuration and customization capabilities. In this blog series, I will provide specific examples of Maximo Anywhere configurations.

Of course, before you start your setup and configuration, you should do some planning about the environment. You should also decide which features and capabilities of Maximo Anywhere you will want to use, including maps, GPS, bar codes and more.

The main areas that would typically be configured in an initial environment include the following:

This post focuses on the configuration of a queryBase on the IBM Maximo Anywhere work management app.

Adding a queryBase

Once you have installed Maximo Anywhere, one of the first things you will need to determine is which query/queries you should use to load the Work Orders onto the mobile devices so that the technicians can do their work. The queries are specific to each client environment, as they are based on how the Work Orders are assigned and executed across the environment. However, these queries will typically include some criteria like open or in-progress Work Orders that are assigned to the current user.

In this example, we will use one of the pre-existing queries in the Maximo server: “OWNER IS ME”:


Notice that the query must be public.

1. Start by making a backup of the application definition. Navigate to the Work Execution folder in C:IBMMaximoAnywhereappsWorkExecution. Find the app.xml file and copy it to a new file, app.orig.xml.

2. In the UI section of the app.xml, look for WorkItemsView.

3. Enter the following: <query label="Owner is me" queryBase="OWNER IS ME" /> as the first query under <queries>, as highlighted here:

<view id="WorkExecution.WorkItemsView" label="My Assigned Work"

saveonshow="true" showBackButton="false" >

<queries resource="workOrder">

<query label="Owner is me" queryBase="OWNER IS ME" cssClass="queryBaseMenuItem"/>

<query label="My Assigned Work" queryBase="getMyAssignedWork" cssClass="queryBaseMenuItem"/>/> 

4. In the data section of the app.xml file, add the queryBase to the WorkOrder resource as highlighted here:

<resource providedBy="/oslc/sp/WorkManagement"


name="workOrder" pageSize="200" class="">


<!-- list of query bases the app will rely upon for this resource -->

<queryBase name="getMyAssignedWork" />

<queryBase name="MYASSIGNEDWORK" />

<queryBase name="WORKIOWN" />

<queryBase name="PMBACKLOGWORK" />

<queryBase name="OWNER IS ME" />



Once you build and deploy the work execution app, you will see a new query like this:


In summary, the proper initial setup of IBM Maximo Anywhere will provide the basis for a successful mobility implementation for Maximo.

In my next blog posts, I will cover additional examples of configurations in Maximo Anywhere. I look forward to hearing about your own scenarios and suggestions. Connect with me here or on Twitter @abiazett.



Tags: , , , , , ,

Share your thoughts with us!