As part of governance implementation in our organization, we have come across working for rule ST-REL-006 and observed below behaviors:
Firstly, This rule always throws an exception when flowchart is used and its control is looped back to run again(irrespective of the condition). In all cases of flowchart where this happens, error is thrown even if there is no infinite loop condition/situation bound to happen.
Secondly, when same scenario is converted from flowchart to any other while/do-while/for loop structures, no more error is thrown.
So, basically this rule never catches if there is an infinite loop when while/do-while/for loop structures are used and always thrown exception in case of flowcharts no matter its condition.
We found this as a strange behavior to detect infinite loop. If a particular condition is detected as infinite loop in flowcharts, why same is not detected as infinite loop once its converted to formal loop structures.
Plus, why this error is thrown in all cases of flowcharts if it is looped back, no matter if condition meets the criteria or not.
Looking forward to your inputs on same.
Thanks & Regards