
with Tags:
python
X

Deleting DOCLINKS with Automation Scripting
Contributors: Steve Hauptman, Ted Lyons, Mike Sielian, John Cook, Melody Bienfang Introduction This post describes a technical solution that gives clients the flexibility to delete attached documents (DOCLINKS) seamlessly and with ease. By leveraging existing functionality in Maximo namely Escalations and Automation Scripting, you can purge attached documents from the location where the document physically lives. A selection criteria should be defined in an Escalation (e.g. STATUS = 'CLOSED') along with... [More]
Tags:  docs attached maximo scripting attacheddocs escalation python doclinks tpae |
Automated Scripting: Accessing a Custom [J|P]ython Module Within Your Script
In this quick blog we'll discuss how to access a custom module from an automation script. Often in the script application we create long and complicated scripts which are embedded inside a multiline textbox. Maintaining the bulk of your scripts on your file system will allow code modularity as well as allow for maintenance and deployment via an scm system such as RTC or git. On our system we will place a simple file called test.py under C:\myLibrary with the contents: # Answer to the Ultimate Question of Life, the Universe, and... [More]
Tags:  import maximo custom library jython python scripting autoscript automation |
Conditional Restrictions for Classification Specifications (Attributes)
IBM Maximo and Control Desk products have classifications in order to categorize records such as items, assets, locations, work orders, tickets etc. Classifications are not only useful for easily identifying, restricting or filtering records, they also bring in specifications functionality. Specification attributes are extra fields defined for a classification used with one or more Maximo objects. In spite of adding new fields to main database tables, related specification records are added to the specification tables only for the classified... [More]
Tags:  maximo jython mandatory validation maximo+7.5 script attribute python restriction required classification condition specification automation controldesk maximo+7.6 |
Fetching Dynamic Lookup Lists via Attribute Launch Point with Retrieve List Event
In previous versions of Maximo/ICD, we used to write Java codes or create table domain of domains with case statement in list where clause in order to fetch lookup lists dynamically. Then, conditional domains were introduced, but they caused performance issues for large lists and were inefficient for some cases. In latest version (7.6), we have the "Retrieve List" event for Attribute Launch Points which is perfect for this task. Let me go through an example to explain: AIM: Fetching different person groups for different sites... [More]
Tags:  controldesk+7.6 automation_scripting lookup list python dynamic script retrieve+list attribute maximo icd controldesk maximo+7.6 jython |
Fetching Daily Exchange Rates from xml feed provided by Turkish National Bank
I will present you a simple Jython script to fetch daily exchange rates using the xml feed provided by Turkish National Bank via the following url: http://www.tcmb.gov.tr/kurlar/today.xml Figure 1 - Caption of Web Page for Exchange Rates Let me show the partial page source which will present the xml structure clearly: Figure... [More]
Tags:  controldesk+7.5 lira currency exchange+rate url jython dollar eur tl turkish automation_scripting controldesk+7.6 usd maximo+7.5 euro python exchange controldesk maximo maximo+7.6 try escalation xml |
Maximo Rest Client Example: Calling an External REST Service (Logo Tiger 3) with a Maximo Client
MOTIVATION: When I searched for a REST client implemented within Maximo using Automation Scripting, all documents I could find gave information on Maximo REST services which is the reverse of my requirement. Hence, I thought it would be a good idea to post this example which can ease the things for developers looking for a similar requirement. Maximo is focused on Asset Management, hence most of the time on customer site we need to integrate Maximo with ERP (SAP ERP, Oracle ERP etc.) or billing systems. I will present an example of a Maximo... [More]
Tags:  httpclient apache maximo+7.6 controldesk+7.6 automation_scripting python integration http maximo+7.5 logo+tiger client controldesk+7.5 erp logo maximo controldesk rest jython |
Creating a JSON String from JSON Object and JSON Arrays in Automation Scripts
Maximo framework includes json4j.jar library for JSON implementations such as constructing JSON formatted data, XML to JSON conversions, JSON string and stream parsing etc. More information on JSON and JSON4J library can be found via the link below: https://www.ibm.com/support/knowledgecenter/en/SSAW57_8.5.5/com.ibm.websphere.web2mobile.json.help/docs/GettingStarted.html My starting point for this exercise was the requirement of a REST client implemented on Maximo for an external REST service. I needed to send a JSON formatted text as... [More]
Tags:  jsonstring jsonarray maximo+7.6 jython jsonobject controldesk+7.6 maximo maximo+7.5 controldesk+7.5 automation_scripting json4j script json python controldesk |
Checking if an Attribute Exists or Not on an Object via Automation Scripts
If you need to check that an attribute (field) exists on an object (MBO) or not, then you may use the following python code pieces in your Automation Scripts: Alternative 1: mboValueData = mbo.getMboValueData([ 'ATTRIBUTENAME' ])
if mboValueData[ 0 ] is not None :
mbo.setValue( "ATTRIBUTENAME" , "NEWVALUE" )
Alternative 2: from psdi . security import UserInfo from psdi . server import MXServer mxServer = MXServer . getMXServer () userInfo = mbo . getUserInfo () objectName = mbo . getName ()... [More]
Tags:  maximo+7.6 icd object automation_scripting maximo attribute controldesk maximo+7.5 mbo python jython controldesk+7.5 icd76 |
An Overview of Automation Script Launch Points and Sequentially Ordered Automation Scripts
Since Automation Scripts were introduced in v7.5 and enhanced in v7.6, they became our best choice of customization most of the time. Besides a couple of rare situations which should be handled within JSPs or bean classes, Automation Scripts are used whenever we need to go beyond typical configurations. If you are familiar with older versions of Maximo such as v6.x or v7.1, then you should also have some knowledge on Maximo Java framework and Maximo Business Objects (MBO classes, i.e. field, action, condition, integration processing classes... [More]
Tags:  controldesk+7.6 automation_scripting maximo+7.5 controldesk+7.5 maximo+7.6 python maximo script action sequence order jython automation controldesk |