Detect possible infinite loops in action flows and force the definition of max iterations

By Gonçalo Veiga on 24 Jun 2010
As you all know infinite loops are great ways to slow down or even cause a non-responsive server.
Service Studio would detect circular flows (not with For Each) and force the user to define the max iterations allowed. If reached, it would trigger an exception.
user-made-loop detection
Well... detection of infinite loops is not attempted by any programming language. And for a good reason - it's an undecidable problem in computation theory. This means that it's an impossible task for any given computer.