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

Using Wildcards in a label for branching

  • 1.  Using Wildcards in a label for branching

    Posted Fri January 14, 2005 10:26 AM

    Hi,

    In webMethods 6.1, we have developed an interface that polls for specific files and processes each according to the filename. However, now one of our partners (the source) is creating unwanted files and we need to narrow the search. Is there a way of using a wildcard in the label for the filename eg FIN_01?I instead of writing a step for each variation eg. FIN_011_I, FIN_012_I_, FIN_013_I_ etc? It is just the one digit…

    Many thanks in advance


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


  • 2.  RE: Using Wildcards in a label for branching

    Posted Fri January 14, 2005 11:24 PM

    Hello,
    How did you develop your interface? Did you make a flow service from the core webMethods services? Did you use PSUtilities? Or is this a custom java service?
    For a flow service, after you get the first list of file names, you can make another list by making a loop step wrapping a branch. In the branch, you can use regular expressions to pick what to keep. So:

    [MAP] (SET) @StringList -> outlist
    [LOOP] inlist
    -[BRANCH]inlist
    –[SEQ]/[FIN_01[0-9]+_I]/
    —[appendtoStringList] inlist -> outlist

    This is match “+” one or more of [0-9] any number. Then you can do your regular processing on outlist. Remeber to include the trailing “/” so the SEQ eval as regex.
    Good day.

    Yemi Bedu


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


  • 3.  RE: Using Wildcards in a label for branching

    Posted Wed January 19, 2005 05:31 AM

    Thanks for the reply - will give it a try!


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