I am a licensed customer running webMethods Integration Server 10.5
I’m writing my first flow using the TRY and CATCH instead of the old SEQUENCE-based error handler.
In my CATCH block, I call pub.flow:getLastFailureCaught. The service output signature has an object variable named “failure”. In Designer, when I debug step over pub.flow:getLastFailureCaught, or when I run the service with a forced error so the CATCH block and pub.flow:getLastFailureCaught are executed, I see “failure” as a document variable in the Results. However, when I try mapping failure to a document so I can pull some of its contents for error reporting, it doesn’t map and all I get are $nulls.
How can I access the content of the failure variable in my CATCH block?
For example - in my CATCH block I mapped object failure to document failureDoc:
failure - Object The last failure caught by a CATCH step. The failure parameter
is null if no failure have been caught.
In your example , an object type failure is being mapped to a document failureDoc , hence the empty values.
I tried a simple TRY CATCH and these were the results.
I want to get all those fields inside the “failure” object that shows up as a document in Designer results. How do I access the failure object’s contents? Is this just a pointless output that nothing can be done with?