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

    Posted 11/23/05 08:32 AM

    I am using a Repeat Step in a flow service. The logic is as below:

    Main
    Try
    Map Step: Initialize count to 0
    Repeat (Repeat 2 times, and repeat on Success)
    Map Step: Increment count by 1
    Service: pub.Flow.throwExceptionForRetry
    Map Step: Increment count by 1 --this step is necessary
    Catch
    pub.flow.getLastError

    With the Logic above, we should be able to exit out of the Repeat Step. However I tried many possibilities but every time Service: pub.Flow.throwExceptionForRetry throws a IS Run time Exception, instead of coming to the catch Step only a WM Monitor exception is thrown.

    My doubts are:
    1> How do I exit out clean from a ‘Repeat on Success’ Step
    2> Documentation says Exception in child would propagate to parent service. Why am I not able to catch the exception?
    3> I don’t want to write a loop step, can you suggest any way to modify repeat.

    Would be great if any of you who might have encountered a similar error could help me out.

    Thanks,
    Ayan


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


  • 2.  RE: Exception in Repeat Step

    Posted 11/23/05 03:06 PM

    Ayan,

    Not too long ago, I brought up a similar question regarding throwExceptionForRetry. Please check out the following thread:
    [url=“wmusers.com”]wmusers.com

    As far as how to exit the loop cleanly, how about using an EXIT step?

    Let me know if you need more details.

    • Percio

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