Maximo Open Forum

 View Only
  • 1.  Lasunch Automation Script from another outside application

    Posted 06-08-2022 10:40
    HI All,
    Does anyone know the proper way or method to call/launch a Maximo Automation script from outside of Maximo.
    Thanks
    #Administration

    ------------------------------
    Brian Swanson
    Herman Miller
    ------------------------------


  • 2.  RE: Lasunch Automation Script from another outside application

    Posted 06-08-2022 13:10
    Someone may have a better answer.  The only thing that comes to mind is to have your external system send some data to Maximo that it can key a launchpoint from.

    ------------------------------
    Eric Godel
    Bay Systems Consulting
    ------------------------------



  • 3.  RE: Lasunch Automation Script from another outside application

    Posted 06-09-2022 08:33
    Brian,

    The best way I've seen is to use the REST API to call a script. For example:

    /maximo/oslc/script/SCRIPTNAME?lean=1

    Hope this helps.

    ------------------------------
    Alex Walter
    A3J Group, LLC
    ------------------------------



  • 4.  RE: Lasunch Automation Script from another outside application

    Posted 06-09-2022 09:08
    Agreed with Alex. We have some documentation on it here: https://ibm-maximo-dev.github.io/maximo-autoscript-documentation/rest/scripthandler. If you have questions or think we need to add something more to the documentation let me know and I'll get it added.

    ------------------------------
    Steven Shull
    IBM
    ------------------------------



  • 5.  RE: Lasunch Automation Script from another outside application

    Posted 06-09-2022 11:01
    Alex's recommendation is certainly the easiest way to invoke a script from outside Maximo, but it also has no security constraints so any valid Maximo user, no matter what their privilege level will be able to invoke your script.

    Alternatively, you can attach an action to an object structure, which then requires access to the object structure to invoke the actions, so there is at least some restriction.  The process is discussed in this IBM thread, but it does require a bit more work both in set up and invoke.

    Create actions to invoke on an object structure | Maximo (ibm.com)

    Another option is to bake in security into your script.  I wrote a post on this a while back, which you can check out here.

    Sharptree | Blog | Implementing security restrictions using Automation Scripts

    The post describes how to check that the user has a particular sigoption before executing the script.






    ------------------------------
    Jason VenHuizen
    Sharptree
    ------------------------------



  • 6.  RE: Lasunch Automation Script from another outside application

    Posted 06-09-2022 11:06

    After further investigation, it is an action we need to fire so this will help allot. 

     

    Thanks..

     

    Brian Swanson

    SwanMax Enterprises LLC

    Cell: 616.836.8491

    email: swanyspride@gmail.com