Technical Blog Post
Abstract
Example of Automation Scripting Use Case Scenario
Body
Maximo SysAdm Times
Welcome to the Sysadm Times !!!!!!
My name is Stephan Lambert and I have been working in Maximo in Systems Admin for last 10 years. In my blogs I will be highlighting different topics around Sysadms and covering UI customization. This blog series will all be helpful tips, tricks and how-to's on Maximo SYSADM .
Recently I have been working a lot with troubleshooting /debugging automation scripts in TPAE 7.6 and I would like to share with you an example of automation script which has been implemented to perform the calculation and population of the attribute.The script calculates the Overall Score (and Level) = Probability x Impact. The Overall Score (and Level) are populated as soon as there is a value in the Probability & Impact attributes.
Here is the Automation JavaScript
if (PROBABILITY > 0 && IMPACT > 0) {
SCORE = PROBABILITY * IMPACT;
if (SCORE >= 15) {
LEVEL = 'HIGH';
}
else if (SCORE >= 7) {
LEVEL = 'MEDIUM';
}
else {
LEVEL = 'LOW';
}
}
else {
SCORE = '';
LEVEL = '';
}
The following steps have been used to achieve the requirement.
1. Go to Database Configuration --> ASSET-->Create the following attributes IMPACT, LEVEL, OVERALL, PROBABILITY
2. Save changes --> Turn Admin Mode ON --> Apply Configuration changes
3. Go to Application Designer--> ASSET--> create the above attributes by dragging and dropping Textbox's control.
4. Make sure each attribute is properly bound to the correct object to avoid invalid binding.
5. Go to System Configuration--> Platform Configuration--> Automation Scripts --> Click Create-->Script with Attribute Launch Point
To Test the results - Go to Asset --> create a new record
Thanks for reading, be sure to look out for my next installment.
UID
ibm11130919