THE BPD Blog

From blogs to case studies to news, we love sharing our tips and tricks for asset management, cloud, IoT and smarter operations.

by | Feb 1, 2017

Assigning a Domain to an Attribute Dynamically Using Automation Scripts in Maximo 7.6

I recently ran into a scenario where a WORKORDER attribute has a table domain but the “validation where clause” of that domain should be different between the different applications.  I needed two domains and assigned them dynamically based on the application name using a new feature in Automation Scripts which turned out to be super easy!

  1. Create an attribute automation script, set the “Events” to “Retrieve List”
  2. In the source code use the implicit attribute “domainid” to assign a domain to your attribute. My code looked like this:

if app == “APP1”:
domainid = “DOMAIN1”
else:
domainid = “DOMAIN2”

Be careful when using the implicit “app” attribute. It only returns a value if your script runs against the same object as the main object of your application. So, if your script is against WORKORDER object and it is triggered because of an action in a work order based app (WOTRACK, PLUSDWOTRK etc.) then it will return the app name. But let’s say your script is based on LABTRANS object and it got triggered in WOTRACK. Because the script object is different from the main object of the app, the “app” will return null.

Adel Rustum

Adel Rustum

Adel has been providing consultancy services for Maximo since 2011, tackling everyday user reported issues, implementing solutions, developing new functionality, and making recommendations on using industry best practices. He has international experience in working with clients of different industries, and currently he is based out of BPD's office in Calgary, AB, Canada.

0 Comments

What is Asset Performance Management?

What is Asset Performance Management?

What is Asset Performance Management? Introduction As a definition, Asset Performance Management (APM) encompasses the capabilities of data capture, integration, visualization, and analytics tied together for the explicit purpose of improving the reliability and...

Maximo Relationships

Maximo Relationships

In this blog I will be explaining what a Maximo Relationship is, how to create one, and, the benefits of having Maximo Relationships. What is a relationship? The way in which two or more things are connected, or the state of being connected.Why do we need Maximo...

Maximo Data Imports: A simplified guide

Maximo Data Imports: A simplified guide

All your Maximo data import needs simplified Being able to manage data loads and data extracts is a powerful ability. It can substantially improve processes and reduce delays. Maximo offers not one but multiple ways of handling data. Equipped with user-friendly error...

Custom servlet in Maximo

Custom servlet in Maximo

What is a servlet? Servlets are Java classes which service HTTP requests and implement the ‘javax. servlet. HttpServlet’, an abstract class that implements the servlet interface and is specially designed to handle HTTP requests. A  servlet accepts the request,...

Sign up to our free newsletter to explore emerging technologies, industry events and Maximo best practice.

Come with BPD Zenith to the future of Asset Management

Partner Ecosystem

BPD Zenith partners with a diverse array of the world’s top Technology, Business and Solution Integration leaders.