I have the following scenario:
In the middle of sequence A, there is Try-Catch activity for catching if the data table contains any rows.
In case there are no data rows, robot should go to the next sequence B if catch occurs. I tried with Throw BusinessRuleException but that does not help since it goes back to get transaction.
Instead of Try Catch, you could just have an If where you check existence of rows. In the True branch, keep the activities that you already have. In False branch, do nothing.
Consider the following steps to structure your workflow:
Step 1. Enclose your current Sequence A within a Flowchart for better control flow.
Step 2. Incorporate Sequence A as a node within the Flowchart.
Step 3. Establish a Decision node following the completion of Sequence A. Examine whether the DataTable contains any rows within this Decision node.
Step 4. If the DataTable does contain rows, direct the flow to the subsequent step or sequence within the Flowchart. Conversely, if there are no rows, reroute the flow to Sequence B.