You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by "Pierre Villard (JIRA)" <ji...@apache.org> on 2016/04/29 11:31:12 UTC

[jira] [Created] (NIFI-1826) Expression Language: add function to check enumerator

Pierre Villard created NIFI-1826:
------------------------------------

             Summary: Expression Language: add function to check enumerator
                 Key: NIFI-1826
                 URL: https://issues.apache.org/jira/browse/NIFI-1826
             Project: Apache NiFi
          Issue Type: Improvement
          Components: Core Framework
    Affects Versions: 0.6.1
            Reporter: Pierre Villard
            Priority: Minor


It would be useful to add a function returning true if a string is in a list of arguments and false otherwise.

Example:

if ${myEnum} = "JOHN"
then
${myEnum:in("PAUL", "JOHN", "MIKE")} returns true
and
${myEnum:in("RED", "GREEN", "BLUE")} returns false

This would be particularly useful in RouteAttribute processor to perform conformity verifications on flow files.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)