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

Manipulating StringList plzz HELP !

  • 1.  Manipulating StringList plzz HELP !

    Posted Tue March 14, 2006 09:39 PM

    Hello WmPeople !
    I have a stringlist as an output from a service.
    And lets assume the list has

    Car.
    Truck.
    SUV.

    i want to get rid of SUV in the string list.
    Ive gown dferent roads to get this issue solved…but my logic keeps failing.
    Someone please help
    Thanks
    Scooby !


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


  • 2.  RE: Manipulating StringList plzz HELP !

    Posted Tue March 14, 2006 09:42 PM

    Check for that particular item when you are adding it to the string list and drop it.


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


  • 3.  RE: Manipulating StringList plzz HELP !

    Posted Tue March 14, 2006 09:53 PM

    Jaya,
    Its a builtin service that generates the stringlist.
    I cannot just drop it !
    Any other suggestions wmpeople?


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


  • 4.  RE: Manipulating StringList plzz HELP !

    Posted Tue March 14, 2006 09:57 PM

    I need to go through that string list , remove the unwanted string and put all the strings back into a new string list!


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


  • 5.  RE: Manipulating StringList plzz HELP !

    Posted Tue March 14, 2006 10:31 PM

    Can you loop through stringList, branch and appendToStringList (newStringList) if %stringList% != ‘SUV’?


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


  • 6.  RE: Manipulating StringList plzz HELP !

    Posted Tue March 14, 2006 10:43 PM


  • 7.  RE: Manipulating StringList plzz HELP !

    Posted Wed March 15, 2006 08:13 AM

    Yes of course, you can loop through the string list, branch , and then build a new string list without the unwanted ones.

    All lists can be looped !!!
    HTH
    Regards
    Bhavani


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


  • 8.  RE: Manipulating StringList plzz HELP !

    Posted Wed March 15, 2006 04:58 PM

    hi,
    ok so u getting a string list as output from a service.u loop over the string list and check for the item u want to delete u can do string comparison .
    and in every iteration add the element to new string list if its not the value u want to delete.and if u find the value u want u to delete then do nothing continue looping(dont add to new string list).
    hope this helps.
    sri


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


  • 9.  RE: Manipulating StringList plzz HELP !

    Posted Wed March 15, 2006 05:11 PM

    Bash,jaya0313,tillmanm;
    You guys rock !
    I got it baby !
    Yes I got it…my brains just needed a jump!
    thanks
    Scoooooooobydoo !


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


  • 10.  RE: Manipulating StringList plzz HELP !

    Posted Wed March 15, 2006 05:12 PM

    I did it exactly what u said srikanth05!
    thanks amigo !
    Gracias !
    thanks everyone!
    ya’ll are life savers!
    scoobydoo


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


  • 11.  RE: Manipulating StringList plzz HELP !

    Posted Wed March 15, 2006 05:13 PM


  • 12.  RE: Manipulating StringList plzz HELP !

    Posted Wed March 15, 2006 05:48 PM

    Jaya
    i looped over the car types,
    branch over the expressions in sequences
    and if the stringlist equals SUV do nothing
    and if its not simply appendtostringlist
    before that i was simple mapping…yes i know its stupid…i was smokin something !
    but thanks ya’ll !


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