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.


#TechXchangePresenter
 View Only
Expand all | Collapse all

Value not getting set inside Repeat

  • 1.  Value not getting set inside Repeat

    Posted Mon October 27, 2003 09:51 PM

    Hi,
    I am setting one of the flag to “a” before executing a repeat statement. After that I am resetting the value of the flag to “b” if something inside the repeat fails. But when the control goes to the repeat statement 2nd time I again see the value of flag as “a” where as it should be “b”.
    My repeat condition is set to execute on FAILURE.
    So the value set inside repeat is not getting retained on Failure.
    Has somebody see this behavior before.

    Thanks for your help.
    Akshay


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


  • 2.  RE: Value not getting set inside Repeat

    Posted Mon October 27, 2003 10:55 PM

    Some thoughts:

    • Do you have Overwrite Pipeline Variable checked when you set the value to b?
    • Is the other failure a ServiceException? If so, the service will only retain the set value if you are Tracing - Run or Step will not.

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


  • 3.  RE: Value not getting set inside Repeat

    Posted Tue October 28, 2003 10:05 PM

    It looks like the repeat creates it’s own scope. There is probably a link to do with the behavior when you code try catch blocks with sequences and you lose pipeline values when an error is thrown. I guess that on error in a repeat, you lose any set variable inside of it.


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