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.  addition help?

    Posted 06/01/10 11:48 AM

    hi i need a small help!!

    i have string list which contains some values…its a dynamic string list , so some time we will get 5 values and some times we will get 15 values in tht list.

    i need to add all the values exists inside that string list…how can i?


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


  • 2.  RE: addition help?

    Posted 06/01/10 12:53 PM

    Get the lenght of the list before add operation, add repeat to number of count-1 you get. Use add by providing the repeatCount as index to pass value from list .

    List
    [0]2
    [1]3
    [2]5

    repeat (with counter 2 and repeat on sucess)
    {
    res = res + list[repeatCount]
    }

    cheers!
    nD


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


  • 3.  RE: addition help?

    Posted 06/02/10 03:33 AM

    can you attach screen shot or extracted package…or if any java service can do that.


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


  • 4.  RE: addition help?



  • 5.  RE: addition help?

    Posted 06/02/10 05:22 PM

    Hello,
    For others who may want a simple way. You can just use a standard loop and accumulator to get the total value.

    MAP : 0 ← - → accum
    LOOP list
    → MAP : list, accum ← add → accum

    That has the least hassle to get the job done. Good day.

    Yemi Bedu


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