nifi-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Raymond (Jira)" <>
Subject [jira] [Commented] (NIFI-6619) RouteOnAttribute: Create new Routing Strategy to route only first rule that is true
Date Thu, 12 Sep 2019 19:57:01 GMT


Raymond commented on NIFI-6619:

Thanks for your reply. I think that for RouteByOrder is a valid use case as well. This routing
strategy is however one step further from how the current processor works. As Joseph says
there is now no ordering implied. I've seen such routing processors at other integration system.
Those go mostly like:

1) Define the rules

2) Set the order (mostly the user moves rules up and down)

3) The processors start a the top rule and goes down. If a rule is true, the processor stops
further execution (if none than unmatched)

I think that use case would be better in a separate routing processor to avoid confusion.


The use case of this ticket is more that there rule A and rule B, those rule can also both
true. Now if you always gets two messages. This can only be avoided with boolean logic of
the expression language (for simple cases, but not with many rules based on multiple attributes)
or by making multiple routing steps






> RouteOnAttribute: Create new Routing Strategy to route only first rule that is true
> -----------------------------------------------------------------------------------
>                 Key: NIFI-6619
>                 URL:
>             Project: Apache NiFi
>          Issue Type: Improvement
>          Components: Configuration
>    Affects Versions: 1.9.2
>            Reporter: Raymond
>            Priority: Major
>         Attachments: image-2019-09-12-22-15-51-027.png
> Currently the RouteOnAttribute has the strategy  "Route to Property name". The behavior
is that for each rule that is true a message (clone of flowfile) will be sent to the next
> I would like to have another strategy:
> "Route to first matched Property name" or "Route to Property name by first match" or
Route to first Property name which evaluates true".
> This will ensure that next step gets exactly one message.

This message was sent by Atlassian Jira

View raw message