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

how to get Exception in getLastError throw by exit step

  • 1.  how to get Exception in getLastError throw by exit step

    Posted Tue February 21, 2012 12:28 PM

    -Sequence(main) success
    -Sequence(Try) failure
    -Map
    -Repeat
    - Branch
    -Sequence failure
    Exit $loop and Signal Failure (Failure message- Error due invalid type)

    -Sequence(Catch) done
    -getLastError
    when the flow come to exit step its throw the execption with Failure message .
    and flow some to catch seq.but here i am not getting the getLastError.
    I want to see the error element of getLastError with the same message as i mention in
    Failure message…
    can you please explane how can i get this message in lastError/error…
    Please Help me clear it…


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


  • 2.  RE: how to get Exception in getLastError throw by exit step

    Posted Tue February 21, 2012 03:16 PM

    It’s been my experience that there are times when exit and signal failure will not populate the structure for getLastError. There was a discussion thread some time back about this but I cannot find it.

    What I’ve done in the past is create a Java service that accepts a “message” input and throws a ServiceException with that message. Then call that Java service instead of using exit and signal failure.


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


  • 3.  RE: how to get Exception in getLastError throw by exit step

    Posted Thu February 23, 2012 06:53 AM

    Hi Reamon,

    Thanks for reply …I tried with Java service its working fine …
    But why its working with EXIT on failure with failure message…:confused:

    Any way thanks…


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