You can already do this in the definition of a relationship where you can write a sql-like clause, indicate the name of a Java class method but also the name of a script.
That said, in my opinion scripts are just a more limited but very convenient alternative of writing Java code. In fact, at 90% script code invokes product Java classes and methods, and as such you can do almost the same things but also the same errors, from missing a mboset closure to an infinite loop. The manager imposing the "no-customization" rule I think cares little whether the memory leak was created by a script or a poorly written method.
Finally, remember that in MAF-based applications the custom logic must be written in Javascript, and apart from the different language I see no difference in the old practice of writing a DataBean.
------------------------------
Diego Visentin
EAM BU Director
Tempestive S.p.A.
------------------------------
Original Message:
Sent: Mon May 13, 2024 11:32 AM
From: Jason Uppenborn
Subject: Are Automation Scripts considered Customization?
"zero difference between an automation script and a Java class"
In the case of an Mbo customization or field listener / validation class, Maximo has no choice but to use your class. In the case of an automation script, your code is merely called on by the Mbo class or the validation class. And there is plenty of fallout from this difference. When I can put my script in the Class Name field on a Database Object or Attribute and enjoy the applicable benefits, then autoscripts will have been upgraded from being a configuration to being a customization.
------------------------------
Blessings,
Jason Uppenborn
Sr. Technical Maximo Consultant
Cohesive
Original Message:
Sent: Mon May 13, 2024 10:59 AM
From: Jason VenHuizen
Subject: Are Automation Scripts considered Customization?
From an IBM perspective, automation scripts are not a customization, although as Jason pointed out IBM will not be responsible for your where clause or your automation script if it breaks something.
With that said, from a technical perspective there is zero difference between an automation script and a Java class. In fact, you can write Java classes in automation scripts, as I covered in this blog post https://www.sharptree.io/blog/2023/2023-09-05-custom-script-classes/.
My opinion is that you should treat automation scripts with the same care and discipline you would any custom Java class.
Jason
Original Message:
Sent: 5/13/2024 10:43:00 AM
From: Jason Uppenborn
Subject: RE: Are Automation Scripts considered Customization?
Automation scripts are as much a customization as where clauses for relationships. IBM supports your ability to create, update and delete them, and IBM will do what they reasonably can to upgrade them. However, the actual "code" in the where clause or automation script is yours, and they will not write it for you or let you use support to help you debug it. If you have a problem that is theirs in your code (relationship where clause or automation script), the burden of proof is heavily on you that it is their problem. It doesn't happen often, but if attributes move to a new object over an upgrade, IBM will not "upgrade" your where clause. If your script uses attribute bound variables, those references should be upgraded, but if you "getString()" that attribute in your script, that will be your problem.
------------------------------
Blessings,
Jason Uppenborn
Sr. Technical Maximo Consultant
Cohesive
Original Message:
Sent: Fri May 10, 2024 09:59 AM
From: mx pro
Subject: Are Automation Scripts considered Customization?
Hello All,
I need a clarification and if possible IBM's official position on customization vs configuration.
in my organization, we are implementing Maximo with a "No Customization" policy. We have created several Automation Scripts and Conditional Expressions in our system (7.6.13).
We are clear that Java class modification is considered as customization in Maximo.
What about other options in Maximo, e.g., Automation Scripts and Conditional Expressions.
Also, what happens during upgrade process, e.g., Upgrade to MAS. Does Maximo upgrade utility, automatically handles Automation Scripts?
------------------------------
mx pro
ON
------------------------------