Will EXIT cause to lose Pipeline variables

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

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