Created 10-01-2018 05:07 PM
Hi,
I am using RouteONAttribute Processor and i defined a property and its value contains multiple AND conditions like the following:
Property Name: ROUTE1
Property Value:
${text.tag.type:equals('XXX'):and(${txt:contains('AAA')}):and(${txt:contains('BBB')})}
The Issue i am facing is that after generating a flow file with attributes text.tag.type = XXX and txt = AAA,BBB it always route to unmatched while it should route to ROUTE1
Thanks ...
Created on 10-01-2018 05:52 PM - edited 08-17-2019 11:22 PM
Your NiFi expression Language statement looks good. I even tested base on your example and it routed my flowfiles correctly
Make sure that each of the FlowFiles being processed have required FlowFile Attributes set on them.
You can stop your RouteOnAttribute processor and allow a few files to queue in the connection feeding it.
Then right click on connection and select "List queue". You can then click on "details" icon to far left of any FlowFIle to verify that it does have correct attributes set on it.
-
-
Thank you,
Matt
-
If you found this answer addressed your question, please take a moment to login in and click the "ACCEPT" link.
Created on 10-01-2018 05:52 PM - edited 08-17-2019 11:22 PM
Your NiFi expression Language statement looks good. I even tested base on your example and it routed my flowfiles correctly
Make sure that each of the FlowFiles being processed have required FlowFile Attributes set on them.
You can stop your RouteOnAttribute processor and allow a few files to queue in the connection feeding it.
Then right click on connection and select "List queue". You can then click on "details" icon to far left of any FlowFIle to verify that it does have correct attributes set on it.
-
-
Thank you,
Matt
-
If you found this answer addressed your question, please take a moment to login in and click the "ACCEPT" link.