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
  • 1.  filter string list

    Posted Wed June 16, 2010 02:17 PM

    i need to filter certain elements from string list. is there any services available in webMethods?

    for example :

    List1

    • utils.API.test
    • pub.file:getFile
    • sampleTest

    in this list i need to filter text containg ‘utils’ and ‘pub’.

    Please let me know is there anyway to do it.

    Thanks in advance.


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


  • 2.  RE: filter string list

    Posted Thu June 17, 2010 08:58 PM

    pub.string:indexOf might help you.

    u need to write a wrapper service to check on the list.


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


  • 3.  RE: filter string list

    Posted Thu June 17, 2010 09:23 PM

    By filter I assume you mean delete:

    Loop – input list: List1
    …BRANCH on ‘/List1’
    …/^Utils|^pub/: MAP (ignore this entry)
    …$default: pub.list:appendToStringList (map List1 to fromItem, creating List2)

    The branch is using a regex to check if the string starts with Utils or pub.


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