I have a workflow, that simplified looks as follows:
Step 1 - Gather information
Step 2 - Process information
Step 2.1 - Proccess step A information
Step 2.2 - Proccess step B information
Step 2.3 - Proccess step C information
Step 3 - Send and close
I have added a Try-catch for all of step 2, so if something failes, status will change and exceptions will be caught, so far so good. I have also added a try catch in step 2.2, my problem is, when this is caught, the flow continues to step 2.3 - how do I make it go directly to step 3, if an expection occurs in step 2.2?
I would like to have something like “change state to…” when an exeption is caught in step 2.2 but cannot find it. I see there is a “set transaction status” is that what I am supposed to use, or is there another way?
I suppose I could create steps 2.1 - 2.3 as separate flows and invoke them in step 2 - is that the best way?