IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

How can we check the status of all packages in the server by using flow service?

  • 1.  How can we check the status of all packages in the server by using flow service?

    Posted Mon February 28, 2022 03:30 AM

    Dear friends,

    Could you please someone explain how can we check all the packages status in the server by using the flow service?
    I dont have any prior experience in writing flow service , please assist how to write the service to check status for all packages.

    Expected output should be like: If any the package is not active … it should show the results as fail with package name

    Best Regards
    KMV


    #webMethods
    #Integration
    #Integration-Server-and-ESB
    #Flow-and-Java-services


  • 2.  RE: How can we check the status of all packages in the server by using flow service?

    Posted Mon February 28, 2022 05:22 AM

    Hi Varun,

    unfortunately, there is no public API for this, only private API.
    You can explore the WmRoot package and see if you find something useful there.
    Remember to set the extended setting watt.server.hideWmRoot to false to see it in Designer.
    This should only be done on DEV environment.

    Regards.
    Holger


    #Integration-Server-and-ESB
    #Integration
    #webMethods
    #Flow-and-Java-services


  • 3.  RE: How can we check the status of all packages in the server by using flow service?

    Posted Mon February 28, 2022 05:40 AM

    To list all installed activated packages, you can use an API call

    ## list all packages and their information
    curl "http://localhost:5555/admin/package?expand=true" \
    -H 'Accept: application/json' \
    -u 'Administrator:manage'
    

    There is no public service for this, so you would need to make this call via pub.flow:http service and provide credentials, which I would recommend that you set via global variables.
    regards,
    John.


    #Integration
    #webMethods
    #Flow-and-Java-services
    #Integration-Server-and-ESB