My flow service has the following structure:
global: Sequence (exit on SUCCESS) try: Sequence (exit on FAILURE) catch: Sequence (exit on DONE)
In the “catch” sequence, I need to know how I got there. Right now I want to declare a “flag” variable that I would change in the “try” sequence.
If I get to the “catch” sequence, I want to get the value of this “flag” so I can decide if I want to crash the service or not.
My problem is that I don’t know how to send data from the “try” to the “catch”: when I get to the catch I get the same pipeline I had at the beginning of the try sequence!
I can’t use “getLastError” because the error may have been already sent
Do you have any solution?