Hi,
I am using RE Framework for my POC, I have a situation where i have to skip one of trans. based on some conditions and go to next trans.
I am maintaining a status tracker for each records, and in the above case also my trans. gives me that my trans. status as “Completed”, where as i want it to be failed as its skipped.
P.S - Attached image is the screen, I want if its goes to else part then it should print that status as “Failed”, I am attaching the SetTransStatus workflow too.
It looks like you are processing a data row, and not a queue item, which is fine. That’s a background check…
So, if you want to mark it as false, my suggestion would also be to trigger a business rule exception as @AndyD mentioned. So in your IF condition, in the else section, right after the click activity, you can have a Throw activity and send out a business rule exception.
New BusinessRuleException("Your Exception Message")
As I see you have tried this and it seems its not working. May I know how you did this and what was the output of it?
So in debug mode, every single error is thrown to you. Application exceptions, business exceptions etc. It is because you have the Throw activity. So as the name implies, it does the job by throwing the error to you
It’s nothing wrong with the logic or the code, its the way it works… So if you run it in normal mode, it will run the process without throwing the message to you. All that will be handled in the background as a normal execution…
Yes… in such cases, if you really need to debug you might need to comment that part out unless you need to debug that particular piece of code only. Or else, you could do a normal execution using the output panel to track errors.