[
https://issues.apache.org/jira/browse/NIFI-5880?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16712846#comment-16712846
]
Pierre Villard commented on NIFI-5880:
--------------------------------------
In your GenerateFlowFile, just set:
{noformat}
abc = a,b,c
{noformat}
(no single quotes)
Then in the UpdateAttribute, it must be:
{noformat}
matched = ${anyDelineatedValue(${abc}, ','):equals('a')}
{noformat}
This will work as expected. Let me know if that's ok for you.
> anyDelineatedValue equals test not working
> ------------------------------------------
>
> Key: NIFI-5880
> URL: https://issues.apache.org/jira/browse/NIFI-5880
> Project: Apache NiFi
> Issue Type: Bug
> Affects Versions: 1.8.0, 1.7.1
> Environment: Linux
> Reporter: Yan Chen
> Priority: Major
> Attachments: test_anyDelineatedValue_equals.xml
>
>
> [^test_anyDelineatedValue_equals.xml]
> See attached Template test-case (based on one of the Unit-tests in the source
> code:
> [https://github.com/apache/nifi/blob/master/nifi-commons/nifi-expression-language/src/test/java/org/apache/nifi/attribute/expression/language/TestQuery.java)]
> I'm hoping to use this feature to simulate list membership testing, with a
> delimited text string to represent a list of tokens.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)