Maximo

Maximo

Come for answers, stay for best practices. All we're missing is you.

 View Only
  • 1.  Set default automation script language to Python

    Posted Sun November 14, 2021 04:42 PM
    Edited by System Admin Wed March 22, 2023 11:48 AM
    MAM 7.6.1.2:

    I'm trying to make the default programming language for the AUTOSCRIPT application to be python instead of Nashorn.
    (How to set the default value of a field in Maximo)


    1. I've tried setting the default via Application Designer:


    But that doesn't seem to work. When I create a new script in Automation Scripts, the default is still Nashorn. Even after logging out and in again.



    2. And the default value in Database Configuration was already set to jython -- which would be acceptable. But unfortunately, it doesn't seem to work either.




    3. And I checked the APPFIELDDEFAULTS table, but it's empty. So I don't think that's the culprit.




    Question:

    How can I set the default automation script language to be python? It seems to be stuck on Nashorn.


    #AssetandFacilitiesManagement
    #Maximo


  • 2.  RE: Set default automation script language to Python

    Posted Mon November 15, 2021 08:24 AM
    I think you'll have to write a script named AUTOSCRIPT.NEW to override the value. It looks like it defaults to the first script language in the list in the add method of AUTOSCRIPT and I don't think that list is reliably retrieved which is why sometimes it might default to something else. A database default is applied prior to the logic in the .add method which is why that would override it. I'm not as confident on the UI default but I assume that's true there as well. 

    I don't decide what's a bug, but I would open a case on this. I feel it should only set that value in the add method when something isn't already provided.

    ------------------------------
    Steven Shull
    ------------------------------



  • 3.  RE: Set default automation script language to Python

    Posted Mon November 15, 2021 08:39 AM
    Edited by System Admin Wed March 22, 2023 11:44 AM
    Thanks Steven.

    Case: TS007534058


    #AssetandFacilitiesManagement
    #Maximo