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.


#TechXchangePresenter
 View Only
Expand all | Collapse all

Automate notification on service locking information

  • 1.  Automate notification on service locking information

    Posted Thu September 22, 2016 07:08 AM

    Hello All,

    1. I have a situation where I would like to get all the package names in an IS server where at least one of the items of the package are locked by any user. I’m using both Wm8.2 and 6.5 versions.

    2. Then I would need to send an email including those package names to a group which I can do by SMTP. But my issue is get point 1 solved


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


  • 2.  RE: Automate notification on service locking information

    Posted Thu September 22, 2016 07:15 AM

    You could use wm.server.ns:getAllLockedNodes.


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


  • 3.  RE: Automate notification on service locking information

    Posted Thu September 22, 2016 07:18 AM

    Hi,
    Xiaowei Wang,

    But doing so, I will be using WmRoot package which I think I’m not supposed to use. Is there any other way apart from using WmRoot to accomplish this? Thank you.


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


  • 4.  RE: Automate notification on service locking information

    Posted Thu September 22, 2016 07:34 AM

    You can use the services in WmRoot at your own risk. You must check if the service wm.server.ns:getAllLockedNodes exists in wM 6.x and 8.x IS’s. If not you will find something similar to this.


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


  • 5.  RE: Automate notification on service locking information

    Posted Thu September 22, 2016 07:40 AM

    Hi M@he$h
    Thanks for the reply.

    But we have set of rules in our project that does not allow use of any WmRoot services.

    I do not need any information on user who locked the item. I just need the package name if any locks are present in it. But I do not see any inbuilt service to do so. So is there any place in IS where I can get to see if a package is locked?

    Thank you.


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


  • 6.  RE: Automate notification on service locking information

    Posted Thu September 22, 2016 08:03 AM

    Unfortunately there is no OOTB services to do this but if you are allowed to write custom java service in your project then you can refer the wM IS Java API.

    However you can see the nodes locked in a package on IS administration page somewhere in packages management.


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


  • 7.  RE: Automate notification on service locking information

    Posted Thu September 22, 2016 08:43 AM

    Ok Thank you all. I will try to go through java API or request the project to use WmRoot.


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


  • 8.  RE: Automate notification on service locking information

    Posted Thu September 22, 2016 09:13 AM

    Sure you could use Java API, because services in WmRoot use it too, but these APIs are not public, so you will have a higher risk then using WmRoot services.
    Using services in WmRoot could be very useful and saves huge time costing, just be careful when upgrade to new version.


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


  • 9.  RE: Automate notification on service locking information

    Posted Thu September 29, 2016 03:12 AM

    Hi All,

    I’m allowed to use WmRoot. So the first problem is solved.

    But the locked elements are show as document names. I have attached screenshot of the output. I need the document names(locked element names) into a temporary string. How can I get the these names into a string? Thank you.
    Screen.JPG


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