In comes Maximo scripting to help ease some of these concerns. Maximo scripting is primarily based on the JSR 223 specification which is part of JAVA 6. This JSR allows a JAVA application [in this case Maximo] to host script engines which are compliant to this specification. The engines that are supported in an OOTB Maximo 75 are
1. Mozilla Rhino (JavaScript) which ships with the IBM/Oracle(Sun) JDK 2. Jython which is included as part of Maximo
This basically implies that users can use either of these 2 scripting languages to customize Maximo using the Maximo scripting framework. We do understand that there are other popular JSR 223 compliant scripting engines like JRuby/Groovy and it should be fairly simple to add support for these by adding these engines [jars] in Maximo application classpath. The way the scripting framework is written – it should be able to detect those jars from the classpath and show them as available languages in the scripting application. However I would like to mention that at this point Maximo has only been tested with the Rhino-JavaScript and Jython engines and JSR 223 being fairly new, a lot of the “compliant” engines may have potential issues with their implementation which can prevent seamless integration with Maximo.
*******
The above is an excerpt from Mr. Anamithra guideline document of Introduction to Jython. It’s available over the internet.
Hope this helps to re-emphasise the point.
Regards,
---------------------------------
Thanks & Regards
Venkat
---------------------------------
Original Message:
Sent: 03-18-2022
From: Sid Ogden
Subject: Importing basic python libs into Automation Scripts
How does one use the python libs included in the jython.jar file? For instance, if I want to use datetime and timedelta, or decimal, how would I import them. I have verified these do indeed exist in the jython.jar file. In standard python, I'd use the following import statements:
from datetime import datetime, timedelta
from decimal import Decimal
I know (and have) imported the java libs to do similar functions to these, but I want to use the python versions.
#Customizations
#EverythingMaximo
------------------------------
Sid Ogden
GDIT
------------------------------