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.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
  • 1.  search the stringlist for a given element

    Posted 07/14/06 05:29 PM

    Here is my requirement. Is there any eixsing FS that I can use or I need to write one:

    Given an element to search, this flow service should search through the elements of the array and should return
    true if exists in the array else should return false.

    Input:
    elementToSearch
    Array containing elements (arrayToSearch)

    output:
    true if “elementToSearch” is in “arrayToSearch” else return false.


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


  • 2.  RE: search the stringlist for a given element

    Posted 07/14/06 05:33 PM

    Sudheshna,

    You can try with this WmEDI service (wm.b2b.edi.util:nodeExists) it returns true or false. for element search…if your requirement looking for this.

    HTH,
    RMG


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


  • 3.  RE: search the stringlist for a given element

    Posted 07/14/06 06:05 PM

    Hi Sudheshna,
    Is you requirement something like this:

    you have a stringList e.g. nameList with values nameList[0]=“Bhawesh”; nameList[1]=“Sudheshna” etc… and you want to know if there is a IS built-in service which you can supply the nameList and the search string “Sudheshna” and it should tell you whether “Sudheshna” appears in the Array nameList or not?

    Well there is no built-in service but you can write a small flow service like this:

    call pub.string:makeString and supply the nameList.
    call pub.string:indexOf and map value to inString and supply Sudheshna in the subString.

    If the output if pub.string:indexOf is -1, then Sudheshna doesn’t appear in the array nameList else it apears one or more times.

    HTH,
    Bhawesh


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