loop until rowcount >= x ?

I have a loop that accumulates data rows, I need it to stop when I have say 1000 unique rows; can't quite see how to do that with the standard loop nodes.

Any ideas?

Cheers,

Steve.

Hi Steve,

the recursive loops might be worth taking a look at. The feed back the inport of the loop end to the out port of the loop start.

You can stop them when the rowcount is <x or with a flowvariable. So you can generate a flow variable with a Java Snippet which changes to true (=stopLoop) if the number of flowvariables is bigger than x.

I attach you a small example workflow.

You can do the same with a variable condition loop end, if your generation process is not recursive.

Cheers, Iris

OK, thanks, I'll give it a go.