Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

How does one establish a processing loop in NIFI (the equivalent of a for loop, or a while loop)?

Highlighted

How does one establish a processing loop in NIFI (the equivalent of a for loop, or a while loop)?

New Contributor

There are many times when a data flow must include some kind of conditional looping.

How does one establish a processing loop in NIFI (the equivalent of a for loop, or a while loop)?

2 REPLIES 2

Re: How does one establish a processing loop in NIFI (the equivalent of a for loop, or a while loop)?

New Contributor

One example I've found is this:

https://gist.github.com/ijokarumawak/01c4fd2d9291d3e74ec424a581659ca8

This looks relatively clean. Is this the best option?

Re: How does one establish a processing loop in NIFI (the equivalent of a for loop, or a while loop)?

New Contributor

How can we pass dynamic attribute value in a loop condition.

Something like ${i:lt({$.count})},as i am getting error while putting up this condition in RouteToAttribute processor.

How can we achive this.Please help here.

,

How can we pass dynamic variable in a loop,for an instance i want to create a condition in RouteToAttribute like ${i:lt({$.count})}.

But as from the Nifi expression language doc we can only pass static value as a paremeter in lt().

How can it be achieved.Please help here.