Maximo

Maximo

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

 View Only
  • 1.  What scripting language is used for formulas?

    Posted Tue September 14, 2021 10:17 PM
    Edited by System Admin Wed March 22, 2023 11:44 AM


    MAM 7.6.1.2:


    What programming/scripting language is used for Maximo formulas?

    Do they use MBR? (Maximo Business Rules Scripting)
    Related: Maximo Business Rules Scripting [.doc file download]


    Thanks.



    Related:
    Advanced formula functions? i.e. FOREACHMBO( )
    "...these functions are for the MBR scripting language which is based on the formula engine."


    #Maximo
    #AssetandFacilitiesManagement


  • 2.  RE: What scripting language is used for formulas?

    Posted Wed September 15, 2021 08:46 AM
    MBR is a special scripting language for Automation Scripts. The Jython/JavaScript languages in Automation Scripts provide a lot of capabilities that could easily crash the system or take actions on systems that you might not want your developers to be able to do. On the crash side, you can easily create an infinite loop for example in Jython/JavaScript but looping is greatly restricted in the MBR language to prevent that. On the take action side, you can import the Java framework for Files and access/delete files on the server. There are valid reasons to do it but you may not want your developers to be able to do that. 

    Formulas are intended to sort of mimic Excel formulas. It might have started with an existing library (I feel like it did, but can't think of the name if so) but the Maximo team added quite a lot to support invoking automation scripts, getting properties, getting child objects, determining if records are modified, executing the formula when values change, etc. so it's really it's own syntax now. Some documentation on how to use it can be found here if you haven't seen these already: https://community.ibm.com/community/user/iot/viewdocument/maximo-formula-documentation?CommunityKey=ed77c224-45e2-47b0-b574-cc31496f9a41&tab=librarydocuments

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