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
Expand all | Collapse all

Transformers - String

  • 1.  Transformers - String

    Posted Tue April 11, 2017 10:43 AM

    Hi all,

    I’m working on string like this (it’s an example) :

    string| string1 | string2| string3 | string4| string5 ecc

    Witch transformesr should i use to obtain this result?

    string| string1

    I just need the first two string before the second pipe.

    Thank you,
    fa


    #webMethods
    #Integration-Server-and-ESB


  • 2.  RE: Transformers - String

    Posted Thu April 13, 2017 06:45 AM

    Hi Francesco,

    you can use tokenize and/or split from WmPublic package to transform the string into a list and then construct a new String by concatenating. After you have read the second value exit the loop and drop the list.

    Regards,
    Holger


    #Integration-Server-and-ESB
    #webMethods