After upgrading websphere to version 9, I had to add the load("nashhorn:mozilla_compat.js") line to get alot of my javascript autoscripts to work. After continued testing I have noticed that atleast alot of if not all the errors called through these autoscripts no longer work. Instead they show the generic BMXAA4214E An unknown error has occured message instead of the one called in the script. There seems to be other classes that no longer work since the upgrade as well but that is a question for another time.
function checklo14(mbo) {
if (!mbo.isNull("lo14")) {
var retVal = checkValue(mbo.getString("lo14"));
if (retVal == false) {
service.log("LOCATIONSLO14VAL.JS - concession syntax is invalid: " + mbo.getString("lo14") + " - throwing exception");
service.error("test", "concessionsyntax");
} else {
service.log("LOCATIONSLO14VAL.JS - concession syntax is ok: " + mbo.getString("lo14"));
}
}
return;
}
I have included the above function as an example of a call to service.error but even in an autoscript with just that service.error line it will come up as BMXAA4214E. Any help is appreciated. I wish I could find some good documentation on Maximo Autoscripts in 7.6.1 escpecially for javascript.