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

Issse on pipeline values in try and catch.

  • 1.  Issse on pipeline values in try and catch.

    Posted Fri December 07, 2012 01:45 PM

    Hi All,
    Try…
    I created one doc and string varable.and i setted val for that doc and string var.
    And i applied some logic and exited from flow signal on failure.

    Catch…
    I finded my Doc vals are in pipeline catch and i am unable to see string var values…
    why it is showing this kind of behaviour…


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


  • 2.  RE: Issse on pipeline values in try and catch.

    Posted Fri December 07, 2012 07:14 PM

    Variables created or modified in the try block will not have those values in the catch block. They will have the values set before (outside of) the try.

    If you need the values as they existed in the try when the exception was thrown, retrieve them from the pipeline var returned by the getLastError service.


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


  • 3.  RE: Issse on pipeline values in try and catch.

    Posted Mon December 10, 2012 03:45 PM

    The SCOPE of the variables created in the TRY block, is limited to TRY block itself.

    In your case, if you want to –

    1. Use the variable which are modified in try, you can create those variable in the main() i.e above the try, in the main sequence

    2. Use the variables from try(without global declaration), then as Reamon said you can get those variables from the Pipeline var.

    regards,
    Naidu


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