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.  need help regarding Branch(Switch-If condition)

    Posted 07/08/04 05:05 AM

    Dear All.,
    im writing a flow service, in that i want a branch llike:
    1: ill get a Value from my map —say it 100
    2: now i want to check this 100 will be placed at where


    #webMethods
    #Integration-Server-and-ESB
    #webMethods-General


  • 2.  RE: need help regarding Branch(Switch-If condition)

    Posted 09/21/04 05:31 PM

    It sounds like the question is as follows:

    1. do something to get a value (say maxRecords = 100)
    2. check the contents of maxRecords
    3. if maxRecords = 100, map it to field X

    How to accomplish this:

    1. you have maxRecords = 100
    2. map maxRecords to the destination element (string, etc)
    3. double click the line connecting the two elements (for a conditinal map)
    4. in the ‘map only if’ section, type maxRecords=100

    #Integration-Server-and-ESB
    #webMethods-General
    #webMethods


  • 3.  RE: need help regarding Branch(Switch-If condition)

    Posted 09/22/04 02:43 AM

    it sounds like it’s not really a question :wink:


    #webMethods
    #Integration-Server-and-ESB
    #webMethods-General


  • 4.  RE: need help regarding Branch(Switch-If condition)

    Posted 09/23/04 05:24 PM


  • 5.  RE: need help regarding Branch(Switch-If condition)

    Posted 09/27/04 05:54 PM

    You can you the branch to evaluate labels

    BRANCH (evaluate label: true)
    SEQUENCE (label: %maxRecords% == 100)
    … more flow
    SEQUENCE (label: $default)
    … more flow

    So the evaluation of the label is in the sequence step or the label of any step.
    Although I don’t see why this won’t work and would be preferred.

    BRANCH (evaluate label: false, switch: /maxRecords)
    SEQUENCE (label: 100)
    … more flow
    SEQUENCE (label: $default)
    … more flow

    Good luck.

    The Developer Programming References explain this as well as active help through the developer itself. For the later I think you can press F1 key when you have selected an inserted branch step. Finally looking over the regular expression information in the former help section will be helpful for future solutions you create.


    #webMethods-General
    #Integration-Server-and-ESB
    #webMethods