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
  • 1.  Deleting string from stringList

    Posted Thu April 09, 2020 11:12 AM

    Hi.
    I m new i webMethods Flow.
    I want to use upperCase to upper elements from stringList, but at the same time I want to skip value ‘b’.

    For example
    list[0]=‘a’
    list[1]=‘b’
    list[2]=‘c’

    I try to use branch with exit value when function meet b. But this make null like this
    upperList[0]=‘a’
    upperList[1]=null
    upperList[2]=‘c’

    I want have something like this (without null)
    upperList[0]=‘a’
    upperList[1]=‘c’

    Any idea’s to solve this problem?


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


  • 2.  RE: Deleting string from stringList

    Posted Thu April 09, 2020 08:09 PM

    You can’t delete elemetns in an existing list. You have to collect them in a new list. If an element should be skipped, just do not add it into the new list.


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


  • 3.  RE: Deleting string from stringList

    Posted Tue April 14, 2020 01:46 PM

    Hi,

    After collecting the items in new temporary list, this one can be mapped back to the original list after the loop has finished and the temporary list can then be dropped.
    Remember to leave the output array on the LOOP step empty, otherwise the input and output array are required to have the same length as the $iterator variable applies to both.

    Regards,
    Holger


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