You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nifi.apache.org by srini <na...@gmail.com> on 2017/02/23 17:07:10 UTC

I don't want the ENTIRE remaining flow after the split execute that many times

Hi,
Here, the number of times the process group and the LogAttribute executes is
depends on the number of elements in the split. If there are 5 elements due
to the split, then the Process Group and the LogAttribute executes 5 times.

But I don't want the ENTIRE remaining flow after the split execute 5 times.
I want to restrict to some where.
In this flow I want LogAttribute execute only once. How?

<http://apache-nifi-developer-list.39713.n7.nabble.com/file/n14920/Screenshot_2017-02-23_11.png> 

thanks
Srini



--
View this message in context: http://apache-nifi-developer-list.39713.n7.nabble.com/I-don-t-want-the-ENTIRE-remaining-flow-after-the-split-execute-that-many-times-tp14920.html
Sent from the Apache NiFi Developer List mailing list archive at Nabble.com.

Re: I don't want the ENTIRE remaining flow after the split execute that many times

Posted by Aldrin Piri <al...@gmail.com>.
Hi Srini,

You could make use of a RouteOnAttribute to only pass those fragments of
the split that have a given 'fragment.index' of 0 (at least I believe these
are zero indexed) where all the others are dropped.  In this case, you
would get one and only one of each "batch."

On Thu, Feb 23, 2017 at 12:07 PM, srini <na...@gmail.com> wrote:

> Hi,
> Here, the number of times the process group and the LogAttribute executes
> is
> depends on the number of elements in the split. If there are 5 elements due
> to the split, then the Process Group and the LogAttribute executes 5 times.
>
> But I don't want the ENTIRE remaining flow after the split execute 5 times.
> I want to restrict to some where.
> In this flow I want LogAttribute execute only once. How?
>
> <http://apache-nifi-developer-list.39713.n7.nabble.com/file/
> n14920/Screenshot_2017-02-23_11.png>
>
> thanks
> Srini
>
>
>
> --
> View this message in context: http://apache-nifi-developer-
> list.39713.n7.nabble.com/I-don-t-want-the-ENTIRE-remaining-flow-after-the-
> split-execute-that-many-times-tp14920.html
> Sent from the Apache NiFi Developer List mailing list archive at
> Nabble.com.
>