i am aware that this topic has been discussed multiple times , here. infact i followed one of the method suggested by @loginerror. but still i have not got the desired result.
- i have many sequences inside process.xaml in a flow chart.
- at the begging of the sequence an out variable (out argument of process.xaml) is assigned.
the idea is the update the value at the beginning of the every seq and when ever an exception occurs (system/ business) that particular stage can be carefully captured. and can be informed to the business.
now problem :
as we all know during exception for some reason the assigned value of the out argument is not reflecting. so i had put these sequences under a try catch. and in catch am setting the “out argument” and rethrowing the exception.
why rethrow ? , because only if i catch that exception with the try catch of process.xaml , i can do some activity which is common to all the sequences under “process.xaml”
now , am not getting the out argument again ! why ?? is it because of the rethrow , if so then what is the solution !?