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.  Repeat Step

    Posted Wed February 02, 2011 10:00 AM

    Hi…
    I am new to webMethods . Could anyone explain me how to use Repeat step with an example and what are the situations in which we should use repeat step?


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


  • 2.  RE: Repeat Step



  • 3.  RE: Repeat Step

    Posted Wed February 02, 2011 05:50 PM

    You can refer to the DeveloperUsersGuide that would be present in
    …\webMethods6\Developer\doc.


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


  • 4.  RE: Repeat Step

    Posted Thu February 03, 2011 11:32 AM

    Hello,
    Repeat Construct is used for repeating a piece of code or few lines.
    For eg. DB connection. If I am using an insertion in DB, I can use a repeat step on it, with a condition of repeat when failure. So if the connection fails, it would repeat it again.

    For more details, read the documentation as mentioned by Lanfir and Ambrish.
    path = %wm install directory%/_documentation/Developer/UserGuide.

    Regards.


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


  • 5.  RE: Repeat Step

    Posted Mon February 07, 2011 04:57 AM

    Hi…

    Then wat is diff b/w loop and repeat?

    Regards,
    Bharathi S.


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


  • 6.  RE: Repeat Step

    Posted Mon February 07, 2011 09:03 AM

    HI ,

      Repeat is like DO WHILE in C,C++,Java.
    

    The child steps will be executed once even if the condition is not met. REPEAT step can be made to exit based on a Count value or based on some conditons like if any of the child step inside it SUCCEESS or FAILS.
    Suvigya has explained it in the mail chain.

       LOOP can be used when a value inside a Document List (Array) needs to be checked or validated.It is like FOR LOOP in Java.
    

    -Ambrish-


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


  • 7.  RE: Repeat Step

    Posted Mon February 07, 2011 11:34 AM

    Hello,
    As Ambrish have written above, its totally right.
    Or in short, Repeat is used for a repetition of a piece of code, whereas Loop is used to use the values from a multi-dimentional object, like a string-list, etc.


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