Maximo

Expand all | Collapse all

What scripting language is used for formulas?

  • 1.  What scripting language is used for formulas?

    Posted 8 days ago
    Edited by User1971 12 hours ago


    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."



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

    Posted 8 days ago
    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
    ------------------------------