Timeout on Loops

Quite often I will have a loop which is looking for one of a number of elements that may appear, and exiting once one of them appears.

However, if something unexpected happens, and none of the elements appear, the process gets stuck in an infinite loop.

To get around this, I usually add a timer to the loop so that it exits and throws and exception after 30 seconds.

Could this be added as a feature to the different loop activities, so that a timeout can be added in the activity properties for the loop, and perhaps the options to define whether the process should continue on timeout, or throw and exception.

Have you looked at the Retry Scope activity?

I’ve used it for this scenario you describe.

2 Likes

Yeah. Or a counter.