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

Will EXIT cause to lose Pipeline variables

  • 1.  Will EXIT cause to lose Pipeline variables

    Posted Tue December 24, 2002 08:19 PM

    If i were to EXIT a sequence signalling a failure, will it cause to lose all the variables in the pipeline?

    topLevel:SEQUENCE (exit-on DONE)
    TRY:SEQUENCE (exit-on FAILURE)
    step 1
    step 2
    BRANCH on ‘returnFlag’
    Error:SEQUENCE
    EXIT ‘TRY’ and signal FAILURE
    step 3
    CATCH:SEQUENCE
    handleErrors

    When it EXITs the TRY block with a failure and moves inside of the CATCH block, the pipeline variables are all lost. How do i retain the pipeline variables?

    thanks in advance?
    KrishnaN


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


  • 2.  RE: Will EXIT cause to lose Pipeline variables

    Posted Wed December 25, 2002 01:12 AM

    Try using the wM standard service ‘pub.flow:getLastError’. You should be able to pull the error message and pipeline variables from the output of this service.

    Also, I think you might want to change your ‘topLevel:SEQUENCE’ to exit-on SUCCESS. If you leave it as exit-on DONE, I believe the CATCH sequence will execute every time.

    Regards,
    Devan


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