You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2016/04/30 12:00:16 UTC

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

    [ https://issues.apache.org/jira/browse/NIFI-1826?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15265266#comment-15265266 ] 

ASF GitHub Bot commented on NIFI-1826:
--------------------------------------

GitHub user pvillard31 opened a pull request:

    https://github.com/apache/nifi/pull/396

    NIFI-1826 Expression Language: add function to check enumerator

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/pvillard31/nifi NIFI-1826

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/nifi/pull/396.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #396
    
----
commit fdd459f6c26b09d1cc61b9e2852126f5add73c14
Author: Pierre Villard <pi...@gmail.com>
Date:   2016-04-30T09:59:19Z

    NIFI-1826 Expression Language: add function to check enumerator

----


> 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
>            Assignee: 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:
> {noformat}
> if ${myEnum} = "JOHN"
> then
> ${myEnum:in("PAUL", "JOHN", "MIKE")} returns true
> and
> ${myEnum:in("RED", "GREEN", "BLUE")} returns false
> {noformat}
> 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)