Maximo

Maximo

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

 View Only
  • 1.  How to execute a script from another script 

    Posted Sat July 15, 2017 12:54 PM

    Hi,


    I have a script that I want to execute from another script (if certain condition are met)
    Could you help me on how to do it?


    Thanks


    #AssetandFacilitiesManagement
    #Maximo


  • 2.  RE: How to execute a script from another script 

    Posted Mon July 17, 2017 04:34 AM

    Hi Arnov,

    It is not best practice to call an Automation Script from another Automation Script as there is no automation script hierarchy or associated to field in the application, but if this is not a consideration the script to achieve this is

     

     

    scriptName = "autoscript = 'TEST1'"

     

    scriptMbos = mbo.getMboSet("$scripts", "AUTOSCRIPT", scriptName)

    scriptMbo = scriptMbos.getMbo(0)

    script = scriptMbo.getString("SOURCE")

    exec (script)

     

    I am happy to be contacted on paula.lloyd@macs.eu if you need further assistance.

    Regards

    Paula Lloyd - Maximo Pre -sales Consultant 

    MACS EU


    #Maximo
    #AssetandFacilitiesManagement


  • 3.  RE: How to execute a script from another script 

    Posted Wed July 19, 2017 03:41 AM

    Hi Arnov,

    If the launch point of the script you want to call is of type "Action Launch Point", you can call that action from another script using this approach:

    https://www.ibm.com/developerworks/community/blogs/e25892f0-20f7-46ff-bbe9-c7c03fb3036f/entry/invoke_an_action_for_an_automation_script?lang=en
    Hope that helps!

    Helen Fisher

    Marketing Manager at BPD Zenith

    Happy to be contacted at: helen.fisher@bpdzenith.com


    #Maximo
    #AssetandFacilitiesManagement